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 has forWitness?: boolean which when true returns the hash for wtxid (a652d04)
    • Block.calculateMerkleRoot now has forWitness?: boolean which when true returns the witness commit (a652d04)

    โœ‚ removed

    • ๐Ÿšš Block.prototype.checkMerkleRoot was removed, please use checkTxRoots (0426c66)