mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-04-22 03:17:56 +00:00
31467f90d4
- @pezkuwi/papi-utils (rebrand of @polkadot-api/utils) - @pezkuwi/bizinikiwi-bindings (rebrand of @polkadot-api/substrate-bindings) - @pezkuwi/metadata-builders (rebrand of @polkadot-api/metadata-builders) - @pezkuwi/merkleize-metadata (rebrand of @polkadot-api/merkleize-metadata) All @polkadot-api references replaced with @pezkuwi equivalents.
10 lines
341 B
JavaScript
10 lines
341 B
JavaScript
import { mergeUint8 } from '@pezkuwi/papi-utils';
|
|
import { blake3 } from '@noble/hashes/blake3.js';
|
|
|
|
const len32 = { dkLen: 32 };
|
|
const Blake3256 = (encoded) => blake3(encoded, len32);
|
|
const Blake3256Concat = (encoded) => mergeUint8([Blake3256(encoded), encoded]);
|
|
|
|
export { Blake3256, Blake3256Concat };
|
|
//# sourceMappingURL=blake3.mjs.map
|