Compare commits

...
69 Commits
Author SHA1 Message Date
github-actions[bot] 5a04d67bb2 [CI Skip] release/stable 13.5.4
skip-checks: true
2025-07-28 16:16:48 +00:00
Arjun Porwal 41481c1e3a 13.5.4 (#1999) 2025-07-28 21:43:02 +05:30
github-actions[bot] 8a8b583f81 [CI Skip] bump/beta 13.5.4-0-x
skip-checks: true
2025-07-28 15:59:37 +00:00
SalinaandBeqa Abuladze 03c8169cd9 Add Creditcoin3 support to Generic Ledger App (#1985)
* Update genesis.ts with creditcoin3 geneis hash

* Update defaults.ts with a Creditcoin3

* Update ledger.ts with creditcoin3

* Update defaults.ts to move creditcoin3 in sorted order

* chore: move creditcoin3 to genericLedgerApps

* chore: add cc3 testnet, drynet and devnet

* chore: yarn lint

---------

Co-authored-by: Beqa Abuladze <beqaabuladze.00@gmail.com>
2025-07-28 21:25:51 +05:30
github-actions[bot] f9ee358442 [CI Skip] release/stable 13.5.3
skip-checks: true
2025-07-01 15:36:43 +00:00
rajk93 ef5cfc728c 13.5.3 (#1996) 2025-07-01 12:32:55 -03:00
github-actions[bot] 88b8a54018 [CI Skip] bump/beta 13.5.3-2-x
skip-checks: true
2025-07-01 14:46:07 +00:00
rajk93 8c666725b2 chore: update polkadot dependencies (#1995) 2025-07-01 11:42:12 -03:00
github-actions[bot] daabdfac45 [CI Skip] bump/beta 13.5.3-1-x
skip-checks: true
2025-06-30 10:23:33 +00:00
Arjun Porwal 538359fd49 Add Optional Strict Input Checking to u8aToU8a (#1994)
* fix: add error handling for null and undefined inputs in u8aToU8a function

* fix: update u8aToU8a function to handle null/undefined inputs with strict checking

* docs: update documentation for u8aToU8a
2025-06-30 15:49:42 +05:30
github-actions[bot] df044669e2 [CI Skip] bump/beta 13.5.3-0-x
skip-checks: true
2025-06-18 16:10:04 +00:00
Arjun Porwal 60374f417a Update scrypt parameter validation (#1993)
* feat: update scrypt parameter validation to use ALLOWED_PARAMS

* fix: lint
2025-06-18 21:36:13 +05:30
github-actions[bot] 5235009f4c [CI Skip] release/stable 13.5.2
skip-checks: true
2025-06-17 14:57:41 +00:00
Valentin Fernandez 21bfff5a51 13.5.2 (#1992) 2025-06-17 11:54:01 -03:00
github-actions[bot] 963025daab [CI Skip] bump/beta 13.5.2-2-x
skip-checks: true
2025-06-17 04:38:45 +00:00
rajk93 ec7ef17b64 chore: add error handling for secure rng in react native (#1991) 2025-06-17 10:04:59 +05:30
github-actions[bot] ef94fed1fe [CI Skip] bump/beta 13.5.2-1-x
skip-checks: true
2025-06-13 13:20:09 +00:00
Arjun Porwal 43ac361806 Add input length validation in scryptFromU8a function (#1990)
* fix: add input length validation in scryptFromU8a function

* fix: improve input validation in scryptFromU8a function

* fix: linting

* fix: update default Scrypt parameters for improved security

* revert: 9070615

* fix: remove dymanic calculation
2025-06-13 10:16:25 -03:00
github-actions[bot] 2bc18cfdbb [CI Skip] bump/beta 13.5.2-0-x
skip-checks: true
2025-05-26 12:10:45 +00:00
Radek Bochenek be7df03e7c feat: add Liberland support to Generic Ledger App (#1989) 2025-05-26 08:06:55 -04:00
github-actions[bot] 0ae44ed34e [CI Skip] release/stable 13.5.1
skip-checks: true
2025-05-19 15:50:11 +00:00
Tarik Gul 09d54ea200 13.5.1 (#1988) 2025-05-19 18:46:33 +03:00
github-actions[bot] 457ea1a0b7 [CI Skip] bump/beta 13.4.5-1-x
skip-checks: true
2025-05-19 15:20:57 +00:00
Tarik Gul 972363a5bb Bump yarn to 4.9.1 (#1987) 2025-05-19 18:17:15 +03:00
github-actions[bot] e59fe6fd22 [CI Skip] bump/beta 13.4.5-0-x
skip-checks: true
2025-05-19 04:16:27 +00:00
Tarik Gul 35f9f4468b Ledger ECDSA signing support (#1986)
* Ledger ECDSA signing support

* Updates inline docs

* linter
2025-05-19 07:12:41 +03:00
github-actions[bot] 802174d6ad [CI Skip] release/stable 13.4.4
skip-checks: true
2025-04-14 13:38:40 +00:00
Valentin Fernandez d690abea02 13.4.4 (#1984) 2025-04-14 10:35:01 -03:00
github-actions[bot] 26a762ae2e [CI Skip] bump/beta 13.4.4-0-x
skip-checks: true
2025-04-11 11:40:53 +00:00
Tarik Gul 9d49bcde75 Improve objectSpread function property handling (#1982)
* Improve objectSpread function property handling

* fix linter
2025-04-11 14:37:13 +03:00
github-actions[bot] 8b0f5bf46e [CI Skip] release/stable 13.4.3
skip-checks: true
2025-02-17 17:14:33 +00:00
Tarik Gul a75d8761da 13.4.3 (#1981) 2025-02-17 19:10:53 +02:00
github-actions[bot] a58fb0bbff [CI Skip] bump/beta 13.4.3-0-x
skip-checks: true
2025-02-17 16:45:40 +00:00
Valentin Fernandez 0467c410c8 Rollback ws change on x-ws (#1980) 2025-02-17 11:41:53 -05:00
github-actions[bot] 095095074e [CI Skip] release/stable 13.4.2
skip-checks: true
2025-02-17 14:32:08 +00:00
Tarik Gul 18a6764841 13.4.2 (#1979) 2025-02-17 16:28:27 +02:00
github-actions[bot] 0e0de687c3 [CI Skip] bump/beta 13.4.2-0-x
skip-checks: true
2025-02-17 14:14:17 +00:00
Valentin Fernandez 6197a897aa Cast ws as global.WebSocket (#1978) 2025-02-17 09:10:28 -05:00
github-actions[bot] 0f7954a89b [CI Skip] release/stable 13.4.1
skip-checks: true
2025-02-17 01:55:44 +00:00
Tarik Gul e056618d2e 13.4.1 (#1977)
* 13.4.1

* Update changelog
2025-02-17 03:51:57 +02:00
github-actions[bot] 82a485cc9c [CI Skip] bump/beta 13.3.2-4-x
skip-checks: true
2025-02-16 17:40:17 +00:00
Valentin Fernandezandtarikgul 2cbea7bf8d Fix Misclassification of ECDSA Signatures in verifyMultisig() (#1973)
* Fix multisignature routing to properly detect signature type

* Improve testing suite

* update dep in tests

* lint

* revert changes to tests

* Add reprocible test

---------

Co-authored-by: tarikgul <tariksnow37@gmail.com>
2025-02-16 12:36:35 -05:00
github-actions[bot] 748f670351 [CI Skip] bump/beta 13.3.2-3-x
skip-checks: true
2025-02-12 20:13:38 +00:00
Valentin Fernandez 5b2749073f Fix: Use ws library in Node.js 22+ for Better WebSocket Error Handling (#1976)
* Fallback to ws library on NodeJS 22+

* Add github issue reference to docs
2025-02-12 15:09:56 -05:00
github-actions[bot] a328ab4409 [CI Skip] bump/beta 13.3.2-2-x
skip-checks: true
2025-02-05 11:45:04 +00:00
Valentin Fernandez e25bb48ba9 Allow keyringPair to create using a mnemonic wordlist (#1974) 2025-02-05 06:41:14 -05:00
github-actions[bot] 8456870148 [CI Skip] bump/beta 13.3.2-1-x
skip-checks: true
2025-01-17 17:42:50 +00:00
Tarik Gul 6f8caad80f Bump dev to 0.83.2 (#1972)
* Bump dev to 0.83.1

* Test deno version

* test with deno 2.1.4

* correct version

* 1.46.3

* Up to 0.83.2
2025-01-17 19:39:05 +02:00
github-actions[bot] 25fe5f4e27 [CI Skip] bump/beta 13.3.2-0-x
skip-checks: true
2025-01-06 16:23:17 +00:00
Tarik Gul da2edf0aa0 Bump yarn to 4.6.0 (#1967) 2025-01-06 18:16:58 +02:00
github-actions[bot] eb7b24f9aa [CI Skip] release/stable 13.3.1
skip-checks: true
2025-01-06 14:53:56 +00:00
Tarik Gul f4e93cf2c2 13.3.1 (#1966) 2025-01-06 16:47:34 +02:00
github-actions[bot] 85b2da734c [CI Skip] bump/beta 13.2.4-0-x
skip-checks: true
2025-01-02 15:43:59 +00:00
Tarik Gul 5d03be1084 Fix toLocaleString for v22.12 (#1965)
* Fix toLocaleString for v22.12

* fix ci

* Update tests, and cleanup solution

* remove ar locale
2025-01-02 17:37:40 +02:00
Tarik Gul 2261862097 2025 (#1963)
* 2025

* Set CI version so header passes
2025-01-01 20:53:24 +02:00
github-actions[bot] 20d3af56ec [CI Skip] release/stable 13.2.3
skip-checks: true
2024-11-11 15:30:23 +00:00
Tarik Gul 367633a612 13.2.3 (#1960) 2024-11-11 17:24:04 +02:00
github-actions[bot] b127f678e9 [CI Skip] bump/beta 13.2.3-1-x
skip-checks: true
2024-11-11 15:06:22 +00:00
Tarik Gul 3404ad2945 Bump dev to 0.82.1 (#1959) 2024-11-11 16:59:56 +02:00
github-actions[bot] 4059615d66 [CI Skip] bump/beta 13.2.3-0-x
skip-checks: true
2024-11-05 14:54:53 +00:00
Dmitrii Novikov be9739ee9f Add Vara support to Generic Ledger App (#1958)
* add 'Vara' support to the Generic Ledger App

* add 'Vara Testnet' support to the Generic Ledger App

* remove testnet entry
2024-11-05 09:48:22 -05:00
github-actions[bot] 6ec09907a2 [CI Skip] release/stable 13.2.2
skip-checks: true
2024-10-28 15:40:57 +00:00
Tarik Gul 677a778833 13.2.2 (#1956) 2024-10-28 17:35:01 +02:00
github-actions[bot] fa90f0a747 [CI Skip] bump/beta 13.2.2-2-x
skip-checks: true
2024-10-28 14:02:14 +00:00
Wil Wade e721c4f508 Add Frequency to the Generic Ledger App (#1955) 2024-10-28 09:56:24 -04:00
github-actions[bot] 7f5bd09322 [CI Skip] bump/beta 13.2.2-1-x
skip-checks: true
2024-10-23 13:32:49 +00:00
Leonardo Razovic 5d6244fc0b feat: add Polimec (#1945) 2024-10-23 09:26:59 -04:00
github-actions[bot] 58f12c4257 [CI Skip] bump/beta 13.2.2-0-x
skip-checks: true
2024-10-22 14:30:05 +00:00
Tarik Gul 038d20b5e7 Bump yarn to 4.5.1 (#1953) 2024-10-22 17:24:18 +03:00
626 changed files with 2175 additions and 1846 deletions
+2 -1
View File
@@ -19,9 +19,10 @@ jobs:
- uses: denoland/setup-deno@v1
with:
# Deno v2 throws errors with specific types therefore we set it to the last version before v2
deno-version: v1.42.x
deno-version: v1.46.3
- name: ${{ matrix.step }}
if: always()
run: |
deno --version
yarn install --immutable
yarn ${{ matrix.step }}
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util authors & contributors
// Copyright 2017-2025 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
module.exports = require('@polkadot/dev/config/prettier.cjs');
-925
View File
File diff suppressed because one or more lines are too long
+948
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -12,4 +12,4 @@ logFilters:
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.5.0.cjs
yarnPath: .yarn/releases/yarn-4.9.1.cjs
+98
View File
@@ -1,5 +1,103 @@
# CHANGELOG
## 13.5.4 July 28, 2025
Changes:
- Add Creditcoin3 support to Generic Ledger App ([#1985](https://github.com/polkadot-js/common/pull/1985))
## 13.5.3 July 1, 2025
Changes:
- Update polkadot dependencies ([#1995](https://github.com/polkadot-js/common/pull/1995))
- Add Optional Strict Input Checking to u8aToU8a ([#1994](https://github.com/polkadot-js/common/pull/1994))
- Update scrypt parameter validation ([#1993](https://github.com/polkadot-js/common/pull/1993))
## 13.5.2 Jun 17, 2025
Changes:
- fix: enhance error handling for secure random number generation in React Native ([#1991](https://github.com/polkadot-js/common/pull/1991))
- Add input length validation in scryptFromU8a function ([#1990](https://github.com/polkadot-js/common/pull/1990))
Contributed:
- Add Liberland support to Generic Ledger App ([#1989](https://github.com/polkadot-js/common/pull/1989))
## 13.5.1 May 19, 2025
Changes:
- Ledger ECDSA signing support ([#1986](https://github.com/polkadot-js/common/pull/1986))
- Bump yarn to 4.9.1 ([#1987](https://github.com/polkadot-js/common/pull/1987))
## 13.4.4 Apr 14, 2025
Changes:
- Improve objectSpread function property handling ([#1982](https://github.com/polkadot-js/common/pull/1982))
## 13.4.3 Feb 17, 2025
Changes:
- Rollback ws change in x-ws ([#1980](https://github.com/polkadot-js/common/pull/1980))
NOTE: this rollbacks changes made in ([#1976](https://github.com/polkadot-js/common/pull/1976)) to ensure websocket usage doesnt break in any downstream libs.
## 13.4.2 Feb 17, 2025
Changes:
- Cast ws as global.WebSocket ([#1978](https://github.com/polkadot-js/common/pull/1978))
## 13.4.1 Feb 16, 2025
Changes:
- Enable KeyringPair Creation with Custom Mnemonic Wordlists ([#1974](https://github.com/polkadot-js/common/pull/1974))
- Use ws library in Node.js 22+ for Better WebSocket Error Handling ([#1976](https://github.com/polkadot-js/common/pull/1976))
- Fix Misclassification of ECDSA Signatures in `verifyMultisig` ([#1973](https://github.com/polkadot-js/common/pull/1973))
- Bump dev to 0.83.2 ([#1972](https://github.com/polkadot-js/common/pull/1972))
- Bump yarn to 4.6.0 ([#1967](https://github.com/polkadot-js/common/pull/1967))
## 13.3.1 Jan 6, 2025
Changes:
- Give compatibility for nodejs v22
- Fix `getSeparator` which fixes toLocaleString ([#1965](https://github.com/polkadot-js/common/pull/1965))
- 2025 Headers ([#1963](https://github.com/polkadot-js/common/pull/1963))
## 13.2.3 Nov 11, 2024
Contributed:
- Add Vara support to the Generic Ledger App ([#1958](https://github.com/polkadot-js/common/pull/1958)) (Thanks to https://github.com/breathx)
Changes:
- Bump Dev to 0.82.1 ([#1959](https://github.com/polkadot-js/common/pull/1959))
## 13.2.2 Oct 28, 2024
Contributed:
- Add Polimec support to the Generic Ledger App ([#1945](https://github.com/polkadot-js/common/pull/1945)) (Thanks to https://github.com/lrazovic)
- Add Frequency to the Generic Ledger App ([#1955](https://github.com/polkadot-js/common/pull/1955)) (Thanks to https://github.com/wilwade)
Changes:
- Bump yarn to 4.5.1 ([#1953](https://github.com/polkadot-js/common/pull/1953))
## 13.2.1 Oct 21, 2024
Contributed:
+9 -1
View File
@@ -1,13 +1,16 @@
1674 Jaco Bump deps (#1912)
27 Tarik Gul 13.2.1 (#1952)
43 Tarik Gul 13.5.1 (#1988)
13 Carlo Sala feat(networks): add zeitgeist Ledger support (#1840)
9 Antoine Estienne Add eth uri keyring test (#1291)
7 Valentin Fernandez 13.5.2 (#1992)
6 Amaury Martiny Add tests from Rust (#283)
6 Jakub Pánik HydraDX -> Hydration rebrand (#1923)
5 kwingram25 Add BN consts and timeToString (#610)
4 Adam Dossa Update Polymesh Genesis Hash (#1193)
4 Arjun Porwal 13.5.4 (#1999)
4 pan add bifrost kusama (#1626)
3 Luke Schoen docs: Fix example in readme since we use default imports (#243)
3 rajk93 13.5.3 (#1996)
2 AndreasGassmann feat(dependencies): remove moment.js (#530)
2 Cameron Fairchild Add bittensor details (#1783)
2 Gav Wood Fix stake:unstake (#182)
@@ -27,6 +30,7 @@
1 Brad Larson [FIX] Adjust error message (#646)
1 Carlos Medeiros add hydradx to knownLedger (#1647)
1 Chris Get rid of warnings for dual esm and cjs packages of the same version (#1890)
1 Dmitrii Novikov Add `Vara` support to Generic Ledger App (#1958)
1 Eliott Teissonniere add nodle ledger specs (#1089)
1 Guilane DENGUIR feat(VTB): Added support for VTB blockchain (#1651)
1 h4x3rotab Throws an error when signing with a locked keypair (#578)
@@ -39,6 +43,7 @@
1 joe petrowski Add example for multisig address creation (#590)
1 kaelnew add ledger support for stafi (#1569)
1 Leonardo Custodio Ledger support (#1879)
1 Leonardo Razovic feat: add Polimec (#1945)
1 Lezek123 logger - wildcard include/exclude with DEBUG env (#932)
1 Lovish Arora Add peaq support for ledger (#1928)
1 Mario Neises remove redudant export (#257)
@@ -49,16 +54,19 @@
1 Nantian add acala ledger config (#1485)
1 peetzweg/ adds `isRiscV` guard function similar to isWasm (#1878)
1 qwer951123 Add acala genesis (#1161)
1 Radek Bochenek feat: add Liberland support to Generic Ledger App (#1989)
1 Raoul Millais Fix yarn add instructions in x-global README (#873)
1 Raymond Zhong Add Edgeware ledger app (#1006)
1 Reto Trinkler Adding 4 as address type of ss58 for Katal Chain (#639)
1 Rocco Musolino remove doc broken link (#697)
1 Salina Add Creditcoin3 support to Generic Ledger App (#1985)
1 Shamilkhan Add genesis hash for Cere Network (#1806)
1 Song Zhou Add in ability to encrypt/decrypt msg with keyring (#1070)
1 Thibaut Sardan add hasLedgerSupport prop to networks (#835)
1 Tomokazu Kozuma fix comment (#1119)
1 Tore19 Add stafi genesis hash (#1096)
1 Wei Tang ss58: add Kulupu prefix to the list (#595)
1 Wil Wade Add Frequency to the Generic Ledger App (#1955)
1 WoeOm Handing high precision scenes (#450)
1 xx network Add xxnetwork genesis hash and ledger app (#1463)
1 Yaroslav Bolyukin Add quartz support for ledger, update unique slip-0044 identifier (#1882)
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util authors & contributors
// Copyright 2017-2025 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import baseConfig from '@polkadot/dev/config/eslint';
+5 -5
View File
@@ -6,7 +6,7 @@
},
"homepage": "https://github.com/polkadot-js/common#readme",
"license": "Apache-2.0",
"packageManager": "yarn@4.5.0",
"packageManager": "yarn@4.9.1",
"private": true,
"repository": {
"type": "git",
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "13.2.1",
"version": "13.5.4",
"versions": {
"git": "13.2.1",
"npm": "13.2.1"
"git": "13.5.4",
"npm": "13.5.4"
},
"workspaces": [
"packages/*"
@@ -37,7 +37,7 @@
"test:one": "polkadot-dev-run-test --env browser"
},
"devDependencies": {
"@polkadot/dev": "^0.81.2",
"@polkadot/dev": "^0.83.3",
"@types/node": "^22.7.5"
},
"resolutions": {
+2 -2
View File
@@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "13.2.1",
"version": "13.5.4",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
@@ -22,7 +22,7 @@
"@ledgerhq/hw-transport": "^6.31.4",
"@ledgerhq/hw-transport-webhid": "^6.29.4",
"@ledgerhq/hw-transport-webusb": "^6.29.4",
"@polkadot/util": "13.2.1",
"@polkadot/util": "13.5.4",
"tslib": "^2.8.0"
},
"optionalDependencies": {
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
import LedgerHid from '@ledgerhq/hw-transport-webhid';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { createDefs } from './util.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './empty.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
import LedgerHid from '@ledgerhq/hw-transport-node-hid-singleton';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger-transports authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger-transports authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
@@ -1,6 +1,6 @@
// Copyright 2017-2024 @polkadot/hw-ledger-transports authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger-transports authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '13.2.1' };
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '13.5.4' };
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './empty.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
// CJS, so we use import * syntax
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Transport, TransportDef, TransportType } from './types.js';
+4 -4
View File
@@ -17,12 +17,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "13.2.1",
"version": "13.5.4",
"main": "index.js",
"dependencies": {
"@polkadot/hw-ledger-transports": "13.2.1",
"@polkadot/util": "13.2.1",
"@zondax/ledger-substrate": "1.0.0",
"@polkadot/hw-ledger-transports": "13.5.4",
"@polkadot/util": "13.5.4",
"@zondax/ledger-substrate": "1.1.1",
"tslib": "^2.8.0"
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { SubstrateApp } from '@zondax/ledger-substrate';
+83 -9
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TransportDef, TransportType } from '@polkadot/hw-ledger-transports/types';
@@ -46,8 +46,8 @@ async function wrapError <T extends WrappedResult> (promise: Promise<T>): Promis
return result;
}
/** @internal Wraps a sign/signRaw call and returns the associated signature */
function sign (method: 'sign' | 'signRaw', message: Uint8Array, slip44: number, accountIndex = 0, addressOffset = 0): (app: PolkadotGenericApp) => Promise<LedgerSignature> {
/** @internal Wraps a signEd25519/signRawEd25519 call and returns the associated signature */
function sign (method: 'signEd25519' | 'signRawEd25519', message: Uint8Array, slip44: number, accountIndex = 0, addressOffset = 0): (app: PolkadotGenericApp) => Promise<LedgerSignature> {
const bip42Path = `m/44'/${slip44}'/${accountIndex}'/${0}'/${addressOffset}'`;
return async (app: PolkadotGenericApp): Promise<LedgerSignature> => {
@@ -59,7 +59,22 @@ function sign (method: 'sign' | 'signRaw', message: Uint8Array, slip44: number,
};
}
/** @internal Wraps a signWithMetadata call and returns the associated signature */
/** @internal Wraps a signEcdsa/signRawEcdsa call and returns the associated signature */
function signEcdsa (method: 'signEcdsa' | 'signRawEcdsa', message: Uint8Array, slip44: number, accountIndex = 0, addressOffset = 0): (app: PolkadotGenericApp) => Promise<LedgerSignature> {
const bip42Path = `m/44'/${slip44}'/${accountIndex}'/${0}'/${addressOffset}'`;
return async (app: PolkadotGenericApp): Promise<LedgerSignature> => {
const { r, s, v } = await wrapError(app[method](bip42Path, u8aToBuffer(message)));
const signature = Buffer.concat([r, s, v]);
return {
signature: hexAddPrefix(signature.toString('hex'))
};
};
}
/** @internal Wraps a signWithMetadataEd25519 call and returns the associated signature */
function signWithMetadata (message: Uint8Array, slip44: number, accountIndex = 0, addressOffset = 0, { metadata }: Partial<AccountOptionsGeneric> = {}): (app: PolkadotGenericApp) => Promise<LedgerSignature> {
const bip42Path = `m/44'/${slip44}'/${accountIndex}'/${0}'/${addressOffset}'`;
@@ -70,7 +85,28 @@ function signWithMetadata (message: Uint8Array, slip44: number, accountIndex = 0
const bufferMsg = Buffer.from(message);
const { signature } = await wrapError(app.signWithMetadata(bip42Path, bufferMsg, metadata));
const { signature } = await wrapError(app.signWithMetadataEd25519(bip42Path, bufferMsg, metadata));
return {
signature: hexAddPrefix(signature.toString('hex'))
};
};
}
/** @internal Wraps a signWithMetadataEcdsa call and returns the associated signature */
function signWithMetadataEcdsa (message: Uint8Array, slip44: number, accountIndex = 0, addressOffset = 0, { metadata }: Partial<AccountOptionsGeneric> = {}): (app: PolkadotGenericApp) => Promise<LedgerSignature> {
const bip42Path = `m/44'/${slip44}'/${accountIndex}'/${0}'/${addressOffset}'`;
return async (app: PolkadotGenericApp): Promise<LedgerSignature> => {
if (!metadata) {
throw new Error('The metadata option must be present when using signWithMetadata');
}
const bufferMsg = Buffer.from(message);
const { r, s, v } = await wrapError(app.signWithMetadataEcdsa(bip42Path, bufferMsg, metadata));
const signature = Buffer.concat([r, s, v]);
return {
signature: hexAddPrefix(signature.toString('hex'))
@@ -119,14 +155,31 @@ export class LedgerGeneric {
}
/**
* @description Returns the address associated with a specific account & address offset. Optionally
* @description Returns the address associated with a specific Ed25519 account & address offset. Optionally
* asks for on-device confirmation
*/
public async getAddress (ss58Prefix: number, confirm = false, accountIndex = 0, addressOffset = 0): Promise<LedgerAddress> {
const bip42Path = `m/44'/${this.#slip44}'/${accountIndex}'/${0}'/${addressOffset}'`;
return this.withApp(async (app: PolkadotGenericApp): Promise<LedgerAddress> => {
const { address, pubKey } = await wrapError(app.getAddress(bip42Path, ss58Prefix, confirm));
const { address, pubKey } = await wrapError(app.getAddressEd25519(bip42Path, ss58Prefix, confirm));
return {
address,
publicKey: hexAddPrefix(pubKey)
};
});
}
/**
* @description Returns the address associated with a specific ecdsa account & address offset. Optionally
* asks for on-device confirmation
*/
public async getAddressEcdsa (confirm = false, accountIndex = 0, addressOffset = 0) {
const bip42Path = `m/44'/${this.#slip44}'/${accountIndex}'/${0}'/${addressOffset}'`;
return this.withApp(async (app: PolkadotGenericApp): Promise<LedgerAddress> => {
const { address, pubKey } = await wrapError(app.getAddressEcdsa(bip42Path, confirm));
return {
address,
@@ -154,14 +207,28 @@ export class LedgerGeneric {
* @description Signs a transaction on the Ledger device. This requires the LedgerGeneric class to be instantiated with `chainId`, and `metaUrl`
*/
public async sign (message: Uint8Array, accountIndex?: number, addressOffset?: number): Promise<LedgerSignature> {
return this.withApp(sign('sign', message, this.#slip44, accountIndex, addressOffset));
return this.withApp(sign('signEd25519', message, this.#slip44, accountIndex, addressOffset));
}
/**
* @description Signs a message (non-transactional) on the Ledger device
*/
public async signRaw (message: Uint8Array, accountIndex?: number, addressOffset?: number): Promise<LedgerSignature> {
return this.withApp(sign('signRaw', u8aWrapBytes(message), this.#slip44, accountIndex, addressOffset));
return this.withApp(sign('signRawEd25519', u8aWrapBytes(message), this.#slip44, accountIndex, addressOffset));
}
/**
* @description Signs a transaction on the Ledger device with Ecdsa. This requires the LedgerGeneric class to be instantiated with `chainId`, and `metaUrl`
*/
public async signEcdsa (message: Uint8Array, accountIndex?: number, addressOffset?: number): Promise<LedgerSignature> {
return this.withApp(signEcdsa('signEcdsa', u8aWrapBytes(message), this.#slip44, accountIndex, addressOffset));
}
/**
* @description Signs a message with Ecdsa (non-transactional) on the Ledger device
*/
public async signRawEcdsa (message: Uint8Array, accountIndex?: number, addressOffset?: number): Promise<LedgerSignature> {
return this.withApp(signEcdsa('signRawEcdsa', u8aWrapBytes(message), this.#slip44, accountIndex, addressOffset));
}
/**
@@ -171,6 +238,13 @@ export class LedgerGeneric {
return this.withApp(signWithMetadata(message, this.#slip44, accountIndex, addressOffset, options));
}
/**
* @description Signs a transaction on the ledger device for an ecdsa signature provided some metadata.
*/
public async signWithMetadataEcdsa (message: Uint8Array, accountIndex?: number, addressOffset?: number, options?: Partial<AccountOptionsGeneric>) {
return this.withApp(signWithMetadataEcdsa(message, this.#slip44, accountIndex, addressOffset, options));
}
/**
* @internal
*
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
// This is necessary to ensure users still have access to class Ledger even though its deprecated.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
export const LEDGER_DEFAULT_ACCOUNT = 0x80000000;
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+7 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
// These map to the known name in the @zondax/ledger-substrate/supported_apps package
@@ -51,8 +51,13 @@ export const prevLedgerRecord: Record<string, string> = {
// Any chains moving forward that are supported by the PolkadotGenericApp from ledger will input their names below.
export const genericLedgerApps = {
bittensor: 'Bittensor',
creditcoin3: 'Creditcoin3',
encointer: 'Encointer',
integritee: 'Integritee'
frequency: 'Frequency',
integritee: 'Integritee',
liberland: 'Liberland',
polimec: 'Polimec',
vara: 'Vara'
};
// These match up with the keys of the knownLedger object in the @polkadot/networks/defaults/ledger.ts
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './packageDetect.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './index.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '13.2.1' };
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '13.5.4' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HexString } from '@polkadot/util/types';
+5 -5
View File
@@ -18,15 +18,15 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "13.2.1",
"version": "13.5.4",
"main": "index.js",
"dependencies": {
"@polkadot/util": "13.2.1",
"@polkadot/util-crypto": "13.2.1",
"@polkadot/util": "13.5.4",
"@polkadot/util-crypto": "13.5.4",
"tslib": "^2.8.0"
},
"peerDependencies": {
"@polkadot/util": "13.2.1",
"@polkadot/util-crypto": "13.2.1"
"@polkadot/util": "13.5.4",
"@polkadot/util-crypto": "13.5.4"
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
// all external
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
// default substrate dev phrase
+34 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
@@ -6,7 +6,8 @@
import type { KeyringPair$Json } from './types.js';
import { hexToU8a, stringToU8a } from '@polkadot/util';
import { base64Decode, cryptoWaitReady, encodeAddress, randomAsU8a, setSS58Format } from '@polkadot/util-crypto';
import { base64Decode, cryptoWaitReady, encodeAddress, mnemonicGenerate, randomAsU8a, setSS58Format } from '@polkadot/util-crypto';
import * as languages from '@polkadot/util-crypto/mnemonic/wordlists/index';
import { decodePair } from './pair/decode.js';
import Keyring from './index.js';
@@ -574,4 +575,35 @@ describe('keypair', (): void => {
expect(pair.address).toBe('FLiSDPCcJ6auZUGXALLj6jpahcP6adVFDBUQznPXUQ7yoqH');
});
});
describe('wordlist', (): void => {
it('creates keypair from different wordlists mnemonics', (): void => {
Object.keys(languages).forEach((language) => {
const mnemonic = mnemonicGenerate(12, languages[language as keyof typeof languages]);
const keyring = new Keyring({
type: 'ed25519'
});
expect(keyring.addFromMnemonic(
mnemonic,
{},
'ed25519',
languages[language as keyof typeof languages]
)).toBeDefined();
});
});
it('cannot create from invalid wordlist', (): void => {
const mnemonic = mnemonicGenerate(12, languages.japanese);
const keyring = new Keyring({
type: 'ed25519'
});
expect(() => keyring.addFromMnemonic(
mnemonic,
{},
'ed25519',
languages.english
)).toThrow('Invalid bip39 mnemonic specified');
});
});
});
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './packageDetect.js';
+7 -7
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@polkadot/util-crypto/types';
@@ -121,8 +121,8 @@ export class Keyring implements KeyringInstance {
* of an account backup), and then generates a keyring pair from it that it passes to
* `addPair` to stores in a keyring pair dictionary the public key of the generated pair as a key and the pair as the associated value.
*/
public addFromMnemonic (mnemonic: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type): KeyringPair {
return this.addFromUri(mnemonic, meta, type);
public addFromMnemonic (mnemonic: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type, wordlist?: string[]): KeyringPair {
return this.addFromUri(mnemonic, meta, type, wordlist);
}
/**
@@ -153,9 +153,9 @@ export class Keyring implements KeyringInstance {
* @summary Creates an account via an suri
* @description Extracts the phrase, path and password from a SURI format for specifying secret keys `<secret>/<soft-key>//<hard-key>///<password>` (the `///password` may be omitted, and `/<soft-key>` and `//<hard-key>` maybe repeated and mixed). The secret can be a hex string, mnemonic phrase or a string (to be padded)
*/
public addFromUri (suri: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type): KeyringPair {
public addFromUri (suri: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type, wordlist?: string[]): KeyringPair {
return this.addPair(
this.createFromUri(suri, meta, type)
this.createFromUri(suri, meta, type, wordlist)
);
}
@@ -203,7 +203,7 @@ export class Keyring implements KeyringInstance {
* @summary Creates a Keypair from an suri
* @description This creates a pair from the suri, but does not add it to the keyring
*/
public createFromUri (_suri: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type): KeyringPair {
public createFromUri (_suri: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type, wordlist?: string[]): KeyringPair {
// here we only aut-add the dev phrase if we have a hard-derived path
const suri = _suri.startsWith('//')
? `${DEV_PHRASE}${_suri}`
@@ -220,7 +220,7 @@ export class Keyring implements KeyringInstance {
if ([12, 15, 18, 21, 24].includes(parts.length)) {
seed = type === 'ethereum'
? mnemonicToLegacySeed(phrase, '', false, 64)
: mnemonicToMiniSecret(phrase, password);
: mnemonicToMiniSecret(phrase, password, wordlist);
} else {
if (phrase.length > 32) {
throw new Error('specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes');
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './index.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '13.2.1' };
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '13.5.4' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { EncryptedJsonEncoding } from '@polkadot/util-crypto/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
/** public/secret section divider (generation 1-3, will change in 4, don't rely on value) */
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { PairInfo } from './types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@polkadot/util-crypto/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '../types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KeypairType } from '@polkadot/util-crypto/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
export interface PairInfo {
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KeyringPair, KeyringPairs } from './types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HexString } from '@polkadot/util/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KeypairType } from '@polkadot/util-crypto/types';
+4 -4
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HexString } from '@polkadot/util/types';
@@ -116,13 +116,13 @@ export interface KeyringInstance {
addPair (pair: KeyringPair): KeyringPair;
addFromAddress (address: string | Uint8Array, meta?: KeyringPair$Meta, encoded?: Uint8Array | null, type?: KeypairType, ignoreChecksum?: boolean): KeyringPair;
addFromJson (pair: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair;
addFromMnemonic (mnemonic: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
addFromMnemonic (mnemonic: string, meta?: KeyringPair$Meta, type?: KeypairType, wordlist?: string[]): KeyringPair;
addFromPair (pair: Keypair, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair
addFromSeed (seed: Uint8Array, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
addFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
addFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType, wordlist?: string[]): KeyringPair;
createFromJson (json: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair;
createFromPair (pair: Keypair, meta: KeyringPair$Meta, type: KeypairType): KeyringPair
createFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
createFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType, wordlist?: string[]): KeyringPair;
getPair (address: string | Uint8Array): KeyringPair;
getPairs (): KeyringPair[];
getPublicKeys (): Uint8Array[];
+3 -3
View File
@@ -15,14 +15,14 @@
},
"sideEffects": false,
"type": "module",
"version": "13.2.1",
"version": "13.5.4",
"main": "index.js",
"dependencies": {
"@polkadot/util": "13.2.1",
"@polkadot/util": "13.5.4",
"@substrate/ss58-registry": "^1.51.0",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/hw-ledger": "13.2.1"
"@polkadot/hw-ledger": "13.5.4"
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+18 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownGenesis } from '../types.js';
@@ -46,6 +46,11 @@ export const knownGenesis: KnownGenesis = {
composable: [
'0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d'
],
creditcoin3: [
'0x4436a7d64e363df85e065a894721002a86643283f9707338bf195d360ba2ee71', // cc3 mainnet
'0xfc4ec97a1c1f119c4353aecb4a17c7c0cf7b40d5d660143d8bad9117e9866572', // cc3 testnet/drynet
'0xfc9df99a665f964aed6649f275055e54df5e3420489538ed31d7788f53d11ef6' // cc3 devnet
],
darwinia: [
'0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6'
],
@@ -65,6 +70,9 @@ export const knownGenesis: KnownGenesis = {
equilibrium: [
'0x6f1a800de3daff7f5e037ddf66ab22ce03ab91874debeddb1086f5f7dbd48925'
],
frequency: [
'0x4a587bf17a404e3572747add7aab7bbe56e805a5479c6c436f07f36fcc8d3ae1'
],
genshiro: [
'0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243'
],
@@ -96,6 +104,9 @@ export const knownGenesis: KnownGenesis = {
'0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636', // Kusama CC2
'0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf' // Kusama CC1
],
liberland: [
'0x6bd89e052d67a45bb60a9a23e8581053d5e0d619f15cb9865946937e690c42d6'
],
matrixchain: [
'0x3af4ff48ec76d2efc8476730f423ac07e25ad48f5f4c9dc39c778b164d808615'
],
@@ -124,6 +135,9 @@ export const knownGenesis: KnownGenesis = {
'0x6811a339673c9daa897944dcdac99c6e2939cc88245ed21951a0a3c9a2be75bc',
'0xe8e7f0f4c4f5a00720b4821dbfddefea7490bcf0b19009961cc46957984e2c1c'
],
polimec: [
'0x7eb9354488318e7549c722669dcbdcdc526f1fef1420e7944667212f3601fdbd'
],
polkadex: [
'0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c'
],
@@ -171,6 +185,9 @@ export const knownGenesis: KnownGenesis = {
unique: [
'0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31'
],
vara: [
'0xfe1b4c55fd4d668101126434206571a7838a8b6b93a6d1b95d607e78e6c53763'
],
vtb: [
'0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f',
'0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa'
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownIcon } from '../types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { knownGenesis } from './genesis.js';
+6 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownLedger } from '../types.js';
@@ -17,12 +17,14 @@ export const knownLedger: KnownLedger = {
bittensor: 0x00000162,
centrifuge: 0x000002eb,
composable: 0x00000162,
creditcoin3: 0x00000162,
darwinia: 0x00000162,
'dock-mainnet': 0x00000252,
edgeware: 0x0000020b,
encointer: 0x000001b2,
enjin: 0x00000483,
equilibrium: 0x05f5e0fd,
frequency: 0x0000082b,
genshiro: 0x05f5e0fc,
hydradx: 0x00000162,
integritee: 0x000007df,
@@ -30,6 +32,7 @@ export const knownLedger: KnownLedger = {
karura: 0x000002ae,
khala: 0x000001b2,
kusama: 0x000001b2,
liberland: 0x000002ff,
matrixchain: 0x00000483,
nodle: 0x000003eb,
origintrail: 0x00000162,
@@ -38,6 +41,7 @@ export const knownLedger: KnownLedger = {
pendulum: 0x00000162,
phala: 0x00000162,
picasso: 0x000001b2,
polimec: 0x00000d10,
polkadex: 0x0000031f,
polkadot: 0x00000162,
polymesh: 0x00000253,
@@ -48,6 +52,7 @@ export const knownLedger: KnownLedger = {
statemint: 0x00000162, // common-good on Polkadot, shares derivation
ternoa: 0x00003e3,
unique: 0x00000295,
vara: 0x00001370,
vtb: 0x000002b6,
xxnetwork: 0x000007a3,
zeitgeist: 0x00000162
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownTestnet } from '../types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
// TODO: This was removed, really cannot recall the reason...
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownSubstrate, Network, SubstrateNetwork } from './types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './index.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '13.2.1' };
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '13.5.4' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/networks authors & contributors
// Copyright 2017-2025 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { RegistryEntry } from '@substrate/ss58-registry';
+6 -6
View File
@@ -20,7 +20,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "13.2.1",
"version": "13.5.4",
"browser": {
"crypto": false,
"stream": false
@@ -29,16 +29,16 @@
"dependencies": {
"@noble/curves": "^1.3.0",
"@noble/hashes": "^1.3.3",
"@polkadot/networks": "13.2.1",
"@polkadot/util": "13.2.1",
"@polkadot/networks": "13.5.4",
"@polkadot/util": "13.5.4",
"@polkadot/wasm-crypto": "^7.4.1",
"@polkadot/wasm-util": "^7.4.1",
"@polkadot/x-bigint": "13.2.1",
"@polkadot/x-randomvalues": "13.2.1",
"@polkadot/x-bigint": "13.5.4",
"@polkadot/x-randomvalues": "13.5.4",
"@scure/base": "^1.1.7",
"tslib": "^2.8.0"
},
"peerDependencies": {
"@polkadot/util": "13.2.1"
"@polkadot/util": "13.5.4"
}
}
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { decodeAddress } from './decode.js';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Prefix } from './types.js';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { sshash } from './sshash.js';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Prefix } from './types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { availableNetworks } from '../networks.js';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DeriveJunction } from '../key/DeriveJunction.js';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Prefix } from './types.js';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { BN } from '@polkadot/util';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { BN } from '@polkadot/util';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { u8aEq } from '@polkadot/util';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HashType } from '../secp256k1/types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { addressToEvm } from './addressToEvm.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Prefix } from './types.js';
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
@@ -1,4 +1,4 @@
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { BN } from '@polkadot/util';

Some files were not shown because too many files have changed in this diff Show More