Function: decode() ​
decode(
encoded,encoding?):Bytes
Defined in: packages/common/src/canonicalization.ts:103
Decodes an encoded hash string back to bytes.
Parameters ​
encoded ​
string
The encoded hash string.
encoding? ​
CanonicalizationEncoding = 'base64url'
The encoding format.
Returns ​
The decoded hash bytes.
Throws ​
If the encoding is not supported.