decodeSha256Hash

Decodes strkey SHA-256 hash (X...) to raw bytes

Return

The 32 raw hash bytes

Parameters

data

The strkey to decode. A SHA-256 hash 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 SHA-256 hash version byte