From 55fb929afe42371ab472c9dda733efa228039316 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Sun, 1 Feb 2026 08:14:01 +0300 Subject: [PATCH] chore: complete rebrand to PezkuwiChain - replace polkadot/substrate with pezkuwi/bizinikiwi --- CHANGELOG.md | 76 +++++++++---------- README.md | 6 +- eslint.config.js | 4 +- package.json | 12 +-- packages/scure-sr25519/README.md | 2 +- packages/scure-sr25519/lib/esm/index.js | 4 +- packages/scure-sr25519/lib/index.js | 4 +- packages/scure-sr25519/package.json | 5 +- packages/wasm-bridge/README.md | 4 +- packages/wasm-bridge/src/bridge.ts | 2 +- packages/wasm-bridge/src/bundle.ts | 2 +- packages/wasm-bridge/src/index.ts | 2 +- packages/wasm-bridge/src/init.ts | 2 +- packages/wasm-bridge/src/mod.ts | 2 +- packages/wasm-bridge/src/packageDetect.ts | 4 +- packages/wasm-bridge/src/packageInfo.ts | 4 +- packages/wasm-bridge/src/types.ts | 2 +- packages/wasm-bridge/src/wbg.ts | 2 +- packages/wasm-crypto-asmjs/README.md | 2 +- packages/wasm-crypto-asmjs/src/bundle.ts | 2 +- .../wasm-crypto-asmjs/src/cjs/cjs/data.js | 2 +- packages/wasm-crypto-asmjs/src/cjs/data.d.ts | 2 +- packages/wasm-crypto-asmjs/src/cjs/data.js | 2 +- packages/wasm-crypto-asmjs/src/deno/data.d.ts | 2 +- packages/wasm-crypto-asmjs/src/deno/data.js | 2 +- packages/wasm-crypto-asmjs/src/index.ts | 2 +- packages/wasm-crypto-asmjs/src/mod.ts | 2 +- .../wasm-crypto-asmjs/src/packageDetect.ts | 4 +- packages/wasm-crypto-asmjs/src/packageInfo.ts | 4 +- packages/wasm-crypto-init/README.md | 4 +- packages/wasm-crypto-init/src/asm.ts | 2 +- packages/wasm-crypto-init/src/both.ts | 2 +- packages/wasm-crypto-init/src/bundle.ts | 2 +- packages/wasm-crypto-init/src/mod.ts | 2 +- packages/wasm-crypto-init/src/none.ts | 2 +- .../wasm-crypto-init/src/packageDetect.ts | 4 +- packages/wasm-crypto-init/src/packageInfo.ts | 4 +- packages/wasm-crypto-init/src/types.ts | 2 +- packages/wasm-crypto-init/src/wasm.ts | 2 +- packages/wasm-crypto-wasm/README.md | 2 +- packages/wasm-crypto-wasm/src/bundle.ts | 2 +- packages/wasm-crypto-wasm/src/packageInfo.ts | 2 +- packages/wasm-crypto/README.md | 10 +-- packages/wasm-crypto/src/bundle.ts | 2 +- packages/wasm-crypto/src/index.ts | 2 +- packages/wasm-crypto/src/init.ts | 2 +- packages/wasm-crypto/src/initNone.ts | 2 +- packages/wasm-crypto/src/initOnlyAsm.ts | 2 +- packages/wasm-crypto/src/initOnlyWasm.ts | 2 +- packages/wasm-crypto/src/initWasmAsm.ts | 2 +- packages/wasm-crypto/src/mod.ts | 2 +- packages/wasm-crypto/src/packageDetect.ts | 4 +- packages/wasm-crypto/src/packageInfo.ts | 4 +- packages/wasm-crypto/src/rs/sr25519.rs | 6 +- packages/wasm-crypto/src/rs/vrf.rs | 6 +- packages/wasm-crypto/test/all/bip39.js | 4 +- packages/wasm-crypto/test/all/ed25519.js | 2 +- packages/wasm-crypto/test/all/hashing.js | 2 +- packages/wasm-crypto/test/all/index.js | 4 +- packages/wasm-crypto/test/all/secp256k1.js | 4 +- packages/wasm-crypto/test/all/sr25519.js | 2 +- packages/wasm-crypto/test/all/vrf.js | 2 +- packages/wasm-crypto/test/asm.js | 2 +- packages/wasm-crypto/test/deno.ts | 2 +- packages/wasm-crypto/test/jest.spec.ts | 4 +- packages/wasm-crypto/test/loader-build.js | 2 +- packages/wasm-crypto/test/wasm.js | 2 +- packages/wasm-util/README.md | 4 +- packages/wasm-util/src/base64.spec.ts | 4 +- packages/wasm-util/src/base64.ts | 2 +- packages/wasm-util/src/bundle.ts | 2 +- packages/wasm-util/src/fflate.ts | 4 +- packages/wasm-util/src/index.ts | 2 +- packages/wasm-util/src/mod.ts | 2 +- packages/wasm-util/src/packageDetect.ts | 4 +- packages/wasm-util/src/packageInfo.ts | 4 +- rollup.config.js | 4 +- tsconfig.base.json | 2 +- 78 files changed, 156 insertions(+), 153 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fc0207..a460654 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,48 +4,48 @@ Changes: -- Bump polkadot-js dependencies ([#605](https://github.com/polkadot-js/wasm/pull/605)) +- Bump pezkuwi dependencies ([#605](https://github.com/pezkuwichain/pezkuwi-wasm/pull/605)) ## 7.5.3 Nov 24, 2025 Changes: -- Bump @polkadot dependencies ([#603](https://github.com/polkadot-js/wasm/pull/603)) +- Bump @pezkuwi dependencies ([#603](https://github.com/pezkuwichain/pezkuwi-wasm/pull/603)) ## 7.5.2 Nov 10, 2025 Changes: -- Fix/Revert asm build ([#599](https://github.com/polkadot-js/wasm/pull/599)) -- Bump @polkadot dependencies ([#601](https://github.com/polkadot-js/wasm/pull/601)) +- Fix/Revert asm build ([#599](https://github.com/pezkuwichain/pezkuwi-wasm/pull/599)) +- Bump @pezkuwi dependencies ([#601](https://github.com/pezkuwichain/pezkuwi-wasm/pull/601)) ## 7.5.1 aug 25, 2025 Changes: -- Bump yarn to 4.5.1 ([#573](https://github.com/polkadot-js/wasm/pull/573)) -- Update comments and labels from 2024 to 2025 ([#574](https://github.com/polkadot-js/wasm/pull/574)) -- Bump yarn to 4.6.0 ([#575](https://github.com/polkadot-js/wasm/pull/575)) -- Set execute for build script in CI ([#576](https://github.com/polkadot-js/wasm/pull/576)) -- Set permissions on all scripts ([#577](https://github.com/polkadot-js/wasm/pull/577)) -- Bump dev to 0.83.2 ([#578](https://github.com/polkadot-js/wasm/pull/578)) -- chore: added check in ext_secp_recover for signature normalization ([#579](https://github.com/polkadot-js/wasm/pull/579)) -- chore: Improve CI ([#580](https://github.com/polkadot-js/wasm/pull/580)) -- Revert CI improvements and wasm-bindgen version ([#583](https://github.com/polkadot-js/wasm/pull/583)) -- Added validation checks in PBKDF2 and Scrypt hashing functions ([#584](https://github.com/polkadot-js/wasm/pull/584)) -- Rollback wasm-bindgen version change ([#586](https://github.com/polkadot-js/wasm/pull/586)) -- Fix rust version to 1.84 ([#587](https://github.com/polkadot-js/wasm/pull/587)) -- Default to installed rust version ([#588](https://github.com/polkadot-js/wasm/pull/588)) -- Default to nightly rust version ([#589](https://github.com/polkadot-js/wasm/pull/589)) -- Ci Fix ([#590](https://github.com/polkadot-js/wasm/pull/590)) -- Read lock file ([#591](https://github.com/polkadot-js/wasm/pull/591)) -- Setup nightly as default ([#592](https://github.com/polkadot-js/wasm/pull/592)) -- Tweak install-build-deps.sh script ([#593](https://github.com/polkadot-js/wasm/pull/593)) -- Remove ASM build ([#594](https://github.com/polkadot-js/wasm/pull/594)) -- Bump @polkadot deps ([#595](https://github.com/polkadot-js/wasm/pull/595)) +- Bump yarn to 4.5.1 ([#573](https://github.com/pezkuwichain/pezkuwi-wasm/pull/573)) +- Update comments and labels from 2024 to 2025 ([#574](https://github.com/pezkuwichain/pezkuwi-wasm/pull/574)) +- Bump yarn to 4.6.0 ([#575](https://github.com/pezkuwichain/pezkuwi-wasm/pull/575)) +- Set execute for build script in CI ([#576](https://github.com/pezkuwichain/pezkuwi-wasm/pull/576)) +- Set permissions on all scripts ([#577](https://github.com/pezkuwichain/pezkuwi-wasm/pull/577)) +- Bump dev to 0.83.2 ([#578](https://github.com/pezkuwichain/pezkuwi-wasm/pull/578)) +- chore: added check in ext_secp_recover for signature normalization ([#579](https://github.com/pezkuwichain/pezkuwi-wasm/pull/579)) +- chore: Improve CI ([#580](https://github.com/pezkuwichain/pezkuwi-wasm/pull/580)) +- Revert CI improvements and wasm-bindgen version ([#583](https://github.com/pezkuwichain/pezkuwi-wasm/pull/583)) +- Added validation checks in PBKDF2 and Scrypt hashing functions ([#584](https://github.com/pezkuwichain/pezkuwi-wasm/pull/584)) +- Rollback wasm-bindgen version change ([#586](https://github.com/pezkuwichain/pezkuwi-wasm/pull/586)) +- Fix rust version to 1.84 ([#587](https://github.com/pezkuwichain/pezkuwi-wasm/pull/587)) +- Default to installed rust version ([#588](https://github.com/pezkuwichain/pezkuwi-wasm/pull/588)) +- Default to nightly rust version ([#589](https://github.com/pezkuwichain/pezkuwi-wasm/pull/589)) +- Ci Fix ([#590](https://github.com/pezkuwichain/pezkuwi-wasm/pull/590)) +- Read lock file ([#591](https://github.com/pezkuwichain/pezkuwi-wasm/pull/591)) +- Setup nightly as default ([#592](https://github.com/pezkuwichain/pezkuwi-wasm/pull/592)) +- Tweak install-build-deps.sh script ([#593](https://github.com/pezkuwichain/pezkuwi-wasm/pull/593)) +- Remove ASM build ([#594](https://github.com/pezkuwichain/pezkuwi-wasm/pull/594)) +- Bump @pezkuwi deps ([#595](https://github.com/pezkuwichain/pezkuwi-wasm/pull/595)) ## 7.4.1 Oct 20, 2024 @@ -115,7 +115,7 @@ Changes: Changes: -- Update to latest `@polkadot/dev` (w/ tsc jsx detection output changes) +- Update to latest `@pezkuwi/dev` (w/ tsc jsx detection output changes) ## 7.0.1 Mar 4, 2023 @@ -217,7 +217,7 @@ Changes: Changes: -- Swap from `libsecp256k1` to `secp256k1` (this aligns with the Substrate use) +- Swap from `libsecp256k1` to `secp256k1` (this aligns with the Bizinikiwi use) - Adjust `wasm-crypto/init*` to also export `initWasm(): Promise` (optional manual init) - Allow for `wasm-crypto/initNone` with no defined Wasm or Asm interfaces - Fix initialization on React Native with only ASM @@ -225,12 +225,12 @@ Changes: ## 5.0.1 Mar 19, 2022 -- **Breaking change** For users of React Native, you are now required to add `import '@polkadot/wasm-crypto/initOnlyAsm'` at your project top-level to ensure that asm.js is initialized. (Or alternatively `import '@polkadot/wasm-crypto/initWasmAsm'` to future-proof when WASM does become available) -- **Breaking change** For users who used to map the `data` and `empty` of the internal `wasm-crypto-{wasm, asmjs}` packages in their bundlers, swap to one of the `@polkadot/wasm-crypto/init*` top-level imports to set the type of interfaces you would prefer. A full writeup of the rationale and other options can be found [in the FAQ](https://polkadot.js.org/docs/util-crypto/FAQ#i-dont-have-wasm-available-in-my-environment) +- **Breaking change** For users of React Native, you are now required to add `import '@pezkuwi/wasm-crypto/initOnlyAsm'` at your project top-level to ensure that asm.js is initialized. (Or alternatively `import '@pezkuwi/wasm-crypto/initWasmAsm'` to future-proof when WASM does become available) +- **Breaking change** For users who used to map the `data` and `empty` of the internal `wasm-crypto-{wasm, asmjs}` packages in their bundlers, swap to one of the `@pezkuwi/wasm-crypto/init*` top-level imports to set the type of interfaces you would prefer. A full writeup of the rationale and other options can be found [in the FAQ](https://js.pezkuwichain.io/docs/util-crypto/FAQ#i-dont-have-wasm-available-in-my-environment) Changes: -- Add (optional) `@polkadot/wasm-crypto/init{OnlyAsm, OnlyWasm, WasmAsm}` to allow specific interface types +- Add (optional) `@pezkuwi/wasm-crypto/init{OnlyAsm, OnlyWasm, WasmAsm}` to allow specific interface types - Add work-around for lazy secp256k1 init in asm.js environments - Optimize asm.js output size - Use latest `wasm-bindgen`, `binaryen` & `wabt` packages in build @@ -292,7 +292,7 @@ Changes: Changes: -- Bump `@polkadot/dev` to allow for bundles with new-format +- Bump `@pezkuwi/dev` to allow for bundles with new-format ## 4.1.1 Jul 7, 2021 @@ -363,13 +363,13 @@ Changes: ## 3.0.1 Dec 13, 2020 -**Important** This assumes `@polkadot/util` 5+ peerDependencies +**Important** This assumes `@pezkuwi/util` 5+ peerDependencies **Important** While this package contains no external interface changes, it doe now compile and ship both cjs and esm modules. This means that modern bundlers will have more information for tree-shaking available. Additionally when using Node with `.mjs` extensions, the esm version imports will be used on recent Node versions. Adding an export map, as here, may have some impacts so a major semver bump is advised. There may be (small) dragons hiding in the dark corners... Changes: - Build and expose both cjs and esm via exports map -- Split wasm and asmjs files into the `@polkadot/wasm-crypto-{wasm,asmjs}` packages +- Split wasm and asmjs files into the `@pezkuwi/wasm-crypto-{wasm,asmjs}` packages - Add fflate WASM compression, with 180K raw savings (37K over-the-wire) - Convert the package to full TypeScript sources @@ -379,7 +379,7 @@ Changes: Changes: - Rework generation of WASM interfaces (proper cross-platform JS support) -- Remove explicit `crypto` dependency, this is now applied by `@polkadot/x-randomvalues` +- Remove explicit `crypto` dependency, this is now applied by `@pezkuwi/x-randomvalues` - Build via xargo for panic abort, an overall small sizes without stack (Pinned nightly) - Move Rust library sources in to `rs/` subfolder @@ -396,7 +396,7 @@ Changes: Changes: - Add `scrypt` function for KDF generation -- Remove `bip39ToSeed`, we only use the `bip39ToMiniSecret` variant in Substrate +- Remove `bip39ToSeed`, we only use the `bip39ToMiniSecret` variant in Bizinikiwi - Update ed25519-dalek to 1.0.0-pre.4 - Rework generation based on latest wasm-pack generator @@ -431,7 +431,7 @@ Changes: Changes: -- Pull in schnorrkel 0.8.5 for full Substrate 2.x compatibility +- Pull in schnorrkel 0.8.5 for full Bizinikiwi 2.x compatibility ## 0.14.1 Sep 09, 2019 @@ -452,7 +452,7 @@ Changes: Changes: -- Remove deprecated `@polkadot/wasm-schnorrkel` & `@polkadot/wasm-dalek-ed25519` source (all combined in `@polkadot/wasm-crypto`, was kept for historical purposes) +- Remove deprecated `@pezkuwi/wasm-schnorrkel` & `@pezkuwi/wasm-dalek-ed25519` source (all combined in `@pezkuwi/wasm-crypto`, was kept for historical purposes) - Security dependency bumps - Updated Rust `hex-literal` for recent versions of the compiler (used in tests only) @@ -468,7 +468,7 @@ Changes: Changes: -- w3f/schnorrkel updated to 0.1.1 as per substrate +- w3f/schnorrkel updated to 0.1.1 as per bizinikiwi - Added known subkey signature test (Rust & JS) @@ -483,7 +483,7 @@ Changes: Changes: -- Pull ed25519 & sr25519 into `@polkadot/wasm-crypto` as well (smaller final size) +- Pull ed25519 & sr25519 into `@pezkuwi/wasm-crypto` as well (smaller final size) - Disable build/publish of `wasm-dalek-ed25519` & `wasm-schnorrkel` - Improve error messaging, instead of `__wasm_malloc of null` diff --git a/README.md b/README.md index 4256fae..b450d02 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @polkadot/wasm +# @pezkuwi/wasm Various WASM wrappers around Rust crates @@ -8,10 +8,10 @@ It is split up into a number of internal packages, namely utilities - - [wasm-crypto](packages/wasm-crypto/) Various hashing functions, sr25519 & ed25519 crypto -These are split from the `polkadot-js/util` repo where it is heavily used as part of `@polkadot/util-crypto`. (There JS fallbacks are available for some interfaces, e.g. hashing, but for sr25519 WASM is the only interface). Since these don't undergo massive changes on a daily basis and has a build overhead (WASM compilation & optimisation), it is better managed as a seperate repo with a specific CI configuration. +These are split from the `pezkuwi/util` repo where it is heavily used as part of `@pezkuwi/util-crypto`. (There JS fallbacks are available for some interfaces, e.g. hashing, but for sr25519 WASM is the only interface). Since these don't undergo massive changes on a daily basis and has a build overhead (WASM compilation & optimisation), it is better managed as a seperate repo with a specific CI configuration. ## development Contributions are welcome! -To start off, this repo (along with others in the [@polkadot](https://github.com/polkadot-js/) family) uses yarn workspaces to organise the code. As such, after cloning, its dependencies _should_ be installed via `yarn`, not via npm; the latter will result in broken dependencies. +To start off, this repo (along with others in the [@pezkuwi](https://github.com/pezkuwi/) family) uses yarn workspaces to organise the code. As such, after cloning, its dependencies _should_ be installed via `yarn`, not via npm; the latter will result in broken dependencies. diff --git a/eslint.config.js b/eslint.config.js index d728f67..fc776c1 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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 -import baseConfig from '@polkadot/dev/config/eslint'; +import baseConfig from '@pezkuwi/dev/config/eslint'; export default [ ...baseConfig, diff --git a/package.json b/package.json index 9b2d0e0..a4e30bb 100644 --- a/package.json +++ b/package.json @@ -25,26 +25,26 @@ "scripts": { "build": "yarn build:wasm", "build:js": "./scripts/build-js.sh", - "build:release": "polkadot-ci-ghact-build", - "build:rollup": "polkadot-exec-rollup --config", + "build:release": "pezkuwi-ci-ghact-build", + "build:rollup": "pezkuwi-exec-rollup --config", "build:wasm": "./scripts/build.sh", "clean": "./scripts/clean.sh", "deno": "yarn deno:build && yarn deno:check", "deno:build": "WITH_DENO=1 yarn build", "deno:check": "deno check --import-map=import_map.json mod.ts", - "lint": "polkadot-dev-run-lint", - "postinstall": "polkadot-dev-yarn-only", + "lint": "pezkuwi-dev-run-lint", + "postinstall": "pezkuwi-dev-yarn-only", "test": "yarn test:wasm-crypto:rust", "test:js": "yarn test:wasm-crypto:js", "test:wasm-crypto:deno": "deno test --allow-read --import-map=import_map.json packages/wasm-crypto/test/deno.ts", "test:wasm-crypto:js": "yarn test:wasm-crypto:js:jest && yarn test:wasm-crypto:js:node", - "test:wasm-crypto:js:jest": "polkadot-dev-run-test --env node --loader ./packages/wasm-crypto/test/loader-build.js", + "test:wasm-crypto:js:jest": "pezkuwi-dev-run-test --env node --loader ./packages/wasm-crypto/test/loader-build.js", "test:wasm-crypto:js:node": "node --no-warnings --loader ./packages/wasm-crypto/test/loader-build.js ./packages/wasm-crypto/test/wasm.js && node --no-warnings --loader ./packages/wasm-crypto/test/loader-build.js ./packages/wasm-crypto/test/asm.js", "test:wasm-crypto:rust": "cd packages/wasm-crypto && RUST_BACKTRACE=full cargo test --release -- --test-threads=1 --nocapture" }, "devDependencies": { "@pezkuwi/util": "^14.0.1", - "@polkadot/dev": "^0.83.3", + "@pezkuwi/dev": "^0.83.3", "@types/node": "^20.16.1", "fflate": "^0.8.2" }, diff --git a/packages/scure-sr25519/README.md b/packages/scure-sr25519/README.md index 0637715..752d7dd 100644 --- a/packages/scure-sr25519/README.md +++ b/packages/scure-sr25519/README.md @@ -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 diff --git a/packages/scure-sr25519/lib/esm/index.js b/packages/scure-sr25519/lib/esm/index.js index ceb4316..fd6bfe2 100644 --- a/packages/scure-sr25519/lib/esm/index.js +++ b/packages/scure-sr25519/lib/esm/index.js @@ -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'; diff --git a/packages/scure-sr25519/lib/index.js b/packages/scure-sr25519/lib/index.js index d4e4628..c610dde 100644 --- a/packages/scure-sr25519/lib/index.js +++ b/packages/scure-sr25519/lib/index.js @@ -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"); diff --git a/packages/scure-sr25519/package.json b/packages/scure-sr25519/package.json index ae38f4b..3866fc1 100644 --- a/packages/scure-sr25519/package.json +++ b/packages/scure-sr25519/package.json @@ -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" } diff --git a/packages/wasm-bridge/README.md b/packages/wasm-bridge/README.md index 15019da..1704b90 100644 --- a/packages/wasm-bridge/README.md +++ b/packages/wasm-bridge/README.md @@ -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`. diff --git a/packages/wasm-bridge/src/bridge.ts b/packages/wasm-bridge/src/bridge.ts index 762c284..87e4c9e 100644 --- a/packages/wasm-bridge/src/bridge.ts +++ b/packages/wasm-bridge/src/bridge.ts @@ -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 diff --git a/packages/wasm-bridge/src/bundle.ts b/packages/wasm-bridge/src/bundle.ts index 8ce9b20..aff420e 100644 --- a/packages/wasm-bridge/src/bundle.ts +++ b/packages/wasm-bridge/src/bundle.ts @@ -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'; diff --git a/packages/wasm-bridge/src/index.ts b/packages/wasm-bridge/src/index.ts index b0711ee..bfc0790 100644 --- a/packages/wasm-bridge/src/index.ts +++ b/packages/wasm-bridge/src/index.ts @@ -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'; diff --git a/packages/wasm-bridge/src/init.ts b/packages/wasm-bridge/src/init.ts index 3521ca4..5e050d1 100644 --- a/packages/wasm-bridge/src/init.ts +++ b/packages/wasm-bridge/src/init.ts @@ -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'; diff --git a/packages/wasm-bridge/src/mod.ts b/packages/wasm-bridge/src/mod.ts index 14c6fc0..3eb1274 100644 --- a/packages/wasm-bridge/src/mod.ts +++ b/packages/wasm-bridge/src/mod.ts @@ -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'; diff --git a/packages/wasm-bridge/src/packageDetect.ts b/packages/wasm-bridge/src/packageDetect.ts index eb43a30..4aad0ac 100644 --- a/packages/wasm-bridge/src/packageDetect.ts +++ b/packages/wasm-bridge/src/packageDetect.ts @@ -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'; diff --git a/packages/wasm-bridge/src/packageInfo.ts b/packages/wasm-bridge/src/packageInfo.ts index 25127d1..2ee79ef 100644 --- a/packages/wasm-bridge/src/packageInfo.ts +++ b/packages/wasm-bridge/src/packageInfo.ts @@ -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' }; diff --git a/packages/wasm-bridge/src/types.ts b/packages/wasm-bridge/src/types.ts index 060b2f9..e2a03d9 100644 --- a/packages/wasm-bridge/src/types.ts +++ b/packages/wasm-bridge/src/types.ts @@ -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 diff --git a/packages/wasm-bridge/src/wbg.ts b/packages/wasm-bridge/src/wbg.ts index 2f190c5..b85cf85 100644 --- a/packages/wasm-bridge/src/wbg.ts +++ b/packages/wasm-bridge/src/wbg.ts @@ -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'; diff --git a/packages/wasm-crypto-asmjs/README.md b/packages/wasm-crypto-asmjs/README.md index 411432f..543f5f9 100644 --- a/packages/wasm-crypto-asmjs/README.md +++ b/packages/wasm-crypto-asmjs/README.md @@ -1,3 +1,3 @@ -## @polkadot/wasm-crypto-asmjs +## @pezkuwi/wasm-crypto-asmjs Asm.js build outputs. diff --git a/packages/wasm-crypto-asmjs/src/bundle.ts b/packages/wasm-crypto-asmjs/src/bundle.ts index 804c42b..753fae1 100644 --- a/packages/wasm-crypto-asmjs/src/bundle.ts +++ b/packages/wasm-crypto-asmjs/src/bundle.ts @@ -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'; diff --git a/packages/wasm-crypto-asmjs/src/cjs/cjs/data.js b/packages/wasm-crypto-asmjs/src/cjs/cjs/data.js index d2abfc6..5009f8f 100644 --- a/packages/wasm-crypto-asmjs/src/cjs/cjs/data.js +++ b/packages/wasm-crypto-asmjs/src/cjs/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'); diff --git a/packages/wasm-crypto-asmjs/src/cjs/data.d.ts b/packages/wasm-crypto-asmjs/src/cjs/data.d.ts index 554a191..fc2b11d 100644 --- a/packages/wasm-crypto-asmjs/src/cjs/data.d.ts +++ b/packages/wasm-crypto-asmjs/src/cjs/data.d.ts @@ -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; diff --git a/packages/wasm-crypto-asmjs/src/cjs/data.js b/packages/wasm-crypto-asmjs/src/cjs/data.js index 88f3f9f..a3a1a8d 100644 --- a/packages/wasm-crypto-asmjs/src/cjs/data.js +++ b/packages/wasm-crypto-asmjs/src/cjs/data.js @@ -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; diff --git a/packages/wasm-crypto-asmjs/src/deno/data.d.ts b/packages/wasm-crypto-asmjs/src/deno/data.d.ts index 554a191..fc2b11d 100644 --- a/packages/wasm-crypto-asmjs/src/deno/data.d.ts +++ b/packages/wasm-crypto-asmjs/src/deno/data.d.ts @@ -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; diff --git a/packages/wasm-crypto-asmjs/src/deno/data.js b/packages/wasm-crypto-asmjs/src/deno/data.js index 390812d..84b2285 100644 --- a/packages/wasm-crypto-asmjs/src/deno/data.js +++ b/packages/wasm-crypto-asmjs/src/deno/data.js @@ -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; diff --git a/packages/wasm-crypto-asmjs/src/index.ts b/packages/wasm-crypto-asmjs/src/index.ts index 834dd2f..0b7f316 100644 --- a/packages/wasm-crypto-asmjs/src/index.ts +++ b/packages/wasm-crypto-asmjs/src/index.ts @@ -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'; diff --git a/packages/wasm-crypto-asmjs/src/mod.ts b/packages/wasm-crypto-asmjs/src/mod.ts index 4ee27d7..5ed24ca 100644 --- a/packages/wasm-crypto-asmjs/src/mod.ts +++ b/packages/wasm-crypto-asmjs/src/mod.ts @@ -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'; diff --git a/packages/wasm-crypto-asmjs/src/packageDetect.ts b/packages/wasm-crypto-asmjs/src/packageDetect.ts index c019000..c1db55e 100644 --- a/packages/wasm-crypto-asmjs/src/packageDetect.ts +++ b/packages/wasm-crypto-asmjs/src/packageDetect.ts @@ -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'; diff --git a/packages/wasm-crypto-asmjs/src/packageInfo.ts b/packages/wasm-crypto-asmjs/src/packageInfo.ts index 981400f..c545264 100644 --- a/packages/wasm-crypto-asmjs/src/packageInfo.ts +++ b/packages/wasm-crypto-asmjs/src/packageInfo.ts @@ -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' }; diff --git a/packages/wasm-crypto-init/README.md b/packages/wasm-crypto-init/README.md index b04e90e..6bdb46a 100644 --- a/packages/wasm-crypto-init/README.md +++ b/packages/wasm-crypto-init/README.md @@ -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. diff --git a/packages/wasm-crypto-init/src/asm.ts b/packages/wasm-crypto-init/src/asm.ts index 81417a5..e77f164 100644 --- a/packages/wasm-crypto-init/src/asm.ts +++ b/packages/wasm-crypto-init/src/asm.ts @@ -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'; diff --git a/packages/wasm-crypto-init/src/both.ts b/packages/wasm-crypto-init/src/both.ts index 4ec789b..d7a0c99 100644 --- a/packages/wasm-crypto-init/src/both.ts +++ b/packages/wasm-crypto-init/src/both.ts @@ -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'; diff --git a/packages/wasm-crypto-init/src/bundle.ts b/packages/wasm-crypto-init/src/bundle.ts index 9f2e8a4..1591106 100644 --- a/packages/wasm-crypto-init/src/bundle.ts +++ b/packages/wasm-crypto-init/src/bundle.ts @@ -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'; diff --git a/packages/wasm-crypto-init/src/mod.ts b/packages/wasm-crypto-init/src/mod.ts index 9f2e8a4..1591106 100644 --- a/packages/wasm-crypto-init/src/mod.ts +++ b/packages/wasm-crypto-init/src/mod.ts @@ -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'; diff --git a/packages/wasm-crypto-init/src/none.ts b/packages/wasm-crypto-init/src/none.ts index 28ff4c9..fbfcd7b 100644 --- a/packages/wasm-crypto-init/src/none.ts +++ b/packages/wasm-crypto-init/src/none.ts @@ -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'; diff --git a/packages/wasm-crypto-init/src/packageDetect.ts b/packages/wasm-crypto-init/src/packageDetect.ts index f47fcae..3414843 100644 --- a/packages/wasm-crypto-init/src/packageDetect.ts +++ b/packages/wasm-crypto-init/src/packageDetect.ts @@ -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'; diff --git a/packages/wasm-crypto-init/src/packageInfo.ts b/packages/wasm-crypto-init/src/packageInfo.ts index fde0754..2988b26 100644 --- a/packages/wasm-crypto-init/src/packageInfo.ts +++ b/packages/wasm-crypto-init/src/packageInfo.ts @@ -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' }; diff --git a/packages/wasm-crypto-init/src/types.ts b/packages/wasm-crypto-init/src/types.ts index cc4289e..9f9c5bc 100644 --- a/packages/wasm-crypto-init/src/types.ts +++ b/packages/wasm-crypto-init/src/types.ts @@ -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'; diff --git a/packages/wasm-crypto-init/src/wasm.ts b/packages/wasm-crypto-init/src/wasm.ts index 32e262f..f646e21 100644 --- a/packages/wasm-crypto-init/src/wasm.ts +++ b/packages/wasm-crypto-init/src/wasm.ts @@ -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'; diff --git a/packages/wasm-crypto-wasm/README.md b/packages/wasm-crypto-wasm/README.md index 902014a..dfb5bd3 100644 --- a/packages/wasm-crypto-wasm/README.md +++ b/packages/wasm-crypto-wasm/README.md @@ -1,3 +1,3 @@ -## @polkadot/wasm-crypto-wasm +## @pezkuwi/wasm-crypto-wasm Wasm build outputs. diff --git a/packages/wasm-crypto-wasm/src/bundle.ts b/packages/wasm-crypto-wasm/src/bundle.ts index 3ab51f8..99b3298 100644 --- a/packages/wasm-crypto-wasm/src/bundle.ts +++ b/packages/wasm-crypto-wasm/src/bundle.ts @@ -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'; diff --git a/packages/wasm-crypto-wasm/src/packageInfo.ts b/packages/wasm-crypto-wasm/src/packageInfo.ts index ce42814..3a6d0e6 100644 --- a/packages/wasm-crypto-wasm/src/packageInfo.ts +++ b/packages/wasm-crypto-wasm/src/packageInfo.ts @@ -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 diff --git a/packages/wasm-crypto/README.md b/packages/wasm-crypto/README.md index 2e2bb55..efb7de0 100644 --- a/packages/wasm-crypto/README.md +++ b/packages/wasm-crypto/README.md @@ -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(); diff --git a/packages/wasm-crypto/src/bundle.ts b/packages/wasm-crypto/src/bundle.ts index f27da62..dc6fe97 100644 --- a/packages/wasm-crypto/src/bundle.ts +++ b/packages/wasm-crypto/src/bundle.ts @@ -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'; diff --git a/packages/wasm-crypto/src/index.ts b/packages/wasm-crypto/src/index.ts index 13b1b35..290b47e 100644 --- a/packages/wasm-crypto/src/index.ts +++ b/packages/wasm-crypto/src/index.ts @@ -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'; diff --git a/packages/wasm-crypto/src/init.ts b/packages/wasm-crypto/src/init.ts index 0584570..997d73f 100644 --- a/packages/wasm-crypto/src/init.ts +++ b/packages/wasm-crypto/src/init.ts @@ -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'; diff --git a/packages/wasm-crypto/src/initNone.ts b/packages/wasm-crypto/src/initNone.ts index fd536e4..202e9ed 100644 --- a/packages/wasm-crypto/src/initNone.ts +++ b/packages/wasm-crypto/src/initNone.ts @@ -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'; diff --git a/packages/wasm-crypto/src/initOnlyAsm.ts b/packages/wasm-crypto/src/initOnlyAsm.ts index 622fa81..4ebf5e4 100644 --- a/packages/wasm-crypto/src/initOnlyAsm.ts +++ b/packages/wasm-crypto/src/initOnlyAsm.ts @@ -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'; diff --git a/packages/wasm-crypto/src/initOnlyWasm.ts b/packages/wasm-crypto/src/initOnlyWasm.ts index d9cb8fe..a8df614 100644 --- a/packages/wasm-crypto/src/initOnlyWasm.ts +++ b/packages/wasm-crypto/src/initOnlyWasm.ts @@ -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'; diff --git a/packages/wasm-crypto/src/initWasmAsm.ts b/packages/wasm-crypto/src/initWasmAsm.ts index 629ed82..ef1883f 100644 --- a/packages/wasm-crypto/src/initWasmAsm.ts +++ b/packages/wasm-crypto/src/initWasmAsm.ts @@ -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'; diff --git a/packages/wasm-crypto/src/mod.ts b/packages/wasm-crypto/src/mod.ts index 768b63e..ee9fa23 100644 --- a/packages/wasm-crypto/src/mod.ts +++ b/packages/wasm-crypto/src/mod.ts @@ -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'; diff --git a/packages/wasm-crypto/src/packageDetect.ts b/packages/wasm-crypto/src/packageDetect.ts index 5e4b699..f8fbce1 100644 --- a/packages/wasm-crypto/src/packageDetect.ts +++ b/packages/wasm-crypto/src/packageDetect.ts @@ -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'; diff --git a/packages/wasm-crypto/src/packageInfo.ts b/packages/wasm-crypto/src/packageInfo.ts index aa71c72..3ac6d52 100644 --- a/packages/wasm-crypto/src/packageInfo.ts +++ b/packages/wasm-crypto/src/packageInfo.ts @@ -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' }; diff --git a/packages/wasm-crypto/src/rs/sr25519.rs b/packages/wasm-crypto/src/rs/sr25519.rs index 7940440..99f58db 100644 --- a/packages/wasm-crypto/src/rs/sr25519.rs +++ b/packages/wasm-crypto/src/rs/sr25519.rs @@ -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 diff --git a/packages/wasm-crypto/src/rs/vrf.rs b/packages/wasm-crypto/src/rs/vrf.rs index 98effeb..a083001 100644 --- a/packages/wasm-crypto/src/rs/vrf.rs +++ b/packages/wasm-crypto/src/rs/vrf.rs @@ -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; diff --git a/packages/wasm-crypto/test/all/bip39.js b/packages/wasm-crypto/test/all/bip39.js index 89092fb..4099de2 100644 --- a/packages/wasm-crypto/test/all/bip39.js +++ b/packages/wasm-crypto/test/all/bip39.js @@ -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); diff --git a/packages/wasm-crypto/test/all/ed25519.js b/packages/wasm-crypto/test/all/ed25519.js index ff102b6..efb3405 100644 --- a/packages/wasm-crypto/test/all/ed25519.js +++ b/packages/wasm-crypto/test/all/ed25519.js @@ -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 */ diff --git a/packages/wasm-crypto/test/all/hashing.js b/packages/wasm-crypto/test/all/hashing.js index 5097448..8315905 100644 --- a/packages/wasm-crypto/test/all/hashing.js +++ b/packages/wasm-crypto/test/all/hashing.js @@ -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 */ diff --git a/packages/wasm-crypto/test/all/index.js b/packages/wasm-crypto/test/all/index.js index 65a7d1d..ba168dc 100644 --- a/packages/wasm-crypto/test/all/index.js +++ b/packages/wasm-crypto/test/all/index.js @@ -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, diff --git a/packages/wasm-crypto/test/all/secp256k1.js b/packages/wasm-crypto/test/all/secp256k1.js index 43d744d..ebe82bb 100644 --- a/packages/wasm-crypto/test/all/secp256k1.js +++ b/packages/wasm-crypto/test/all/secp256k1.js @@ -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, diff --git a/packages/wasm-crypto/test/all/sr25519.js b/packages/wasm-crypto/test/all/sr25519.js index bea82c3..71424b7 100644 --- a/packages/wasm-crypto/test/all/sr25519.js +++ b/packages/wasm-crypto/test/all/sr25519.js @@ -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 */ diff --git a/packages/wasm-crypto/test/all/vrf.js b/packages/wasm-crypto/test/all/vrf.js index fd50bcd..fdf8bfc 100644 --- a/packages/wasm-crypto/test/all/vrf.js +++ b/packages/wasm-crypto/test/all/vrf.js @@ -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 */ diff --git a/packages/wasm-crypto/test/asm.js b/packages/wasm-crypto/test/asm.js index b8700df..015f2a8 100644 --- a/packages/wasm-crypto/test/asm.js +++ b/packages/wasm-crypto/test/asm.js @@ -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'; diff --git a/packages/wasm-crypto/test/deno.ts b/packages/wasm-crypto/test/deno.ts index 40a1f6b..f148545 100644 --- a/packages/wasm-crypto/test/deno.ts +++ b/packages/wasm-crypto/test/deno.ts @@ -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 diff --git a/packages/wasm-crypto/test/jest.spec.ts b/packages/wasm-crypto/test/jest.spec.ts index bfe9135..8b3a283 100644 --- a/packages/wasm-crypto/test/jest.spec.ts +++ b/packages/wasm-crypto/test/jest.spec.ts @@ -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 -/// +/// // 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) diff --git a/packages/wasm-crypto/test/loader-build.js b/packages/wasm-crypto/test/loader-build.js index 631b0d5..7ba2ba6 100644 --- a/packages/wasm-crypto/test/loader-build.js +++ b/packages/wasm-crypto/test/loader-build.js @@ -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'; diff --git a/packages/wasm-crypto/test/wasm.js b/packages/wasm-crypto/test/wasm.js index 09932ba..7ddda25 100644 --- a/packages/wasm-crypto/test/wasm.js +++ b/packages/wasm-crypto/test/wasm.js @@ -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'; diff --git a/packages/wasm-util/README.md b/packages/wasm-util/README.md index 552a766..b9cde16 100644 --- a/packages/wasm-util/README.md +++ b/packages/wasm-util/README.md @@ -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`. diff --git a/packages/wasm-util/src/base64.spec.ts b/packages/wasm-util/src/base64.spec.ts index 5242b0a..f74c40e 100644 --- a/packages/wasm-util/src/base64.spec.ts +++ b/packages/wasm-util/src/base64.spec.ts @@ -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 -/// +/// import { base64Decode } from './base64.js'; diff --git a/packages/wasm-util/src/base64.ts b/packages/wasm-util/src/base64.ts index 9af240d..fda9279 100644 --- a/packages/wasm-util/src/base64.ts +++ b/packages/wasm-util/src/base64.ts @@ -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 diff --git a/packages/wasm-util/src/bundle.ts b/packages/wasm-util/src/bundle.ts index bf86483..f904244 100644 --- a/packages/wasm-util/src/bundle.ts +++ b/packages/wasm-util/src/bundle.ts @@ -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'; diff --git a/packages/wasm-util/src/fflate.ts b/packages/wasm-util/src/fflate.ts index ebcdfb1..717c74a 100644 --- a/packages/wasm-util/src/fflate.ts +++ b/packages/wasm-util/src/fflate.ts @@ -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), diff --git a/packages/wasm-util/src/index.ts b/packages/wasm-util/src/index.ts index e2cd40c..a7323d4 100644 --- a/packages/wasm-util/src/index.ts +++ b/packages/wasm-util/src/index.ts @@ -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'; diff --git a/packages/wasm-util/src/mod.ts b/packages/wasm-util/src/mod.ts index cf5d2a7..3e19687 100644 --- a/packages/wasm-util/src/mod.ts +++ b/packages/wasm-util/src/mod.ts @@ -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'; diff --git a/packages/wasm-util/src/packageDetect.ts b/packages/wasm-util/src/packageDetect.ts index 384774d..43f9378 100644 --- a/packages/wasm-util/src/packageDetect.ts +++ b/packages/wasm-util/src/packageDetect.ts @@ -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'; diff --git a/packages/wasm-util/src/packageInfo.ts b/packages/wasm-util/src/packageInfo.ts index b158534..d0b5cad 100644 --- a/packages/wasm-util/src/packageInfo.ts +++ b/packages/wasm-util/src/packageInfo.ts @@ -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' }; diff --git a/rollup.config.js b/rollup.config.js index b32613c..4302007 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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 -import { createBundle } from '@polkadot/dev/config/rollup'; +import { createBundle } from '@pezkuwi/dev/config/rollup'; const pkgs = [ '@pezkuwi/wasm-crypto' diff --git a/tsconfig.base.json b/tsconfig.base.json index 04b71cb..55e49a1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,5 +1,5 @@ { - "extends": "@polkadot/dev/config/tsconfig.json", + "extends": "@pezkuwi/dev/config/tsconfig.json", "compilerOptions": { "composite": true, "paths": {