Socket
Socket
Sign inDemoInstall

@bitgo-forks/bitcoinjs-lib

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo-forks/bitcoinjs-lib - npm Package Compare versions

Comparing version 7.1.0-master.6 to 7.1.0-master.7

2

package.json
{
"name": "@bitgo-forks/bitcoinjs-lib",
"version": "7.1.0-master.6",
"version": "7.1.0-master.7",
"description": "Client-side Bitcoin JavaScript library",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -81,2 +81,3 @@ 'use strict';

__UNSAFE_SIGN_NONSEGWIT: false,
__WARN_UNSAFE_SIGN_NONSEGWIT: true,
__TX_FROM_BUFFER: buf =>

@@ -1020,11 +1021,13 @@ this.constructor.transactionFromBuffer(buf, this.opts.network),

if (!forValidate && cache.__UNSAFE_SIGN_NONSEGWIT !== false)
console.warn(
'Warning: Signing non-segwit inputs without the full parent transaction ' +
'means there is a chance that a miner could feed you incorrect information ' +
"to trick you into paying large fees. This behavior is the same as Psbt's predecesor " +
'(TransactionBuilder - now removed) when signing non-segwit scripts. You are not ' +
'able to export this Psbt with toBuffer|toBase64|toHex since it is not ' +
'BIP174 compliant.\n*********************\nPROCEED WITH CAUTION!\n' +
'*********************',
);
if (cache.__WARN_UNSAFE_SIGN_NONSEGWIT) {
console.warn(
'Warning: Signing non-segwit inputs without the full parent transaction ' +
'means there is a chance that a miner could feed you incorrect information ' +
"to trick you into paying large fees. This behavior is the same as Psbt's predecesor " +
'(TransactionBuilder - now removed) when signing non-segwit scripts. You are not ' +
'able to export this Psbt with toBuffer|toBase64|toHex since it is not ' +
'BIP174 compliant.\n*********************\nPROCEED WITH CAUTION!\n' +
'*********************',
);
}
hash = unsignedTx.hashForSignature(

@@ -1031,0 +1034,0 @@ inputIndex,

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