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.
12 lines
443 B
JavaScript
12 lines
443 B
JavaScript
import { mergeUint8 } from '@pezkuwi/papi-utils';
|
|
import { blake2b } from '@noble/hashes/blake2.js';
|
|
|
|
const len32$1 = { dkLen: 32 };
|
|
const Blake2256 = (encoded) => blake2b(encoded, len32$1);
|
|
const len16 = { dkLen: 16 };
|
|
const Blake2128 = (encoded) => blake2b(encoded, len16);
|
|
const Blake2128Concat = (encoded) => mergeUint8([Blake2128(encoded), encoded]);
|
|
|
|
export { Blake2128, Blake2128Concat, Blake2256 };
|
|
//# sourceMappingURL=blake2.mjs.map
|