decodeContract

Decodes strkey contract address (C...) to raw bytes

Return

The 32 raw contract id bytes

Parameters

data

The strkey to decode. A contract address 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 contract version byte