@scure/bip32
Advanced tools
Comparing version 1.3.3 to 1.4.0
@@ -45,7 +45,7 @@ /*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */ | ||
interface HDKeyOpt { | ||
versions: Versions; | ||
versions?: Versions; | ||
depth?: number; | ||
index?: number; | ||
parentFingerprint?: number; | ||
chainCode: Uint8Array; | ||
chainCode?: Uint8Array; | ||
publicKey?: Uint8Array; | ||
@@ -148,3 +148,3 @@ privateKey?: Uint8Array | bigint; | ||
this.depth = opt.depth || 0; | ||
this.chainCode = opt.chainCode; | ||
this.chainCode = opt.chainCode || null; | ||
this.index = opt.index || 0; | ||
@@ -151,0 +151,0 @@ this.parentFingerprint = opt.parentFingerprint || 0; |
@@ -114,3 +114,3 @@ /*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */ | ||
this.depth = opt.depth || 0; | ||
this.chainCode = opt.chainCode; | ||
this.chainCode = opt.chainCode || null; | ||
this.index = opt.index || 0; | ||
@@ -117,0 +117,0 @@ this.parentFingerprint = opt.parentFingerprint || 0; |
@@ -7,7 +7,7 @@ export declare const HARDENED_OFFSET: number; | ||
interface HDKeyOpt { | ||
versions: Versions; | ||
versions?: Versions; | ||
depth?: number; | ||
index?: number; | ||
parentFingerprint?: number; | ||
chainCode: Uint8Array; | ||
chainCode?: Uint8Array; | ||
publicKey?: Uint8Array; | ||
@@ -14,0 +14,0 @@ privateKey?: Uint8Array | bigint; |
@@ -117,3 +117,3 @@ "use strict"; | ||
this.depth = opt.depth || 0; | ||
this.chainCode = opt.chainCode; | ||
this.chainCode = opt.chainCode || null; | ||
this.index = opt.index || 0; | ||
@@ -120,0 +120,0 @@ this.parentFingerprint = opt.parentFingerprint || 0; |
{ | ||
"name": "@scure/bip32", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"description": "Secure, audited & minimal implementation of BIP32 hierarchical deterministic (HD) wallets over secp256k1", | ||
@@ -25,7 +25,8 @@ "files": [ | ||
"dependencies": { | ||
"@noble/curves": "~1.3.0", | ||
"@noble/hashes": "~1.3.2", | ||
"@scure/base": "~1.1.4" | ||
"@noble/curves": "~1.4.0", | ||
"@noble/hashes": "~1.4.0", | ||
"@scure/base": "~1.1.6" | ||
}, | ||
"devDependencies": { | ||
"@paulmillr/jsbt": "0.1.0", | ||
"micro-should": "0.4.0", | ||
@@ -40,3 +41,3 @@ "prettier": "3.1.1", | ||
"type": "git", | ||
"url": "https://github.com/paulmillr/scure-bip32.git" | ||
"url": "git+https://github.com/paulmillr/scure-bip32.git" | ||
}, | ||
@@ -56,2 +57,3 @@ "contributors": [ | ||
"build": "tsc && tsc -p tsconfig.esm.json", | ||
"build:release": "cd build && npm ci && npm run build:release", | ||
"lint": "prettier --check 'index.ts' 'test/*.test.ts'", | ||
@@ -58,0 +60,0 @@ "format": "prettier --write 'index.ts' 'test/*.test.ts'", |
@@ -12,3 +12,3 @@ # scure-bip32 | ||
and [scure-base](https://github.com/paulmillr/scure-base) | ||
- 🪶 Only 418KB all-bundled: much smaller than similar libraries | ||
- 🪶 300 lines. 90KB with all dependencies | ||
@@ -15,0 +15,0 @@ Check out [scure-bip39](https://github.com/paulmillr/scure-bip39) if you need mnemonic phrases. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58747
4
+ Added@noble/curves@1.4.2(transitive)
+ Added@noble/hashes@1.4.0(transitive)
- Removed@noble/curves@1.3.0(transitive)
- Removed@noble/hashes@1.3.3(transitive)
Updated@noble/curves@~1.4.0
Updated@noble/hashes@~1.4.0
Updated@scure/base@~1.1.6