@aldea/sdk / Exports / base16
Namespace: base16
Interface for encoding two and from base16 / hex.
Table of contents
Functions
Functions
decode
▸ decode(str
): Uint8Array
Decodes the given hex string to bytes.
Parameters
Name | Type |
---|---|
str | string |
Returns
Uint8Array
Defined in
packages/core/dist/support/base.d.ts:12
encode
▸ encode(data
): string
Encodes the given bytes as a hex string.
Parameters
Name | Type |
---|---|
data | Uint8Array |
Returns
string
Defined in
packages/core/dist/support/base.d.ts:8