Files
pezkuwi-api/packages/bizinikiwi-bindings/dist/esm/hashes/blake2.mjs
T
pezkuwichain 31467f90d4 feat: add PAPI rebrand packages
- @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.
2026-01-22 15:40:12 +03:00

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