Skip to content

v0.12.0

Compare
Choose a tag to compare
@maraoz maraoz released this 29 Apr 16:07
· 14250 commits to master since this release

Minor release with some API changes.

  • Add inputAmount and outputAmount members to Transaction
  • Increase coverage for Input and Output, and fix some bugs
  • Add shuffleOutputs function to Transaction to randomize outputs for privacy.
  • Refactor Address<->Script relation:
    • Adds Address.payingTo(script), which returns a p2sh address paying to that script
    • Address.fromScript now works for p2sh in, p2sh out, p2pkh in, and p2pkh out, and returns the Address that can be found inside the script.
    • 100% coverage on Address
    • Fix bug in Script.isScriptHashIn
  • Lazy loading for xpubkey in HDPrivateKey, increases performance.
  • Network Fixes to better support alternative networks.
  • Fix bug in Script.isPublicKeyHashOut
  • Allow addresses to have surrounding whitespace in validation (easier UI handling of addresses)
  • Increase Script test coverage.
  • Sighash: remove dead code branch
  • Fix Block#toObject API

Thanks to @carnesen, @fanatid, @dcousens for your contributions!