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
+15
View File
@@ -0,0 +1,15 @@
/**
* @name shaAsU8a
* @summary Creates a sha Uint8Array from the input.
*/
export declare const shaAsU8a: (value: string | Uint8Array, bitLength?: 256 | 512, onlyJs?: boolean) => Uint8Array;
/**
* @name sha256AsU8a
* @summary Creates a sha256 Uint8Array from the input.
*/
export declare const sha256AsU8a: (data: string | Uint8Array, onlyJs?: boolean) => Uint8Array;
/**
* @name sha512AsU8a
* @summary Creates a sha512 Uint8Array from the input.
*/
export declare const sha512AsU8a: (data: string | Uint8Array, onlyJs?: boolean) => Uint8Array;
+22
View File
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sha512AsU8a = exports.sha256AsU8a = exports.shaAsU8a = void 0;
const sha256_1 = require("@noble/hashes/sha256");
const sha512_1 = require("@noble/hashes/sha512");
const wasm_crypto_1 = require("@pezkuwi/wasm-crypto");
const helpers_js_1 = require("../helpers.js");
/**
* @name shaAsU8a
* @summary Creates a sha Uint8Array from the input.
*/
exports.shaAsU8a = (0, helpers_js_1.createDualHasher)({ 256: wasm_crypto_1.sha256, 512: wasm_crypto_1.sha512 }, { 256: sha256_1.sha256, 512: sha512_1.sha512 });
/**
* @name sha256AsU8a
* @summary Creates a sha256 Uint8Array from the input.
*/
exports.sha256AsU8a = (0, helpers_js_1.createBitHasher)(256, exports.shaAsU8a);
/**
* @name sha512AsU8a
* @summary Creates a sha512 Uint8Array from the input.
*/
exports.sha512AsU8a = (0, helpers_js_1.createBitHasher)(512, exports.shaAsU8a);
+4
View File
@@ -0,0 +1,4 @@
/**
* @summary Implements Sha-256/512 hashing functions for a variety of input and outputs
*/
export { sha256AsU8a, sha512AsU8a, shaAsU8a } from './asU8a.js';
+10
View File
@@ -0,0 +1,10 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.shaAsU8a = exports.sha512AsU8a = exports.sha256AsU8a = void 0;
/**
* @summary Implements Sha-256/512 hashing functions for a variety of input and outputs
*/
var asU8a_js_1 = require("./asU8a.js");
Object.defineProperty(exports, "sha256AsU8a", { enumerable: true, get: function () { return asU8a_js_1.sha256AsU8a; } });
Object.defineProperty(exports, "sha512AsU8a", { enumerable: true, get: function () { return asU8a_js_1.sha512AsU8a; } });
Object.defineProperty(exports, "shaAsU8a", { enumerable: true, get: function () { return asU8a_js_1.shaAsU8a; } });