Compare commits

..
46 Commits
Author SHA1 Message Date
github-actions[bot] 21ef853fbd [CI Skip] release/stable 13.5.8
skip-checks: true
2025-11-11 06:04:48 +00:00
rajk93 a4d940cb69 13.5.8 (#2010) 2025-11-11 11:31:13 +05:30
github-actions[bot] 6423537dbe [CI Skip] bump/beta 13.5.8-0-x
skip-checks: true
2025-11-11 04:05:17 +00:00
rajk93 61125b3582 chore: bump polkadot dependencies (#2009) 2025-11-11 09:31:28 +05:30
github-actions[bot] 7d77f89f34 [CI Skip] release/stable 13.5.7
skip-checks: true
2025-10-13 14:54:53 +00:00
Valentin Fernandez bee7204f95 13.5.7 (#2008) 2025-10-13 11:51:23 -03:00
github-actions[bot] bb0715ec2f [CI Skip] bump/beta 13.5.7-0-x
skip-checks: true
2025-10-13 14:24:21 +00:00
Valentin Fernandez 2212f31f9a Revert "Set pbkdf2Encode rounds to default to 210,000 (#1983)" (#2007)
This reverts commit e5e6bdd814.
2025-10-13 11:20:32 -03:00
github-actions[bot] 047840319e [CI Skip] release/stable 13.5.6
skip-checks: true
2025-08-26 16:49:24 +00:00
Arjun Porwal 3fbf0b98c2 13.5.6 (#2004) 2025-08-26 13:45:40 -03:00
github-actions[bot] e6b0411e9c [CI Skip] bump/beta 13.5.6-2-x
skip-checks: true
2025-08-26 14:00:47 +00:00
Valentin Fernandez 6e8199bab7 Bump @polkadot/wasm deps (#2002)
* bump  deps

* small tweak
2025-08-26 10:56:53 -03:00
github-actions[bot] 8ca4525570 [CI Skip] bump/beta 13.5.6-1-x
skip-checks: true
2025-08-22 14:13:55 +00:00
henrikdent 0c3a71145a Add DENTNet ledger support (via generic Polkadot app) (#1942) 2025-08-22 11:10:05 -03:00
github-actions[bot] 9c1be4f19b [CI Skip] bump/beta 13.5.6-0-x
skip-checks: true
2025-08-20 15:59:22 +00:00
Tarik GulandValentin Fernandez e5e6bdd814 Set pbkdf2Encode rounds to default to 210,000 (#1983)
* Set pbkdf2Encode rounds to default to 210,000

* Cap amount of rounds to 2048 when onlyJS = true to prevent overflow issues.

* Patch tests to use a consistent amount of encoding rounds.

* lint

* Add additional docs

* lint

---------

Co-authored-by: Valentin Fernandez <tinchofernandez8@gmail.com>
2025-08-20 12:55:25 -03:00
github-actions[bot] 55a3201bd5 [CI Skip] release/stable 13.5.5
skip-checks: true
2025-08-11 15:47:48 +00:00
Valentin Fernandez de2538c18d 13.5.5. (#2000) 2025-08-11 12:44:05 -03:00
github-actions[bot] e8dced9fed [CI Skip] bump/beta 13.5.5-0-x
skip-checks: true
2025-08-04 17:54:26 +00:00
José Molina ColmeneroandValentin Fernandez 0afe1144d1 Add ledger support for Mythos (#1969)
* Add ledger support for Mythos

* Fix linting issues

* Remove Mythos from prevLedgerRecord

* allow mythos ss58

* ss58 Exceptions list

---------

Co-authored-by: Valentin Fernandez <tinchofernandez8@gmail.com>
2025-08-04 14:50:37 -03:00
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
48 changed files with 1367 additions and 1170 deletions
-934
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.6.0.cjs
yarnPath: .yarn/releases/yarn-4.9.1.cjs
+64
View File
@@ -1,5 +1,69 @@
# CHANGELOG
## 13.5.8 Nov 11, 2025
Changes:
- Bump @polkadot dependencies ([#2009](https://github.com/polkadot-js/common/pull/2009))
## 13.5.7 Oct 13, 2025
Changes:
- Revert "Set pbkdf2Encode rounds to default to 210,000" ([#2007](https://github.com/polkadot-js/common/pull/2007))
## 13.5.6 Aug 26, 2025
Changes:
- Set pbkdf2Encode rounds to default to 210,000 ([#1983](https://github.com/polkadot-js/common/pull/1983))
- Bump @polkadot/wasm deps ([#2002](https://github.com/polkadot-js/common/pull/2002))
Contributed:
- Add DENTNet to generic Polkadot app supported chains ([#1942](https://github.com/polkadot-js/common/pull/1942))
## 13.5.5 Aug 11, 2025
Changes:
- Add ledger support for Mythos ([#1969](https://github.com/polkadot-js/common/pull/1969))
## 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:
+8 -2
View File
@@ -1,11 +1,13 @@
1674 Jaco Bump deps (#1912)
40 Tarik Gul Improve objectSpread function property handling (#1982)
44 Tarik Gul Set pbkdf2Encode rounds to default to 210,000 (#1983)
13 Carlo Sala feat(networks): add zeitgeist Ledger support (#1840)
11 Valentin Fernandez 13.5.7 (#2008)
9 Antoine Estienne Add eth uri keyring test (#1291)
6 Amaury Martiny Add tests from Rust (#283)
6 Jakub Pánik HydraDX -> Hydration rebrand (#1923)
6 Valentin Fernandez 13.4.4 (#1984)
5 Arjun Porwal 13.5.6 (#2004)
5 kwingram25 Add BN consts and timeToString (#610)
5 rajk93 13.5.8 (#2010)
4 Adam Dossa Update Polymesh Genesis Hash (#1193)
4 pan add bifrost kusama (#1626)
3 Luke Schoen docs: Fix example in readme since we use default imports (#243)
@@ -33,12 +35,14 @@
1 Guilane DENGUIR feat(VTB): Added support for VTB blockchain (#1651)
1 h4x3rotab Throws an error when signing with a locked keypair (#578)
1 Harry Liu Update README.md (#446)
1 henrikdent Add DENTNet ledger support (via generic Polkadot app) (#1942)
1 Hoon Kim replace plasm genesis with astar (#1397)
1 Hussein Ait-Lahcen Add Picasso Genesis Hash (#1261)
1 Igor Support genshiro network (#1148)
1 Jake Naviasky Add evmToAddress and addressToEvm crypto utils. (#705)
1 JesseAbram added check if valid address to docs (#440)
1 joe petrowski Add example for multisig address creation (#590)
1 José Molina Colmenero Add ledger support for Mythos (#1969)
1 kaelnew add ledger support for stafi (#1569)
1 Leonardo Custodio Ledger support (#1879)
1 Leonardo Razovic feat: add Polimec (#1945)
@@ -52,10 +56,12 @@
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)
+5 -5
View File
@@ -6,7 +6,7 @@
},
"homepage": "https://github.com/polkadot-js/common#readme",
"license": "Apache-2.0",
"packageManager": "yarn@4.6.0",
"packageManager": "yarn@4.9.1",
"private": true,
"repository": {
"type": "git",
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"versions": {
"git": "13.4.4",
"npm": "13.4.4"
"git": "13.5.8",
"npm": "13.5.8"
},
"workspaces": [
"packages/*"
@@ -37,7 +37,7 @@
"test:one": "polkadot-dev-run-test --env browser"
},
"devDependencies": {
"@polkadot/dev": "^0.83.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.4.4",
"version": "13.5.8",
"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.4.4",
"@polkadot/util": "13.5.8",
"tslib": "^2.8.0"
},
"optionalDependencies": {
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '13.5.8' };
+4 -4
View File
@@ -17,12 +17,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"main": "index.js",
"dependencies": {
"@polkadot/hw-ledger-transports": "13.4.4",
"@polkadot/util": "13.4.4",
"@zondax/ledger-substrate": "1.0.0",
"@polkadot/hw-ledger-transports": "13.5.8",
"@polkadot/util": "13.5.8",
"@zondax/ledger-substrate": "1.1.1",
"tslib": "^2.8.0"
}
}
+82 -8
View File
@@ -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
*
+4
View File
@@ -51,9 +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',
dentnet: 'DENTNet',
encointer: 'Encointer',
frequency: 'Frequency',
integritee: 'Integritee',
liberland: 'Liberland',
mythos: 'Mythos',
polimec: 'Polimec',
vara: 'Vara'
};
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '13.5.8' };
+5 -5
View File
@@ -18,15 +18,15 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"main": "index.js",
"dependencies": {
"@polkadot/util": "13.4.4",
"@polkadot/util-crypto": "13.4.4",
"@polkadot/util": "13.5.8",
"@polkadot/util-crypto": "13.5.8",
"tslib": "^2.8.0"
},
"peerDependencies": {
"@polkadot/util": "13.4.4",
"@polkadot/util-crypto": "13.4.4"
"@polkadot/util": "13.5.8",
"@polkadot/util-crypto": "13.5.8"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '13.5.8' };
+3 -3
View File
@@ -15,14 +15,14 @@
},
"sideEffects": false,
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"main": "index.js",
"dependencies": {
"@polkadot/util": "13.4.4",
"@polkadot/util": "13.5.8",
"@substrate/ss58-registry": "^1.51.0",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/hw-ledger": "13.4.4"
"@polkadot/hw-ledger": "13.5.8"
}
}
+14
View File
@@ -46,9 +46,17 @@ export const knownGenesis: KnownGenesis = {
composable: [
'0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d'
],
creditcoin3: [
'0x4436a7d64e363df85e065a894721002a86643283f9707338bf195d360ba2ee71', // cc3 mainnet
'0xfc4ec97a1c1f119c4353aecb4a17c7c0cf7b40d5d660143d8bad9117e9866572', // cc3 testnet/drynet
'0xfc9df99a665f964aed6649f275055e54df5e3420489538ed31d7788f53d11ef6' // cc3 devnet
],
darwinia: [
'0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6'
],
dentnet: [
'0x0313f6a011d128d22f996703cbab05162e2fdc9e031493314fe6db79979c5ca7'
],
'dock-mainnet': [
'0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae',
'0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9'
@@ -99,9 +107,15 @@ export const knownGenesis: KnownGenesis = {
'0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636', // Kusama CC2
'0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf' // Kusama CC1
],
liberland: [
'0x6bd89e052d67a45bb60a9a23e8581053d5e0d619f15cb9865946937e690c42d6'
],
matrixchain: [
'0x3af4ff48ec76d2efc8476730f423ac07e25ad48f5f4c9dc39c778b164d808615'
],
mythos: [
'0xf6ee56e9c5277df5b4ce6ae9983ee88f3cbed27d31beeb98f9f84f997a1ab0b9'
],
nodle: [
'0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21'
],
+4
View File
@@ -17,7 +17,9 @@ export const knownLedger: KnownLedger = {
bittensor: 0x00000162,
centrifuge: 0x000002eb,
composable: 0x00000162,
creditcoin3: 0x00000162,
darwinia: 0x00000162,
dentnet: 0x000002de,
'dock-mainnet': 0x00000252,
edgeware: 0x0000020b,
encointer: 0x000001b2,
@@ -31,7 +33,9 @@ export const knownLedger: KnownLedger = {
karura: 0x000002ae,
khala: 0x000001b2,
kusama: 0x000001b2,
liberland: 0x000002ff,
matrixchain: 0x00000483,
mythos: 0x0000003c,
nodle: 0x000003eb,
origintrail: 0x00000162,
parallel: 0x00000162,
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '13.5.8' };
+8 -8
View File
@@ -20,7 +20,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"browser": {
"crypto": false,
"stream": false
@@ -29,16 +29,16 @@
"dependencies": {
"@noble/curves": "^1.3.0",
"@noble/hashes": "^1.3.3",
"@polkadot/networks": "13.4.4",
"@polkadot/util": "13.4.4",
"@polkadot/wasm-crypto": "^7.4.1",
"@polkadot/wasm-util": "^7.4.1",
"@polkadot/x-bigint": "13.4.4",
"@polkadot/x-randomvalues": "13.4.4",
"@polkadot/networks": "13.5.8",
"@polkadot/util": "13.5.8",
"@polkadot/wasm-crypto": "^7.5.2",
"@polkadot/wasm-util": "^7.5.2",
"@polkadot/x-bigint": "13.5.8",
"@polkadot/x-randomvalues": "13.5.8",
"@scure/base": "^1.1.7",
"tslib": "^2.8.0"
},
"peerDependencies": {
"@polkadot/util": "13.4.4"
"@polkadot/util": "13.5.8"
}
}
+4 -1
View File
@@ -15,7 +15,7 @@ export function encodeAddress (key: string | Uint8Array, ss58Format: Prefix = de
// decode it, this means we can re-encode an address
const u8a = decodeAddress(key);
if ((ss58Format < 0) || (ss58Format > 16383) || [46, 47].includes(ss58Format)) {
if ((ss58Format < 0) || (ss58Format > 16383 && !ss58Exceptions.includes(ss58Format)) || [46, 47].includes(ss58Format)) {
throw new Error('Out of range ss58Format specified');
} else if (!defaults.allowedDecodedLengths.includes(u8a.length)) {
throw new Error(`Expected a valid key to convert, with length ${defaults.allowedDecodedLengths.join(', ')}`);
@@ -38,3 +38,6 @@ export function encodeAddress (key: string | Uint8Array, ss58Format: Prefix = de
)
);
}
// Exceptions like 29972 (Mythos chain) which uses Ethereum style account (not ss58 Encoded)
const ss58Exceptions = [29972];
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/util-crypto', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/util-crypto', path: 'auto', type: 'auto', version: '13.5.8' };
+10 -1
View File
@@ -3,8 +3,17 @@
import type { ScryptParams } from './types.js';
export const ALLOWED_PARAMS: ScryptParams[] = [
{ N: 1 << 13, p: 10, r: 8 },
{ N: 1 << 14, p: 5, r: 8 },
{ N: 1 << 15, p: 3, r: 8 },
{ N: 1 << 15, p: 1, r: 8 },
{ N: 1 << 16, p: 2, r: 8 },
{ N: 1 << 17, p: 1, r: 8 }
];
export const DEFAULT_PARAMS: ScryptParams = {
N: 1 << 15,
N: 1 << 17,
p: 1,
r: 8
};
@@ -13,7 +13,7 @@ import { scryptEncode } from './index.js';
export const KNOWN_TEST = 'testing, 123';
// eslint-disable-next-line jest/no-export
export const KNOWN_PASS = new Uint8Array([223, 185, 241, 135, 125, 17, 195, 27, 64, 64, 154, 69, 47, 82, 123, 38, 255, 230, 199, 200, 101, 115, 21, 116, 119, 59, 67, 43, 58, 220, 112, 70, 124, 139, 240, 206, 42, 148, 140, 132, 64, 226, 164, 25, 104, 80, 49, 92, 144, 132, 109, 178, 76, 225, 171, 116, 151, 181, 34, 243, 177, 235, 134, 76]);
export const KNOWN_PASS = new Uint8Array([225, 18, 85, 30, 46, 178, 200, 63, 147, 225, 37, 46, 88, 224, 151, 132, 48, 206, 104, 234, 120, 112, 243, 198, 92, 52, 101, 127, 242, 22, 116, 55, 74, 29, 17, 197, 38, 191, 128, 39, 255, 119, 175, 113, 180, 252, 171, 10, 78, 93, 226, 7, 166, 120, 99, 198, 225, 158, 107, 132, 226, 73, 129, 35]);
// eslint-disable-next-line jest/no-export
export const KNOWN_SALT = new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8]);
+23 -11
View File
@@ -6,7 +6,7 @@ import type { ScryptParams } from './types.js';
import { u8aToBn } from '@polkadot/util';
import { BN_LE_OPTS } from '../bn.js';
import { DEFAULT_PARAMS } from './defaults.js';
import { ALLOWED_PARAMS } from './defaults.js';
interface Result {
params: ScryptParams,
@@ -14,17 +14,29 @@ interface Result {
}
export function scryptFromU8a (data: Uint8Array): Result {
const salt = data.subarray(0, 32);
const N = u8aToBn(data.subarray(32 + 0, 32 + 4), BN_LE_OPTS).toNumber();
const p = u8aToBn(data.subarray(32 + 4, 32 + 8), BN_LE_OPTS).toNumber();
const r = u8aToBn(data.subarray(32 + 8, 32 + 12), BN_LE_OPTS).toNumber();
if (!(data instanceof Uint8Array)) {
throw new Error('Expected input to be a Uint8Array');
}
// FIXME At this moment we assume these to be fixed params, this is not a great idea
// since we lose flexibility and updates for greater security. However we need some
// protection against carefully-crafted params that can eat up CPU since these are user
// inputs. So we need to get very clever here, but atm we only allow the defaults
// and if no match, bail out
if (N !== DEFAULT_PARAMS.N || p !== DEFAULT_PARAMS.p || r !== DEFAULT_PARAMS.r) {
// Ensure the input is exactly 44 bytes: 32 for salt + 3 * 4 for N, p, r
if (data.length < 32 + 12) {
throw new Error(`Invalid input length: expected 44 bytes, found ${data.length}`);
}
const salt = data.subarray(0, 32);
const N = u8aToBn(data.subarray(32, 36), BN_LE_OPTS).toNumber();
const p = u8aToBn(data.subarray(36, 40), BN_LE_OPTS).toNumber();
const r = u8aToBn(data.subarray(40, 44), BN_LE_OPTS).toNumber();
if (N > (1 << 20) || p > 4 || r > 16) {
throw new Error('Scrypt parameters exceed safe limits');
}
const isAllowed = ALLOWED_PARAMS.some((preset) =>
preset.N === N && preset.p === p && preset.r === r
);
if (!isAllowed) {
throw new Error('Invalid injected scrypt params found');
}
@@ -19,7 +19,7 @@ describe('secp256k1Verify', (): void => {
await waitReady();
});
for (const onlyJs of [false, true]) {
for (const onlyJs of [true]) {
describe(`onlyJs=${(onlyJs && 'true') || 'false'}`, (): void => {
it('validates known ETH against address', (): void => {
expect(
+1 -1
View File
@@ -22,7 +22,7 @@ type VerifyFn = (result: VerifyResult, input: VerifyInput) => VerifyResult;
const secp256k1VerifyHasher = (hashType: 'blake2' | 'keccak') =>
(message: Uint8Array | string, signature: Uint8Array, publicKey: Uint8Array) =>
secp256k1Verify(message, signature, publicKey, hashType);
secp256k1Verify(message, signature, publicKey, hashType, true);
const VERIFIERS_ECDSA: Verifier[] = [
['ecdsa', secp256k1VerifyHasher('blake2')],
+6 -6
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"main": "index.js",
"exports": {
"./hex/toU8a": {
@@ -35,15 +35,15 @@
}
},
"dependencies": {
"@polkadot/x-bigint": "13.4.4",
"@polkadot/x-global": "13.4.4",
"@polkadot/x-textdecoder": "13.4.4",
"@polkadot/x-textencoder": "13.4.4",
"@polkadot/x-bigint": "13.5.8",
"@polkadot/x-global": "13.5.8",
"@polkadot/x-textdecoder": "13.5.8",
"@polkadot/x-textencoder": "13.5.8",
"@types/bn.js": "^5.1.6",
"bn.js": "^5.2.1",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/x-randomvalues": "13.4.4"
"@polkadot/x-randomvalues": "13.5.8"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/util', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/util', path: 'auto', type: 'auto', version: '13.5.8' };
+11 -5
View File
@@ -20,23 +20,29 @@ const TESTS: [input: U8aLike | null | undefined, output: Uint8Array][] = [
describe('u8aToU8a', (): void => {
it('returns an empty Uint8Array when null/undefined/"" provided', (): void => {
expect(
u8aToU8a(null)
).toHaveLength(0);
expect(u8aToU8a(null)).toHaveLength(0);
expect(
u8aToU8a()
).toHaveLength(0);
expect(
u8aToU8a('')
).toHaveLength(0);
expect(
u8aToU8a('')
).toEqual(new Uint8Array());
});
it('Throw error on null/undefined values on strict checking', () => {
expect(() => u8aToU8a(undefined, true)).toThrow('u8aToU8a: Expected non-null, non-undefined value');
expect(() => u8aToU8a(null, true)).toThrow('u8aToU8a: Expected non-null, non-undefined value');
});
it('returns a Uint8Array as-is (u8a input)', (): void => {
const input = new Uint8Array([128, 0, 10]);
expect(
u8aToU8a(input) === input
).toEqual(true);
u8aToU8a(input)
).toEqual(input);
});
describe('conversion tests', (): void => {
+7 -1
View File
@@ -14,6 +14,8 @@ import { stringToU8a } from '../string/toU8a.js';
* @summary Creates a Uint8Array value from a Uint8Array, Buffer, string or hex input.
* @description
* `null` or `undefined` inputs returns a `[]` result, Uint8Array values returns the value, hex strings returns a Uint8Array representation.
* If `strict` is true, `null` or `undefined` will throw an error instead of returning an empty array.
* Supports input types: Uint8Array, Buffer, hex string, string, or number array.
* @example
* <BR>
*
@@ -24,7 +26,11 @@ import { stringToU8a } from '../string/toU8a.js';
* u8aToU8a(0x1234); // => Uint8Array([0x12, 0x34])
* ```
*/
export function u8aToU8a (value?: U8aLike | null): Uint8Array {
export function u8aToU8a (value?: U8aLike | null, strict = false): Uint8Array {
if (strict && (value === null || value === undefined)) {
throw new Error('u8aToU8a: Expected non-null, non-undefined value');
}
return isU8a(value)
// NOTE isBuffer needs to go here since it actually extends
// Uint8Array on Node.js environments, so all Buffer are Uint8Array,
+2 -2
View File
@@ -18,9 +18,9 @@
"./shim.cjs"
],
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"dependencies": {
"@polkadot/x-global": "13.4.4",
"@polkadot/x-global": "13.5.8",
"tslib": "^2.8.0"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-bigint', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/x-bigint', path: 'auto', type: 'auto', version: '13.5.8' };
+2 -2
View File
@@ -15,10 +15,10 @@
},
"sideEffects": false,
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"main": "index.js",
"dependencies": {
"@polkadot/util": "13.4.4",
"@polkadot/util": "13.5.8",
"buffer-es6": "^4.9.3",
"tslib": "^2.8.0"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-bundle', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/x-bundle', path: 'auto', type: 'auto', version: '13.5.8' };
+2 -2
View File
@@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "13.4.4",
"@polkadot/x-global": "13.5.8",
"node-fetch": "^3.3.2",
"tslib": "^2.8.0"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-fetch', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/x-fetch', path: 'auto', type: 'auto', version: '13.5.8' };
+1 -1
View File
@@ -15,7 +15,7 @@
},
"sideEffects": false,
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"main": "index.js",
"dependencies": {
"tslib": "^2.8.0"
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-global', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/x-global', path: 'auto', type: 'auto', version: '13.5.8' };
+5 -5
View File
@@ -15,21 +15,21 @@
},
"sideEffects": false,
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "13.4.4",
"@polkadot/x-global": "13.5.8",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/util": "13.4.4",
"@polkadot/wasm-util": "^7.4.1",
"@polkadot/util": "13.5.8",
"@polkadot/wasm-util": "^7.5.2",
"@types/react-native": "^0.73.0"
},
"peerDependencies": {
"@polkadot/util": "13.4.4",
"@polkadot/util": "13.5.8",
"@polkadot/wasm-util": "*"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-randomvalues', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/x-randomvalues', path: 'auto', type: 'auto', version: '13.5.8' };
+8 -3
View File
@@ -12,7 +12,6 @@ import { base64Decode } from '@polkadot/wasm-util/base64';
import { xglobal } from '@polkadot/x-global';
import { crypto as cryptoBrowser, getRandomValues as getRandomValuesBrowser } from './browser.js';
import { insecureRandomValues } from './fallback.js';
export { packageInfo } from './packageInfo.js';
@@ -32,6 +31,10 @@ interface RNExt {
* random utiliy generation functions.
**/
function getRandomValuesRn (output: Uint8Array): Uint8Array {
if (!NativeModules['ExpoRandom'] && !(NativeModules as RNExt).RNGetRandomValues) {
throw new Error('No secure random number generator available. This environment does not support crypto.getRandomValues and no React Native secure RNG module is available.');
}
return base64Decode(
(NativeModules as RNExt).RNGetRandomValues
? (NativeModules as RNExt).RNGetRandomValues.getRandomBase64(output.length)
@@ -43,8 +46,10 @@ function getRandomValuesRn (output: Uint8Array): Uint8Array {
export const getRandomValues = (
(typeof xglobal.crypto === 'object' && typeof xglobal.crypto.getRandomValues === 'function')
? getRandomValuesBrowser
: (typeof xglobal['nativeCallSyncHook'] === 'undefined' || !NativeModules['ExpoRandom'])
? insecureRandomValues
: (typeof xglobal['nativeCallSyncHook'] === 'undefined')
? () => {
throw new Error('No secure random number generator available. This environment does not support crypto.getRandomValues.');
}
: getRandomValuesRn
);
+2 -2
View File
@@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "13.4.4",
"@polkadot/x-global": "13.5.8",
"tslib": "^2.8.0"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-textdecoder', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/x-textdecoder', path: 'auto', type: 'auto', version: '13.5.8' };
+2 -2
View File
@@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "13.4.4",
"@polkadot/x-global": "13.5.8",
"tslib": "^2.8.0"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-textencoder', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/x-textencoder', path: 'auto', type: 'auto', version: '13.5.8' };
+2 -2
View File
@@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "13.4.4",
"version": "13.5.8",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "13.4.4",
"@polkadot/x-global": "13.5.8",
"tslib": "^2.8.0",
"ws": "^8.18.0"
},
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-ws', path: 'auto', type: 'auto', version: '13.4.4' };
export const packageInfo = { name: '@polkadot/x-ws', path: 'auto', type: 'auto', version: '13.5.8' };
+111 -135
View File
@@ -1207,7 +1207,7 @@ __metadata:
languageName: node
linkType: hard
"@ledgerhq/devices@npm:^8.3.0, @ledgerhq/devices@npm:^8.4.2, @ledgerhq/devices@npm:^8.4.4":
"@ledgerhq/devices@npm:^8.4.4":
version: 8.4.4
resolution: "@ledgerhq/devices@npm:8.4.4"
dependencies:
@@ -1219,7 +1219,7 @@ __metadata:
languageName: node
linkType: hard
"@ledgerhq/errors@npm:^6.16.4, @ledgerhq/errors@npm:^6.18.0, @ledgerhq/errors@npm:^6.19.1":
"@ledgerhq/errors@npm:^6.19.1":
version: 6.19.1
resolution: "@ledgerhq/errors@npm:6.19.1"
checksum: 10/8265c6d73c314a4aabbe060ec29e2feebb4e904fe811bf7a9c53cde08e713dcbceded9d927ebb2f0ffc47a7b16524379d4a7e9aa3d61945b8a832be7cd5cf69b
@@ -1278,31 +1278,7 @@ __metadata:
languageName: node
linkType: hard
"@ledgerhq/hw-transport@npm:6.30.6":
version: 6.30.6
resolution: "@ledgerhq/hw-transport@npm:6.30.6"
dependencies:
"@ledgerhq/devices": "npm:^8.3.0"
"@ledgerhq/errors": "npm:^6.16.4"
"@ledgerhq/logs": "npm:^6.12.0"
events: "npm:^3.3.0"
checksum: 10/4fc71409e1ff906e479f2e45c386a9db2d062271908a86d09a59587652d485b80200a5335e7e9dbaf5264c0af4b8e6c36d24e7db921b10f4cc420b51e9ca3c00
languageName: node
linkType: hard
"@ledgerhq/hw-transport@npm:6.31.2":
version: 6.31.2
resolution: "@ledgerhq/hw-transport@npm:6.31.2"
dependencies:
"@ledgerhq/devices": "npm:^8.4.2"
"@ledgerhq/errors": "npm:^6.18.0"
"@ledgerhq/logs": "npm:^6.12.0"
events: "npm:^3.3.0"
checksum: 10/b712b0c5a409d8bca254daa16b2867110132d44382dfb758e4ab0d710656d85c6b3fd9e42565ec9959db9a7f57b430d04d9db5556fb64727d7dc0a8e7a92d165
languageName: node
linkType: hard
"@ledgerhq/hw-transport@npm:^6.31.4":
"@ledgerhq/hw-transport@npm:6.31.4, @ledgerhq/hw-transport@npm:^6.31.4":
version: 6.31.4
resolution: "@ledgerhq/hw-transport@npm:6.31.4"
dependencies:
@@ -1502,34 +1478,34 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/dev-test@npm:^0.83.2":
version: 0.83.2
resolution: "@polkadot/dev-test@npm:0.83.2"
"@polkadot/dev-test@npm:^0.83.3":
version: 0.83.3
resolution: "@polkadot/dev-test@npm:0.83.3"
dependencies:
jsdom: "npm:^24.0.0"
tslib: "npm:^2.7.0"
checksum: 10/afe60165272a09d5c9f08e3aec0015621350dc7394ee8ff121d5803c576c7601b176b753716203abba4a81a142b529da066fe4c73f39387b018bdde69fef7a10
checksum: 10/c03e0c5c5c5d22394c63948b35157b97f8f734a6a8403c89990c55b2657f2b284996aef8613815b2b576b271a126244d7f0a2c9ddece438c5799f273be2e1c69
languageName: node
linkType: hard
"@polkadot/dev-ts@npm:^0.83.2":
version: 0.83.2
resolution: "@polkadot/dev-ts@npm:0.83.2"
"@polkadot/dev-ts@npm:^0.83.3":
version: 0.83.3
resolution: "@polkadot/dev-ts@npm:0.83.3"
dependencies:
json5: "npm:^2.2.3"
tslib: "npm:^2.7.0"
typescript: "npm:^5.5.4"
checksum: 10/abca4df87a0682285bf5e5644ab8522820d53e0dffc124bfe540b7fccc55532057d1912629584bb04648e855e110896b36e55536d53556a166fc3d33bcc27b39
checksum: 10/a2ddc4dba934758cc24f02e8acbfa5a5f5295ad874f42c1bea8548a6dfa97c882b127a279001831caedc8d474becb905286847e0f64e8efe7063b6bac4830112
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.83.2":
version: 0.83.2
resolution: "@polkadot/dev@npm:0.83.2"
"@polkadot/dev@npm:^0.83.3":
version: 0.83.3
resolution: "@polkadot/dev@npm:0.83.3"
dependencies:
"@eslint/js": "npm:^8.56.0"
"@polkadot/dev-test": "npm:^0.83.2"
"@polkadot/dev-ts": "npm:^0.83.2"
"@polkadot/dev-test": "npm:^0.83.3"
"@polkadot/dev-ts": "npm:^0.83.3"
"@rollup/plugin-alias": "npm:^5.1.1"
"@rollup/plugin-commonjs": "npm:^25.0.8"
"@rollup/plugin-dynamic-import-vars": "npm:^2.1.5"
@@ -1594,11 +1570,11 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: 10/42a67e0f2401fc13bdffff86398958e326613461eaa294fb5b435037d636b94cbbbce81b1fadbdf3c0553798d3bc5df43ef6af2250f75e312f01e52b665eddfe
checksum: 10/f34171f4776f0ade59e750e6c43db56fccc800e5c5c2e7796299e83072534257fa5e7478b8159a4b265e96d36c9fe380d56326c21cdbdf51dda3221c269601be
languageName: node
linkType: hard
"@polkadot/hw-ledger-transports@npm:13.4.4, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
"@polkadot/hw-ledger-transports@npm:13.5.8, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
version: 0.0.0-use.local
resolution: "@polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports"
dependencies:
@@ -1606,7 +1582,7 @@ __metadata:
"@ledgerhq/hw-transport-node-hid-singleton": "npm:^6.31.5"
"@ledgerhq/hw-transport-webhid": "npm:^6.29.4"
"@ledgerhq/hw-transport-webusb": "npm:^6.29.4"
"@polkadot/util": "npm:13.4.4"
"@polkadot/util": "npm:13.5.8"
tslib: "npm:^2.8.0"
dependenciesMeta:
"@ledgerhq/hw-transport-node-hid-singleton":
@@ -1614,13 +1590,13 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/hw-ledger@npm:13.4.4, @polkadot/hw-ledger@workspace:packages/hw-ledger":
"@polkadot/hw-ledger@npm:13.5.8, @polkadot/hw-ledger@workspace:packages/hw-ledger":
version: 0.0.0-use.local
resolution: "@polkadot/hw-ledger@workspace:packages/hw-ledger"
dependencies:
"@polkadot/hw-ledger-transports": "npm:13.4.4"
"@polkadot/util": "npm:13.4.4"
"@zondax/ledger-substrate": "npm:1.0.0"
"@polkadot/hw-ledger-transports": "npm:13.5.8"
"@polkadot/util": "npm:13.5.8"
"@zondax/ledger-substrate": "npm:1.1.1"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
@@ -1629,145 +1605,145 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/keyring@workspace:packages/keyring"
dependencies:
"@polkadot/util": "npm:13.4.4"
"@polkadot/util-crypto": "npm:13.4.4"
"@polkadot/util": "npm:13.5.8"
"@polkadot/util-crypto": "npm:13.5.8"
tslib: "npm:^2.8.0"
peerDependencies:
"@polkadot/util": 13.4.4
"@polkadot/util-crypto": 13.4.4
"@polkadot/util": 13.5.8
"@polkadot/util-crypto": 13.5.8
languageName: unknown
linkType: soft
"@polkadot/networks@npm:13.4.4, @polkadot/networks@workspace:packages/networks":
"@polkadot/networks@npm:13.5.8, @polkadot/networks@workspace:packages/networks":
version: 0.0.0-use.local
resolution: "@polkadot/networks@workspace:packages/networks"
dependencies:
"@polkadot/hw-ledger": "npm:13.4.4"
"@polkadot/util": "npm:13.4.4"
"@polkadot/hw-ledger": "npm:13.5.8"
"@polkadot/util": "npm:13.5.8"
"@substrate/ss58-registry": "npm:^1.51.0"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:13.4.4, @polkadot/util-crypto@workspace:packages/util-crypto":
"@polkadot/util-crypto@npm:13.5.8, @polkadot/util-crypto@workspace:packages/util-crypto":
version: 0.0.0-use.local
resolution: "@polkadot/util-crypto@workspace:packages/util-crypto"
dependencies:
"@noble/curves": "npm:^1.3.0"
"@noble/hashes": "npm:^1.3.3"
"@polkadot/networks": "npm:13.4.4"
"@polkadot/util": "npm:13.4.4"
"@polkadot/wasm-crypto": "npm:^7.4.1"
"@polkadot/wasm-util": "npm:^7.4.1"
"@polkadot/x-bigint": "npm:13.4.4"
"@polkadot/x-randomvalues": "npm:13.4.4"
"@polkadot/networks": "npm:13.5.8"
"@polkadot/util": "npm:13.5.8"
"@polkadot/wasm-crypto": "npm:^7.5.2"
"@polkadot/wasm-util": "npm:^7.5.2"
"@polkadot/x-bigint": "npm:13.5.8"
"@polkadot/x-randomvalues": "npm:13.5.8"
"@scure/base": "npm:^1.1.7"
tslib: "npm:^2.8.0"
peerDependencies:
"@polkadot/util": 13.4.4
"@polkadot/util": 13.5.8
languageName: unknown
linkType: soft
"@polkadot/util@npm:13.4.4, @polkadot/util@workspace:packages/util":
"@polkadot/util@npm:13.5.8, @polkadot/util@workspace:packages/util":
version: 0.0.0-use.local
resolution: "@polkadot/util@workspace:packages/util"
dependencies:
"@polkadot/x-bigint": "npm:13.4.4"
"@polkadot/x-global": "npm:13.4.4"
"@polkadot/x-randomvalues": "npm:13.4.4"
"@polkadot/x-textdecoder": "npm:13.4.4"
"@polkadot/x-textencoder": "npm:13.4.4"
"@polkadot/x-bigint": "npm:13.5.8"
"@polkadot/x-global": "npm:13.5.8"
"@polkadot/x-randomvalues": "npm:13.5.8"
"@polkadot/x-textdecoder": "npm:13.5.8"
"@polkadot/x-textencoder": "npm:13.5.8"
"@types/bn.js": "npm:^5.1.6"
bn.js: "npm:^5.2.1"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/wasm-bridge@npm:7.4.1":
version: 7.4.1
resolution: "@polkadot/wasm-bridge@npm:7.4.1"
"@polkadot/wasm-bridge@npm:7.5.2":
version: 7.5.2
resolution: "@polkadot/wasm-bridge@npm:7.5.2"
dependencies:
"@polkadot/wasm-util": "npm:7.4.1"
"@polkadot/wasm-util": "npm:7.5.2"
tslib: "npm:^2.7.0"
peerDependencies:
"@polkadot/util": "*"
"@polkadot/x-randomvalues": "*"
checksum: 10/b1d687ff433974cb34e54539b69209b569c4faf818e3cf376601d76acacc946bd56e5c06b18f0720dd1f63454f8e74f65bc37f259c7fca35d58623d27154b033
checksum: 10/616572fbeba50d94be1155eb829994ea416021c36656dc6955b1579dca8c1f1f48083fe4d170629476c88fb27759208d42b8bf6d6610c0ace27a8926d4b52896
languageName: node
linkType: hard
"@polkadot/wasm-crypto-asmjs@npm:7.4.1":
version: 7.4.1
resolution: "@polkadot/wasm-crypto-asmjs@npm:7.4.1"
"@polkadot/wasm-crypto-asmjs@npm:7.5.2":
version: 7.5.2
resolution: "@polkadot/wasm-crypto-asmjs@npm:7.5.2"
dependencies:
tslib: "npm:^2.7.0"
peerDependencies:
"@polkadot/util": "*"
checksum: 10/68df2338bff14c0331d62871b66e31cea1005eac8f136c294074f7350d4c342bba17a7edd3cc9aecb2ae63dad4e927422e7be562c446bb2b7ff1a6af17bb8eee
checksum: 10/9f921bfe2f52f6938862e26c7281db76a3cbe452acb3742381e3a441b2b417670187efc37bb8913aaf9bc98b511bae80e308386b3333403cfa1d24bfcabda90b
languageName: node
linkType: hard
"@polkadot/wasm-crypto-init@npm:7.4.1":
version: 7.4.1
resolution: "@polkadot/wasm-crypto-init@npm:7.4.1"
"@polkadot/wasm-crypto-init@npm:7.5.2":
version: 7.5.2
resolution: "@polkadot/wasm-crypto-init@npm:7.5.2"
dependencies:
"@polkadot/wasm-bridge": "npm:7.4.1"
"@polkadot/wasm-crypto-asmjs": "npm:7.4.1"
"@polkadot/wasm-crypto-wasm": "npm:7.4.1"
"@polkadot/wasm-util": "npm:7.4.1"
"@polkadot/wasm-bridge": "npm:7.5.2"
"@polkadot/wasm-crypto-asmjs": "npm:7.5.2"
"@polkadot/wasm-crypto-wasm": "npm:7.5.2"
"@polkadot/wasm-util": "npm:7.5.2"
tslib: "npm:^2.7.0"
peerDependencies:
"@polkadot/util": "*"
"@polkadot/x-randomvalues": "*"
checksum: 10/d12c791214301419d94f5b374b443addc59c45e155f67b9503db4fe72866fa92e040ce8764f6dd8b4ce95005d4508a83efe832c6df4c946b7f14c18d28e8f0c1
checksum: 10/fabe7cf2892f88c1c8783b5e80c22397ce71bd74333ca0ff1182ee46581a89af65094b911f10fa7f0af2899df293b8fe3ba72df6ec0b1d851df0ee39c49318a6
languageName: node
linkType: hard
"@polkadot/wasm-crypto-wasm@npm:7.4.1":
version: 7.4.1
resolution: "@polkadot/wasm-crypto-wasm@npm:7.4.1"
"@polkadot/wasm-crypto-wasm@npm:7.5.2":
version: 7.5.2
resolution: "@polkadot/wasm-crypto-wasm@npm:7.5.2"
dependencies:
"@polkadot/wasm-util": "npm:7.4.1"
"@polkadot/wasm-util": "npm:7.5.2"
tslib: "npm:^2.7.0"
peerDependencies:
"@polkadot/util": "*"
checksum: 10/22cd4e5d734bc08f6707d25cf43c9b75af335ee39284bf43dced0c72abd1300c7ebc3e956c3ce175db59655ed4fd1c37fc652c7851ee308de0bdf65331f7ba67
checksum: 10/5988b49ee7376e9db840b726c35ec14b1acf1dfbe6183c99010027480c51bc71edcfd8bcb058cb25afdb5745300fdde9ad13ac466c7d3b277d74b0eaec930784
languageName: node
linkType: hard
"@polkadot/wasm-crypto@npm:^7.4.1":
version: 7.4.1
resolution: "@polkadot/wasm-crypto@npm:7.4.1"
"@polkadot/wasm-crypto@npm:^7.5.2":
version: 7.5.2
resolution: "@polkadot/wasm-crypto@npm:7.5.2"
dependencies:
"@polkadot/wasm-bridge": "npm:7.4.1"
"@polkadot/wasm-crypto-asmjs": "npm:7.4.1"
"@polkadot/wasm-crypto-init": "npm:7.4.1"
"@polkadot/wasm-crypto-wasm": "npm:7.4.1"
"@polkadot/wasm-util": "npm:7.4.1"
"@polkadot/wasm-bridge": "npm:7.5.2"
"@polkadot/wasm-crypto-asmjs": "npm:7.5.2"
"@polkadot/wasm-crypto-init": "npm:7.5.2"
"@polkadot/wasm-crypto-wasm": "npm:7.5.2"
"@polkadot/wasm-util": "npm:7.5.2"
tslib: "npm:^2.7.0"
peerDependencies:
"@polkadot/util": "*"
"@polkadot/x-randomvalues": "*"
checksum: 10/7fbb38c15217965066904dfa007dafc835ed828c0a33ef6621f772fdd50b634aa0862118713e5bf564dc17891f3e3a6f09a589b447ba4e39f2e9847a0f5383be
checksum: 10/af29fafd051baa5338fbd1efc0dcee50854734cf2b03fa4cbd83d8fdf8607dffc21d0c0f1d26d1fc2c655407c674b71a42d0ddfb1f5d83f85c18116ff9da175d
languageName: node
linkType: hard
"@polkadot/wasm-util@npm:7.4.1, @polkadot/wasm-util@npm:^7.4.1":
version: 7.4.1
resolution: "@polkadot/wasm-util@npm:7.4.1"
"@polkadot/wasm-util@npm:7.5.2, @polkadot/wasm-util@npm:^7.5.2":
version: 7.5.2
resolution: "@polkadot/wasm-util@npm:7.5.2"
dependencies:
tslib: "npm:^2.7.0"
peerDependencies:
"@polkadot/util": "*"
checksum: 10/08effda106378716954267cb268035a37d2c0a8c1db2e6f617ccd7b4f1e410342b4ff1c26db95b828aeb23e2b5512ca72f389055d717c54fda00e97fba89462a
checksum: 10/f8164ad0bf38eae4c46a4f18308aa66da7b9fb3dbce2185fa95c085f43be3ae15d4c88ef15385677f73fd381f4106de0d1f234123117c85e1918796c2ff79265
languageName: node
linkType: hard
"@polkadot/x-bigint@npm:13.4.4, @polkadot/x-bigint@workspace:packages/x-bigint":
"@polkadot/x-bigint@npm:13.5.8, @polkadot/x-bigint@workspace:packages/x-bigint":
version: 0.0.0-use.local
resolution: "@polkadot/x-bigint@workspace:packages/x-bigint"
dependencies:
"@polkadot/x-global": "npm:13.4.4"
"@polkadot/x-global": "npm:13.5.8"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
@@ -1776,7 +1752,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/x-bundle@workspace:packages/x-bundle"
dependencies:
"@polkadot/util": "npm:13.4.4"
"@polkadot/util": "npm:13.5.8"
buffer-es6: "npm:^4.9.3"
tslib: "npm:^2.8.0"
languageName: unknown
@@ -1786,13 +1762,13 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/x-fetch@workspace:packages/x-fetch"
dependencies:
"@polkadot/x-global": "npm:13.4.4"
"@polkadot/x-global": "npm:13.5.8"
node-fetch: "npm:^3.3.2"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/x-global@npm:13.4.4, @polkadot/x-global@workspace:packages/x-global":
"@polkadot/x-global@npm:13.5.8, @polkadot/x-global@workspace:packages/x-global":
version: 0.0.0-use.local
resolution: "@polkadot/x-global@workspace:packages/x-global"
dependencies:
@@ -1800,35 +1776,35 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/x-randomvalues@npm:13.4.4, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
"@polkadot/x-randomvalues@npm:13.5.8, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
version: 0.0.0-use.local
resolution: "@polkadot/x-randomvalues@workspace:packages/x-randomvalues"
dependencies:
"@polkadot/util": "npm:13.4.4"
"@polkadot/wasm-util": "npm:^7.4.1"
"@polkadot/x-global": "npm:13.4.4"
"@polkadot/util": "npm:13.5.8"
"@polkadot/wasm-util": "npm:^7.5.2"
"@polkadot/x-global": "npm:13.5.8"
"@types/react-native": "npm:^0.73.0"
tslib: "npm:^2.8.0"
peerDependencies:
"@polkadot/util": 13.4.4
"@polkadot/util": 13.5.8
"@polkadot/wasm-util": "*"
languageName: unknown
linkType: soft
"@polkadot/x-textdecoder@npm:13.4.4, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
"@polkadot/x-textdecoder@npm:13.5.8, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
version: 0.0.0-use.local
resolution: "@polkadot/x-textdecoder@workspace:packages/x-textdecoder"
dependencies:
"@polkadot/x-global": "npm:13.4.4"
"@polkadot/x-global": "npm:13.5.8"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/x-textencoder@npm:13.4.4, @polkadot/x-textencoder@workspace:packages/x-textencoder":
"@polkadot/x-textencoder@npm:13.5.8, @polkadot/x-textencoder@workspace:packages/x-textencoder":
version: 0.0.0-use.local
resolution: "@polkadot/x-textencoder@workspace:packages/x-textencoder"
dependencies:
"@polkadot/x-global": "npm:13.4.4"
"@polkadot/x-global": "npm:13.5.8"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
@@ -1837,7 +1813,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/x-ws@workspace:packages/x-ws"
dependencies:
"@polkadot/x-global": "npm:13.4.4"
"@polkadot/x-global": "npm:13.5.8"
"@types/ws": "npm:^8.5.12"
tslib: "npm:^2.8.0"
ws: "npm:^8.18.0"
@@ -3213,23 +3189,23 @@ __metadata:
languageName: node
linkType: hard
"@zondax/ledger-js@npm:^0.11.0":
version: 0.11.0
resolution: "@zondax/ledger-js@npm:0.11.0"
"@zondax/ledger-js@npm:^1.2.0":
version: 1.2.0
resolution: "@zondax/ledger-js@npm:1.2.0"
dependencies:
"@ledgerhq/hw-transport": "npm:6.30.6"
checksum: 10/52a5e2aa66db1554365d733b3d38f286a0bbb192e1a2911c526f44f058a2e6c1fc6e0ca67a6dc824bb89ce694bd4554c39809d0290141de97675bb48677c3985
"@ledgerhq/hw-transport": "npm:6.31.4"
checksum: 10/5852b340efd421f96d4e52d0a93d4e8464604c070939dd42fade5a495010a08d730b03e1b7ab3ff0f26f13075d8a0a5226a748a41986f2ed087fca4471f24e4e
languageName: node
linkType: hard
"@zondax/ledger-substrate@npm:1.0.0":
version: 1.0.0
resolution: "@zondax/ledger-substrate@npm:1.0.0"
"@zondax/ledger-substrate@npm:1.1.1":
version: 1.1.1
resolution: "@zondax/ledger-substrate@npm:1.1.1"
dependencies:
"@ledgerhq/hw-transport": "npm:6.31.2"
"@zondax/ledger-js": "npm:^0.11.0"
axios: "npm:^1.7.4"
checksum: 10/5324da85746c160dd2400286c38ff0f90fae0147ad7e275b382b20b50acdee99c57941366531dc663931da5cb41144770888e3c6250b3f632b097d8bb7c7182f
"@ledgerhq/hw-transport": "npm:6.31.4"
"@zondax/ledger-js": "npm:^1.2.0"
axios: "npm:^1.8.4"
checksum: 10/039ffef55b31870f82c6b0f20b518089ad9ce0295d695f880640cb586256adacd4a326c10157ccaf82e897abde7358f9e4e02c069dac672ec90881e21d250722
languageName: node
linkType: hard
@@ -3771,14 +3747,14 @@ __metadata:
languageName: node
linkType: hard
"axios@npm:^1.7.4":
version: 1.7.7
resolution: "axios@npm:1.7.7"
"axios@npm:^1.8.4":
version: 1.9.0
resolution: "axios@npm:1.9.0"
dependencies:
follow-redirects: "npm:^1.15.6"
form-data: "npm:^4.0.0"
proxy-from-env: "npm:^1.1.0"
checksum: 10/7f875ea13b9298cd7b40fd09985209f7a38d38321f1118c701520939de2f113c4ba137832fe8e3f811f99a38e12c8225481011023209a77b0c0641270e20cde1
checksum: 10/a2f90bba56820883879f32a237e2b9ff25c250365dcafd41cec41b3406a3df334a148f90010182dfdadb4b41dc59f6f0b3e8898ff41b666d1157b5f3f4523497
languageName: node
linkType: hard
@@ -10765,7 +10741,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@polkadot/dev": "npm:^0.83.2"
"@polkadot/dev": "npm:^0.83.3"
"@types/node": "npm:^22.7.5"
languageName: unknown
linkType: soft