Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@scure/bip32

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scure/bip32 - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

6

index.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc