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

invoices

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

invoices - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

4

bolt11/create_signed_request.js
const {createHash} = require('crypto');
const {bech32} = require('bech32');
const {ecdsaRecover} = require('secp256k1');
const {recover} = require('tiny-secp256k1');

@@ -68,3 +68,3 @@ const hexAsWords = require('./hex_as_words');

try {
const key = Buffer.from(ecdsaRecover(sig, flag, hash, true));
const key = Buffer.from(recover(hash, sig, flag, true));

@@ -71,0 +71,0 @@ return key.equals(destinationKey);

const {bech32} = require('bech32');
const {ecdsaRecover} = require('secp256k1');
const {recover} = require('tiny-secp256k1');

@@ -86,3 +86,3 @@ const decodePrefix = require('./decode_prefix');

network,
destination: asHex(ecdsaRecover(signature, recovery, hash, true)),
destination: asHex(recover(hash, signature, recovery, true)),
details: fields.map(n => fieldAsDetails({

@@ -89,0 +89,0 @@ network,

# Versions
## 2.0.3
## 2.0.4

@@ -5,0 +5,0 @@ ### Breaking Change

@@ -12,3 +12,3 @@ {

"bn.js": "5.2.0",
"secp256k1": "4.0.3"
"tiny-secp256k1": "2.2.0"
},

@@ -20,3 +20,3 @@ "description": "Methods for working with BOLT 11 payment requests",

"engines": {
"node": ">=10.4.0"
"node": ">=12.20.0"
},

@@ -40,3 +40,3 @@ "keywords": [

},
"version": "2.0.3"
"version": "2.0.4"
}

@@ -1,2 +0,2 @@

const sign = require('secp256k1').ecdsaSign;
const {sign} = require('tiny-secp256k1');

@@ -283,3 +283,3 @@ const {test} = require('@alexbosworth/tap');

const {signature} = sign(bufFromHex(hash), bufFromHex(verify.private_key));
const signature = sign(bufFromHex(hash), bufFromHex(verify.private_key));

@@ -286,0 +286,0 @@ const {request} = createSignedRequest({

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