Commit graph

17 commits

Author SHA1 Message Date
Daniel Cousens 5e0d38ba54 Address: add Address.*ScriptPubKey and tests
The introduction of these two functions allow for the all the network
related code to be eventually removed from Transaction and Script.

Previously the result for non-standard transactions was undefined
behaviour.  This change mandates that an exception is thrown if a
non-standard transaction is input.
2014-05-08 10:59:58 +10:00
Daniel Cousens 231ccdd721 Now shares base58 data with Address base58 tests 2014-04-22 00:24:03 +10:00
Daniel Cousens 12a5b75cbe Address now properly checks malformed base58 2014-04-22 00:24:02 +10:00
Daniel Cousens 1d1306b054 Removes Address.fromPubKey and improves test vectors 2014-04-20 04:38:33 +10:00
Daniel Cousens 682ec133bb Migrates Address to stricter API subset 2014-04-18 17:12:29 +10:00
Daniel Cousens f047afef2d Updates network.js constant names 2014-04-17 05:50:59 +10:00
Daniel Cousens 6fa0c07763 Changes existing code to use new base58 API 2014-04-04 05:10:12 +11:00
Wei Lu 93fe1b4c78 cosmetic standardization
[closes #56]
2014-03-31 11:47:47 +08:00
Kyle Drake a6706ea8be
fix spacing 2014-03-06 17:57:32 -06:00
Kyle Drake 09925cff5a
cleanup throw tests, add case for bad input 2014-03-06 17:27:40 -06:00
Kyle Drake fdc78dad2e
merge weilu's changes 2014-03-06 17:21:42 -06:00
Wei Lu 2f3e597596 reorganize address tests #50 2014-03-06 09:45:56 +08:00
xnova 786198f130 * Fixes address.js to be able to deal with testnet P2SH addresses
* Enhanced address.js testsuite...now also verifies address versions
* Enhances README to show how to run test suite
2014-03-05 16:53:29 -05:00
Wei Lu 02b3a2b564 HDWallet prod -> mainnet 2014-02-28 17:28:03 +08:00
Andreas Brekken f591cc0111 Reformat all tests for more modern mocha syntax (describe, it) 2014-01-11 13:57:43 +07:00
Roman Shtylman e94636ef25 fix test require so browserify works for testling 2013-02-17 00:51:16 -05:00
Roman Shtylman 0faac29134 start to split into node commonjs style modules
- no longer is the global Bitcoin used for modules
- cleaner and more maintainable code
- add more tests
2013-02-17 00:40:14 -05:00