v0.12.0
Minor release with some API changes.
- Add
inputAmountandoutputAmountmembers toTransaction - Increase coverage for Input and Output, and fix some bugs
- Add
shuffleOutputsfunction toTransactionto randomize outputs for privacy. - Refactor Address<->Script relation:
- Adds
Address.payingTo(script), which returns a p2sh address paying to that script Address.fromScriptnow 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
- Adds
- 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
Scripttest coverage. - Sighash: remove dead code branch
- Fix Block#toObject API
Thanks to @carnesen, @fanatid, @dcousens for your contributions!