chore: update to version 14.0.11 and align website URLs

This commit is contained in:
2026-01-11 11:34:13 +03:00
parent ef74383349
commit 19c8d69bd8
1499 changed files with 53633 additions and 89 deletions
+19
View File
@@ -0,0 +1,19 @@
import { hasBigInt, u8aToHex, u8aToU8a } from '@pezkuwi/util';
import { isReady } from '@pezkuwi/wasm-crypto';
/** @internal */
export function createAsHex(fn) {
return (...args) => u8aToHex(fn(...args));
}
/** @internal */
export function createBitHasher(bitLength, fn) {
return (data, onlyJs) => fn(data, bitLength, onlyJs);
}
/** @internal */
export function createDualHasher(wa, js) {
return (value, bitLength = 256, onlyJs) => {
const u8a = u8aToU8a(value);
return !hasBigInt || (!onlyJs && isReady())
? wa[bitLength](u8a)
: js[bitLength](u8a);
};
}