Skip to content

@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 ​

NameType
strstring

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 ​

NameType
dataUint8Array

Returns ​

string

Defined in ​

packages/core/dist/support/base.d.ts:8