bitcoinjs-lib
Advanced tools
Changelog
3.1.0
added
Transaction.prototype.virtualSize
(#811)Transaction.prototype.weight
(#811)Changelog
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
script.types
enums (#679)script.*.*.{check,encode,decode[,encodeStack,decodeStack]}
functions (#681, #682)TransactionBuilder.prototype.build
absurd fee-safety (#696)script.(decompile/compile)PushOnly
and script.toStack
functions (#700)Transaction.prototype.toBuffer
Segregated Witness serialization support (#684, #701)Transaction.prototype.hasWitnesses
(#718)script.witnessCommitment.*
templateTransactionBuilder.prototype.sign
now has two additional parameters, witnessValue
, and witnessScript
Transaction.hashForWitnessV0
and Transaction.setWitness
(5c2fdb60436714f18440dc709f0be065928c1e49)fixed
script
must compile minimally (#638)Transaction
and Block
versions should be Int32, signed integers (#662)removed
ecdsa.calcPubKeyRecoveryParam
, ecdsa.recoverPubKey
(#456)buffer-equals
/buffer-compare
dependencies (#650)HDNode.prototype.toString
(#665)dogecoin
network (#675)message
export, moved to bitcoinjs-message
(#456)renamed
script.*
functions in favour of bitcoin.script.*.(input/output).(encode/decode/check)
style (#682)Changelog
2.3.0
added
HDNode.prototype.isNeutered
(#536)HDNode.prototype.derivePath
(#538)HDNode.prototype.derive*
(#539)Transaction.prototype.isCoinbase
(#578)Block.prototype.checkMerkleRoot
(#580)Block.calculateMerkleRoot
(#580)TransactionBuilder.prototype.setVersion
(#599)script.isWitnessPubKeyHashOutput
(#602)script.isWitnessScriptHashOutput
(#602)script.witnessPubKeyHashOutput
(#602)script.witnessScriptHashOutput
(#602)script.witnessScriptHashInput
(#602)fixed
HDNode
but no compatible version found (#550)writePushDataInt
output to adhere to minimal data push policy (#617)Changelog
2.2.0
added
Block.calculateTarget
for difficulty calculations (#509)Block.prototype.checkProofOfWork
(#509)opcodes.OP_CHECKLOCKTIMEVERIFY
alias for OP_NOP2
(#511)script.number.[encode/decode]
for CScriptNum-encoded Buffer
s (#516)TransactionBuilder.prototype.setLockTime
(#507)fixed
typeforce
version to fix erroneous error message from types.Hash*bit
types (#534)Changelog
2.1.4
fixed
IsStandard
policy) (#499)const
, use ES5 only (#502)