decodeEd25519PublicKey

Decodes strkey ed25519 public key (G...) to raw bytes

Return

The 32 raw public key bytes

Parameters

data

The strkey to decode. An ed25519 public key strkey is 56 characters long.

Throws

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