@bitgo-forks/bitcoinjs-lib
Advanced tools
Comparing version 7.1.0-master.6 to 7.1.0-master.7
{ | ||
"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, |
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
225146
6023