BitcoinJS v3.0.0 Release Notes
-
๐ 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
andscript.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
, andwitnessScript
- โ Added
Transaction.hashForWitnessV0
andTransaction.setWitness
(5c2fdb60436714f18440dc709f0be065928c1e49)
๐ fixed
- ๐ Fixed
script
must compile minimally (#638) - ๐ Fixed
Transaction
andBlock
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 tobitcoinjs-message
(#456)
๐ renamed
- Removed
script.*
functions in favour ofbitcoin.script.*.(input/output).(encode/decode/check)
style (#682)
- โ Added