@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
| Name | Type |
|---|---|
data | string | Uint8Array |
ctx | string | 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
| Name | Type |
|---|---|
data | string | 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
| Name | Type |
|---|---|
data | string | Uint8Array |
key | string | Uint8Array |
bytes? | number |
Returns
Uint8Array
Defined in
packages/core/dist/support/blake3.d.ts:9