Skip to content

@aldea/sdk / Exports / blake3

Namespace: blake3

Table of contents

Functions

Functions

deriveKey

deriveKey(data, ctx): Uint8Array

Derives a 32 byte key from the given key material and context string.

Parameters

NameType
datastring | Uint8Array
ctxstring | Uint8Array

Returns

Uint8Array

Defined in

packages/core/dist/support/blake3.d.ts:13


hash

hash(data, bytes?): Uint8Array

Returns a digest of the given data using the Blake3 algorithm.

Parameters

NameType
datastring | Uint8Array
bytes?number

Returns

Uint8Array

Defined in

packages/core/dist/support/blake3.d.ts:4


keyedHash

keyedHash(data, key, bytes?): Uint8Array

Returns a keyed hash of the given data using the Blake3 algorithm. The key must be 32 bytes.

Parameters

NameType
datastring | Uint8Array
keystring | Uint8Array
bytes?number

Returns

Uint8Array

Defined in

packages/core/dist/support/blake3.d.ts:9