@bitgo/bitcoinjs-lib
Advanced tools
Comparing version 7.0.0-rc.3 to 7.0.0-rc.5
{ | ||
"name": "@bitgo/bitcoinjs-lib", | ||
"version": "7.0.0-rc.3", | ||
"version": "7.0.0-rc.5", | ||
"description": "Client-side Bitcoin JavaScript library", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -59,2 +59,3 @@ /// <reference types="node" /> | ||
static fromBuffer(buffer: Buffer, opts?: PsbtOptsOptional): Psbt; | ||
protected static transactionFromBuffer(buffer: Buffer, _network: Network): Transaction<bigint>; | ||
private __CACHE; | ||
@@ -61,0 +62,0 @@ private opts; |
@@ -81,2 +81,4 @@ 'use strict'; | ||
__UNSAFE_SIGN_NONSEGWIT: false, | ||
__TX_FROM_BUFFER: buf => | ||
this.constructor.transactionFromBuffer(buf, this.opts.network), | ||
}; | ||
@@ -107,2 +109,5 @@ if (this.data.inputs.length === 0) this.setVersion(2); | ||
} | ||
static transactionFromBuffer(buffer, _network) { | ||
return transaction_1.Transaction.fromBuffer(buffer, undefined, 'bigint'); | ||
} | ||
get inputCount() { | ||
@@ -1224,7 +1229,3 @@ return this.data.inputs.length; | ||
cache.__NON_WITNESS_UTXO_BUF_CACHE[inputIndex] = input.nonWitnessUtxo; | ||
const tx = transaction_1.Transaction.fromBuffer( | ||
input.nonWitnessUtxo, | ||
undefined, | ||
'bigint', | ||
); | ||
const tx = cache.__TX_FROM_BUFFER(input.nonWitnessUtxo); | ||
cache.__NON_WITNESS_UTXO_TX_CACHE[inputIndex] = tx; | ||
@@ -1231,0 +1232,0 @@ const self = cache; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
242038
6004
0