chore: complete rebrand to PezkuwiChain - replace polkadot/substrate with pezkuwi/bizinikiwi

This commit is contained in:
2026-02-01 08:14:01 +03:00
parent b61206c14e
commit 55fb929afe
78 changed files with 156 additions and 153 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ const valid = verify(message, signature, publicKey);
## Difference from @scure/sr25519
This package uses `bizinikiwi` as the signing context instead of `substrate`.
This package uses `bizinikiwi` as the signing context instead of `bizinikiwi`.
## License
+2 -2
View File
@@ -1,11 +1,11 @@
/**
* Minimal JS implementation of sr25519 cryptography for Polkadot.
* Minimal JS implementation of sr25519 cryptography for Pezkuwi.
*
* Uses [Merlin](https://merlin.cool/index.html),
* a transcript construction, built on [Strobe](https://strobe.sourceforge.io).
* Merlin ensures two parties agree on the same state when communicating.
*
* More: https://wiki.polkadot.network/docs/learn-cryptography.
* More: https://wiki.pezkuwi.network/docs/learn-cryptography.
*/
import { mod } from '@noble/curves/abstract/modular.js';
import { aInRange, bitMask, bytesToNumberLE, equalBytes, isBytes, numberToBytesLE, } from '@noble/curves/abstract/utils.js';
+2 -2
View File
@@ -8,13 +8,13 @@ exports.sign = sign;
exports.verify = verify;
exports.getSharedSecret = getSharedSecret;
/**
* Minimal JS implementation of sr25519 cryptography for Polkadot.
* Minimal JS implementation of sr25519 cryptography for Pezkuwi.
*
* Uses [Merlin](https://merlin.cool/index.html),
* a transcript construction, built on [Strobe](https://strobe.sourceforge.io).
* Merlin ensures two parties agree on the same state when communicating.
*
* More: https://wiki.polkadot.network/docs/learn-cryptography.
* More: https://wiki.pezkuwi.network/docs/learn-cryptography.
*/
const modular_js_1 = require("@noble/curves/abstract/modular.js");
const utils_js_1 = require("@noble/curves/abstract/utils.js");
+4 -1
View File
@@ -17,8 +17,11 @@
},
"repository": {
"type": "git",
"url": "https://github.com/pezkuwichain/pezkuwi-scure-sr25519"
"url": "https://github.com/pezkuwichain/pezkuwi-wasm.git",
"directory": "packages/scure-sr25519"
},
"bugs": "https://github.com/pezkuwichain/pezkuwi-wasm/issues",
"homepage": "https://github.com/pezkuwichain/pezkuwi-wasm/tree/main/packages/scure-sr25519#readme",
"author": "PezkuwiChain",
"license": "MIT"
}
+2 -2
View File
@@ -1,3 +1,3 @@
# @polkadot/wasm-bridge
# @pezkuwi/wasm-bridge
A re-usable bridge between JS & WASM interfaces. It is used internally by `@polkadot/wasm-crypto`.
A re-usable bridge between JS & WASM interfaces. It is used internally by `@pezkuwi/wasm-crypto`.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-bridge authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-bridge authors & contributors
// SPDX-License-Identifier: Apache-2.0
// A number of functions are "unsafe" and purposefully so - it is
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-bridge authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-bridge authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './bridge.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-bridge authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-bridge authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './packageDetect.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-bridge authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-bridge authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { InitFn, InitPromise, InitResult, WasmBaseInstance, WasmImports } from './types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-bridge authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-bridge authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './index.js';
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @pezkuwi/wasm-bridge authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-bridge authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
// (packageInfo imports will be kept as-is, user-editable)
import { detectPackage } from '@pezkuwi/util';
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2025 @pezkuwi/wasm-bridge authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-bridge authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
export const packageInfo = { name: '@pezkuwi/wasm-bridge', path: 'auto', type: 'auto', version: '7.5.4' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-bridge authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-bridge authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Use non-strong types instead of WasmImports which may not
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-bridge authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-bridge authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { BridgeBase, WasmBaseInstance } from './types.js';
+1 -1
View File
@@ -1,3 +1,3 @@
## @polkadot/wasm-crypto-asmjs
## @pezkuwi/wasm-crypto-asmjs
Asm.js build outputs.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-asmjs authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { asmJsInit } from './cjs/data.js';
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-wasm authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-wasm authors & contributors
// SPDX-License-Identifier: Apache-2.0
const data = require('../data.js');
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-asmjs authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
export declare const asmJsInit: null;
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-asmjs authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
const asmJsInit = null;
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-asmjs authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
export declare const asmJsInit: null;
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-asmjs authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
export const asmJsInit = null;
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-asmjs authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './packageDetect.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-asmjs authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './index.js';
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @pezkuwi/wasm-crypto-asmjs authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
// (packageInfo imports will be kept as-is, user-editable)
import { detectPackage } from '@pezkuwi/util';
@@ -1,6 +1,6 @@
// Copyright 2017-2025 @pezkuwi/wasm-crypto-asmjs authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
export const packageInfo = { name: '@pezkuwi/wasm-crypto-asmjs', path: 'auto', type: 'auto', version: '7.5.4' };
+2 -2
View File
@@ -1,3 +1,3 @@
## @polkadot/wasm-crypto-init
## @pezkuwi/wasm-crypto-init
Internal `@polkadot/wasm-crypto` initialization functions for Browser, Node & RN.
Internal `@pezkuwi/wasm-crypto` initialization functions for Browser, Node & RN.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-init authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-init authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { InitFn } from '@pezkuwi/wasm-bridge/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-init authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-init authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { InitFn } from '@pezkuwi/wasm-bridge/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-init authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-init authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './wasm.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-init authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-init authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './wasm.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-init authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-init authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { InitFn } from '@pezkuwi/wasm-bridge/types';
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @pezkuwi/wasm-crypto-init authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-crypto-init authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
// (packageInfo imports will be kept as-is, user-editable)
import { detectPackage } from '@pezkuwi/util';
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2025 @pezkuwi/wasm-crypto-init authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-crypto-init authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
export const packageInfo = { name: '@pezkuwi/wasm-crypto-init', path: 'auto', type: 'auto', version: '7.5.4' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-init authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-init authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { WasmBaseInstance } from '@pezkuwi/wasm-bridge/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-init authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-init authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { InitFn } from '@pezkuwi/wasm-bridge/types';
+1 -1
View File
@@ -1,3 +1,3 @@
## @polkadot/wasm-crypto-wasm
## @pezkuwi/wasm-crypto-wasm
Wasm build outputs.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto-wasm authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto-wasm authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { base64Decode, unzlibSync } from '@pezkuwi/wasm-util';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @pezkuwi/wasm-crypto-wasm authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-crypto-wasm authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @pezkuwi/dev
+5 -5
View File
@@ -1,18 +1,18 @@
# @polkadot/wasm-crypto
# @pezkuwi/wasm-crypto
Wrapper around crypto hashing functions
## Usage
Install the package (also requires `@polkadot/util` for `TextEncoder` polyfills - not included here as a dependency to keep the tree lean)
Install the package (also requires `@pezkuwi/util` for `TextEncoder` polyfills - not included here as a dependency to keep the tree lean)
`yarn add @polkadot/wasm-crypto @polkadot/util`
`yarn add @pezkuwi/wasm-crypto @pezkuwi/util`
Use it -
```js
import { u8aToHex } from '@polkadot/util';
import { bip39Generate, bip39ToSeed, waitReady } from '@polkadot/wasm-crypto';
import { u8aToHex } from '@pezkuwi/util';
import { bip39Generate, bip39ToSeed, waitReady } from '@pezkuwi/wasm-crypto';
// first wait until the WASM has been loaded (async init)
await waitReady();
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { WasmCryptoInstance } from '@pezkuwi/wasm-crypto-init/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './packageDetect.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { InitFn } from '@pezkuwi/wasm-bridge/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { createWasm } from '@pezkuwi/wasm-crypto-init/none';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { createWasm } from '@pezkuwi/wasm-crypto-init/asm';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { createWasm } from '@pezkuwi/wasm-crypto-init/wasm';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { createWasm } from '@pezkuwi/wasm-crypto-init/both';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './index.js';
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
// (packageInfo imports will be kept as-is, user-editable)
import { detectPackage } from '@pezkuwi/util';
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
export const packageInfo = { name: '@pezkuwi/wasm-crypto', path: 'auto', type: 'auto', version: '7.5.4' };
+3 -3
View File
@@ -1,9 +1,9 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Based on original work by Paritytech (https://github.com/paritytech/schnorrkel-js/)
// Based on original work by Paritytech (https://github.com/pezkuwichain/schnorrkel-js/)
// Adapted for PezkuwiChain by Kurdistan Tech Institute
// Original fork history: paritytech/schnorrkel-js → polkadot-js/schnorrkel-js → pezkuwi/wasm
// Original fork history: pezkuwichain/schnorrkel-js → pezkuwi-js/schnorrkel-js → pezkuwi/wasm
use curve25519_dalek::scalar::Scalar;
use schnorrkel::{
@@ -13,7 +13,7 @@ use schnorrkel::{
use wasm_bindgen::prelude::*;
// We must make sure that this is the same as declared in the bizinikiwi source code.
// PezkuwiChain uses "bizinikiwi" as the signing context instead of "substrate".
// PezkuwiChain uses "bizinikiwi" as the signing context instead of "bizinikiwi".
const CTX: &'static [u8] = b"bizinikiwi";
/// ChainCode construction helper
+3 -3
View File
@@ -1,10 +1,10 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Paritytech via https://github.com/paritytech/schnorrkel-js/
// Copyright 2019 Paritytech via https://github.com/pezkuwichain/schnorrkel-js/
//
// Originally developed (as a fork) in https://github.com/polkadot-js/schnorrkel-js/
// which was adpated from the initial https://github.com/paritytech/schnorrkel-js/
// Originally developed (as a fork) in https://github.com/pezkuwi-js/schnorrkel-js/
// which was adpated from the initial https://github.com/pezkuwichain/schnorrkel-js/
// forked at commit eff430ddc3090f56317c80654208b8298ef7ab3f
use merlin::Transcript;
+2 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* global it */
@@ -64,7 +64,7 @@ export function bip39ToEntropy (wasm) {
*/
export function bip39ToMiniSecret (wasm) {
it('creates the correct minisecret from a mnemonic', () => {
const res = u8aToHex(wasm.bip39ToMiniSecret('legal winner thank year wave sausage worth useful legal winner thank yellow', 'Substrate'));
const res = u8aToHex(wasm.bip39ToMiniSecret('legal winner thank year wave sausage worth useful legal winner thank yellow', 'Bizinikiwi'));
// console.log('\tMIN', res);
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* global it */
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* global it */
+2 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* global describe */
@@ -15,7 +15,7 @@ import * as vrf from './vrf.js';
export const tests = {
// We place secp256k1 first, this allows the interaction with it in the
// hashing (specifically scrypt) test not be an issue (ASM.js only)
// https://github.com/polkadot-js/wasm/issues/307
// https://github.com/pezkuwichain/pezkuwi-wasm/issues/307
secp256k1,
// eslint-disable-next-line sort-keys
bip39,
+2 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* global it */
@@ -52,7 +52,7 @@ export function secp256k1FromSeed1 (wasm) {
*/
export function secp256k1FromSeed2 (wasm) {
it('creates a known pair from seed (2)', () => {
// https://github.com/polkadot-js/wasm/issues/307
// https://github.com/pezkuwichain/pezkuwi-wasm/issues/307
const seckey = new Uint8Array([
203, 109, 249, 222, 30, 252, 167, 163, 153, 138, 142,
173, 78, 2, 21, 157, 95, 169, 156, 62, 13, 79,
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* global it */
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* global it */
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import '@pezkuwi/wasm-crypto/initOnlyAsm';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
// This is a Deno file, so we can allow .ts imports
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
// NOTE We don't use ts-expect-error here since the build folder may or may
// not exist (so the error may or may not be there)
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import path from 'node:path';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-crypto authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import * as wasm from '@pezkuwi/wasm-crypto';
+2 -2
View File
@@ -1,3 +1,3 @@
## @polkadot/wasm-util
## @pezkuwi/wasm-util
Wasm utility functions, used internally in `@polkadot/wasm-crypto`.
Wasm utility functions, used internally in `@pezkuwi/wasm-crypto`.
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2019-2025 @pezkuwi/wasm-util authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-util authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
import { base64Decode } from './base64.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-util authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-util authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Use an array for our indexer - this is faster than using map access. In
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-util authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-util authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { base64Decode } from './base64.js';
+2 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-util authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-util authors & contributors
// SPDX-License-Identifier: Apache-2.0
// MIT License
@@ -9,7 +9,7 @@
// This only contains the unzlibSync function, no compression, no async, no workers
//
// These 2 issues are addressed as a short-term, stop-gap solution
// - https://github.com/polkadot-js/api/issues/2963
// - https://github.com/pezkuwi/api/issues/2963
// - https://github.com/101arrowz/fflate/issues/17
//
// Only tweaks made here are some TS adjustments (we use strict null checks),
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-util authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './packageDetect.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2019-2025 @pezkuwi/wasm-util authors & contributors
// Copyright 2019-2026 @pezkuwi/wasm-util authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './index.js';
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @pezkuwi/wasm-util authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-util authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
// (packageInfo imports will be kept as-is, user-editable)
import { detectPackage } from '@pezkuwi/util';
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2025 @pezkuwi/wasm-util authors & contributors
// Copyright 2017-2026 @pezkuwi/wasm-util authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
export const packageInfo = { name: '@pezkuwi/wasm-util', path: 'auto', type: 'auto', version: '7.5.4' };