decodeSignedPayload

Decodes strkey signed payload (P...) to raw bytes

Return

The raw bytes: the 32-byte ed25519 public key, the 4-byte declared payload length and the payload padded to a four-byte boundary

Parameters

data

The strkey to decode. A signed payload strkey is between 69 and 165 characters long, depending on the size of the payload it carries.

Throws

if data fails a check of the StrKey decode contract, which this type holds to 69 to 165 characters, the signed payload version byte, 40 to 100 data bytes, and the framing it defines inside them: a declared payload length of 1 to 64 that the data size fits exactly, and zero padding after the payload