Function: encode() ​
encode(
hashBytes,encoding?):string
Defined in: packages/common/src/canonicalization.ts:86
Encodes hash bytes using the specified encoding.
Parameters ​
hashBytes ​
The hash bytes to encode.
encoding? ​
CanonicalizationEncoding = 'base64url'
The encoding format.
Returns ​
string
The encoded string.
Throws ​
If the encoding is not supported.