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

bitcoinjs-lib

Package Overview
Dependencies
Maintainers
3
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoinjs-lib - npm Package Versions

1
9

3.1.1

Diff

dcousens
published 3.1.0 •

Changelog

Source

3.1.0

added

  • Added Transaction.prototype.virtualSize (#811)
  • Added Transaction.prototype.weight (#811)
dcousens
published 3.0.3 •

dcousens
published 3.0.2 •

dcousens
published 3.0.1 •

dcousens
published 3.0.0 •

Changelog

Source

3.0.0

From this release users can expect out-of-the-box Segregated Witness support. The majority of breaking changes have been in how script encoding/decoding occurs, with the introduction of witness stacks.

added

  • Added script.types enums (#679)
  • Added script.*.*.{check,encode,decode[,encodeStack,decodeStack]} functions (#681, #682)
  • Added minimal TransactionBuilder.prototype.build absurd fee-safety (#696)
  • Added script.(decompile/compile)PushOnly and script.toStack functions (#700)
  • Added Transaction.prototype.toBuffer Segregated Witness serialization support (#684, #701)
  • Added Transaction.prototype.hasWitnesses (#718)
  • Added script.witnessCommitment.* template
  • Added TransactionBuilder.prototype.sign now has two additional parameters, witnessValue, and witnessScript
  • Added Transaction.hashForWitnessV0 and Transaction.setWitness (5c2fdb60436714f18440dc709f0be065928c1e49)

fixed

  • Fixed script must compile minimally (#638)
  • Fixed Transaction and Block versions should be Int32, signed integers (#662)

removed

  • Removed ecdsa.calcPubKeyRecoveryParam, ecdsa.recoverPubKey (#456)
  • Removed buffer-equals/buffer-compare dependencies (#650)
  • Removed HDNode.prototype.toString (#665)
  • Removed dogecoin network (#675)
  • Removed message export, moved to bitcoinjs-message (#456)

renamed

  • Removed script.* functions in favour of bitcoin.script.*.(input/output).(encode/decode/check) style (#682)
dcousens
published 2.3.0 •

Changelog

Source

2.3.0

added

  • Added HDNode.prototype.isNeutered (#536)
  • Added HDNode.prototype.derivePath (#538)
  • Added typeforce checking for HDNode.prototype.derive* (#539)
  • Added Transaction.prototype.isCoinbase (#578)
  • Added Block.prototype.checkMerkleRoot (#580)
  • Added Block.calculateMerkleRoot (#580)
  • Added TransactionBuilder.prototype.setVersion (#599)
  • Added script.isWitnessPubKeyHashOutput (#602)
  • Added script.isWitnessScriptHashOutput (#602)
  • Added script.witnessPubKeyHashOutput (#602)
  • Added script.witnessScriptHashOutput (#602)
  • Added script.witnessScriptHashInput (#602)

fixed

  • Fixed "BIP32 is undefined" when network list given to HDNode but no compatible version found (#550)
  • Fixed writePushDataInt output to adhere to minimal data push policy (#617)
dcousens
published 2.2.0 •

Changelog

Source

2.2.0

added

  • Added Block.calculateTarget for difficulty calculations (#509)
  • Added Block.prototype.checkProofOfWork (#509)
  • Added opcodes.OP_CHECKLOCKTIMEVERIFY alias for OP_NOP2 (#511)
  • Added script.number.[encode/decode] for CScriptNum-encoded Buffers (#516)
  • Added TransactionBuilder.prototype.setLockTime (#507)

fixed

  • Bumped typeforce version to fix erroneous error message from types.Hash*bit types (#534)
dcousens
published 2.1.4 •

Changelog

Source

2.1.4

fixed

  • script.isPubKeyHashOutput and script.isScriptHashOutput no longer allow for non-minimal data pushes (per bitcoin/bitcoin IsStandard policy) (#499)
  • TransactionBuilder.addOutput now allows for SIGHASH_SINGLE, throwing if the contract is violated (#504)
  • remove use of const, use ES5 only (#502)
dcousens
published 2.1.3 •

Changelog

Source

2.1.3

fixed

  • Bumped typeforce to 1.5.5 (see #493)
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