BitcoinJS v5.0.0 Release Notes
Release Date: 2019-04-05 // about 5 years ago-
โ added
- ๐ TypeScript support (#1319)
Block.prototype.checkTxRoots
will check the merkleRoot and witnessCommit if it exists against the transactions array. (e52abec) (0426c66)
๐ changed
Transaction.prototype.getHash
now hasforWitness?: boolean
which when true returns the hash for wtxid (a652d04)Block.calculateMerkleRoot
now hasforWitness?: boolean
which when true returns the witness commit (a652d04)
โ removed
- ๐
Block.prototype.checkMerkleRoot
was removed, please usecheckTxRoots
(0426c66)