decodeMed25519PublicKey

Decodes strkey muxed ed25519 public key (M...) to raw bytes

Return

The 40 raw bytes: the 32-byte ed25519 public key followed by the 8-byte muxed id

Parameters

data

The strkey to decode. A muxed ed25519 public key strkey is 69 characters long.

Throws

if data fails a check of the StrKey decode contract, which this type holds to 69 characters and the muxed ed25519 public key version byte