Socket
Socket
Sign inDemoInstall

@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.1.2 to 1.1.3

8

lib/esm/index.js

@@ -200,5 +200,7 @@ import { hmac } from '@noble/hashes/hmac';

else {
opt.publicKey = secp.Point.fromHex(this.pubKey)
.add(secp.Point.fromPrivateKey(childTweak))
.toRawBytes(true);
const added = secp.Point.fromHex(this.pubKey).add(secp.Point.fromPrivateKey(childTweak));
if (added.equals(secp.Point.ZERO)) {
throw new Error('The tweak was equal to negative P, which made the result key invalid');
}
opt.publicKey = added.toRawBytes(true);
}

@@ -205,0 +207,0 @@ return new HDKey(opt);

@@ -203,5 +203,7 @@ "use strict";

else {
opt.publicKey = secp.Point.fromHex(this.pubKey)
.add(secp.Point.fromPrivateKey(childTweak))
.toRawBytes(true);
const added = secp.Point.fromHex(this.pubKey).add(secp.Point.fromPrivateKey(childTweak));
if (added.equals(secp.Point.ZERO)) {
throw new Error('The tweak was equal to negative P, which made the result key invalid');
}
opt.publicKey = added.toRawBytes(true);
}

@@ -208,0 +210,0 @@ return new HDKey(opt);

{
"name": "@scure/bip32",
"version": "1.1.2",
"version": "1.1.3",
"description": "Secure, audited & minimal implementation of BIP32 hierarchical deterministic (HD) wallets",

@@ -5,0 +5,0 @@ "files": [

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