Socket
Socket
Sign inDemoInstall

bitcoinjs-lib

Package Overview
Dependencies
9
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
9Next

5.2.0

Diff

Changelog

Source

5.2.0

changed

  • Updated PSBT to allow for witnessUtxo and nonWitnessUtxo simultaneously (Re: segwit psbt bug) (#1563)

added

  • PSBT methods getInputType, inputHasPubkey, inputHasHDKey, outputHasPubkey, outputHasHDKey (#1563)
junderw
published 5.1.10 •

Changelog

Source

5.1.10

fixed

  • Fixed psbt.signInputAsync (and consequentially all Async signing methods) not handling rejection of keypair.sign properly (#1582)
junderw
published 5.1.9 •

Changelog

Source

5.1.9

fixed

  • Fixed errors for psbt.txOutputs getter (#1578)
junderw
published 5.1.8 •

Changelog

Source

5.1.8

fixed

  • Throw errors when p2wsh or p2wpkh contain uncompressed pubkeys (#1573)

added

  • Add txInputs and txOutputs for Psbt (#1561)

changed

  • (Not exposed) Added BufferWriter to help ease maintenance of certain forks of this library (#1533)
junderw
published 5.1.7 •

Changelog

Source

5.1.7

fixed

  • Fixed Transaction class Output interface typing for TypeScript (#1506)
  • Add weight() to Block class, add optional includeWitness arg to Transaction byteLength method (#1515)
  • Match the old TransactionBuilder behavior of allowing for multiple instances of the same pubkey to be in a p2ms script for PSBT (#1519)

added

  • Allow the API consumer to pass in the finalizer functions to allow for any type of transaction to be finalized. It places the most crucial part of transaction construction on the consumer, and should be used with caution. (#1491)
junderw
published 5.1.6 •

Changelog

Source

5.1.6

fixed

  • PsbtOutputExtended did not support using the address attribute properly. It is now fixed.
junderw
published 5.1.5 •

Changelog

Source

5.1.5

added

  • Psbt now has getFee(): number for use when all inputs are finalized. It returns the satoshi fee of the transaction. Calling getFee, getFeeRate, or extractTransaction will cache these values so if you call one after the other, the second call will return immediately.
junderw
published 5.1.4 •

Changelog

Source

5.1.4

changed

  • Psbt inputs using segwit scripts can now work with nonWitnessUtxo as well as the original witnessUtxo. The reasoning for this is that nonWitnessUtxo has all the information contained in the witnessUtxo, so rejecting signing even though we have all the info we need is unnecessary. Trying to sign a non-segwit script with a witnessUtxo will still throw an Error as it should.
junderw
published 5.1.3 •

Changelog

Source

5.1.3

changed

  • TypeScript types: Made Signer and SignerAsync use any for network since we only check for equivalence. (#1448)
  • TypeScript types: Made the args for addInput and addOutput for Psbt actually accept updateInput and updateOutput parameters. (#1449)
junderw
published 5.1.2 •

Changelog

Source

5.1.2

added

  • ECPair and bip32 objects now have a lowR boolean attribute defaulted to false. You may set it to true to ensure that the sign method uses low R values (#1442) (This is to enable low R usage in Psbt, since we decided not to give the low R flag to the Psbt class, since it makes more sense to be an attribute of the Signer interface)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc