Commit graph

1241 commits

Author SHA1 Message Date
Daniel Cousens
1e3e003120 TxBuilder: remove unnecessary assert 2014-08-18 08:54:46 +10:00
Daniel Cousens
14211b5f3e TxBuilder: sign after error checking 2014-08-18 08:54:46 +10:00
Daniel Cousens
31ea956e8e TxBuilder: add invalid nulldata case 2014-08-18 08:54:45 +10:00
Daniel Cousens
d0ac9b405a tests: add TxBuilder pubKey test fixture 2014-08-18 08:54:45 +10:00
Daniel Cousens
26b028adcf Wallet: use TxBuilder instead 2014-08-18 08:54:45 +10:00
Daniel Cousens
4e3a6c9557 TxBuilder: use build/buildIncomplete over boolean 2014-08-18 08:54:45 +10:00
Daniel Cousens
377b815417 TxBuilder: transform all signatures once 2014-08-18 08:54:45 +10:00
Daniel Cousens
36b225a3df TxBuilder: use data fixtures for invalid tests 2014-08-18 08:54:45 +10:00
Daniel Cousens
bcbcd58964 TxBuilder: Initial commit and tests 2014-08-18 08:54:45 +10:00
Daniel Cousens
15dc92049c LICENSE: Updated date and copyright notice 2014-08-16 17:39:50 +10:00
Daniel Cousens
884fd542fe Transaction: deprecate Tx signing methods 2014-08-16 17:36:06 +10:00
Daniel Cousens
897bbf4eb4 Wallet: assign indexOf in the same step 2014-08-16 17:26:27 +10:00
Daniel Cousens
9620b68fe2 Wallet: use __processTx over a free function
The use of bind in this case wasn't idiomatic.
2014-08-16 17:26:27 +10:00
Daniel Cousens
300facf7aa Wallet: use === when comparing with undefined 2014-08-16 17:26:27 +10:00
Daniel Cousens
4bb7f5b56d Wallet: use indexOf explicitly over include* 2014-08-16 17:26:27 +10:00
Wei Lu
2386253ea0 Merge pull request #258 from dcousens/wallclean
Wallet clean
2014-08-16 15:14:03 +08:00
Daniel Cousens
1ca69969bd Merge pull request #2 from weilu/dcousens-wallclean
Clean up Wallet constructor function
2014-08-16 16:59:30 +10:00
Wei Lu
e55676cf8e Wallet: remove unncessary comments 2014-08-16 14:27:12 +08:00
Wei Lu
00d58604a4 Wallet: move getPrivateKeyForAddress to prototype
also, move the assert to the end to simplify the logic
2014-08-16 14:24:24 +08:00
Wei Lu
2b4d94cd92 Wallet: move processPendingTx & processConfirmedTx to prototype
also, move processTx out of Wallet scope
2014-08-16 14:19:19 +08:00
Daniel Cousens
c13177bb29 Wallet: rename masterkey to masterKey 2014-08-14 17:29:14 +10:00
Daniel Cousens
6df785bb65 Wallet: move createTx to prototype 2014-08-14 11:17:12 +10:00
Daniel Cousens
7fd41fae4a Wallet: move most instance methods to prototype 2014-08-14 11:17:12 +10:00
Daniel Cousens
2f00c9ab35 Wallet: rework unspents to primarily work on initialization
The RegExp for the UTXO validation was removed as the errors are now
more verbose and specific to each case.
2014-08-14 11:17:10 +10:00
Daniel Cousens
7c22067f69 Wallet: clarify getPrivateKeyForAddress method structure
This does repeat the O(n) lookup several times, but that can be fixed by
using an O(1) lookup instead (and will be later).

Clarity first.
2014-08-14 11:00:29 +10:00
Daniel Cousens
abc3e6c715 Wallet: move estimatePaddedTxFee out of Wallet scope 2014-08-14 11:00:29 +10:00
Daniel Cousens
8b3470e8ca Wallet: move all free functions out of Wallet scope 2014-08-14 11:00:29 +10:00
Daniel Cousens
d618aa9822 Wallet: deprecates newMasterKey 2014-08-14 11:00:18 +10:00
Wei Lu
09455a6ad8 Merge pull request #248 from dcousens/hdnode
HDNode / BIP32 Neutering
2014-07-30 22:11:31 +08:00
Daniel Cousens
6b429493f8 hdnode: add deprecation message for isPrivate 2014-07-30 18:04:25 +10:00
Daniel Cousens
2fbd9449f5 tests: use neutered rather than import/export 2014-07-30 17:57:09 +10:00
Daniel Cousens
9d92b6a1a8 HDNode: add neuter functionality 2014-07-30 17:57:09 +10:00
Daniel Cousens
e69ba7ce76 HDNode: assert chain code length 2014-07-30 17:57:09 +10:00
Kyle Drake
5888ca5730 1.0.2
Signed-off-by: Kyle Drake <kyle@kyledrake.net>
2014-07-30 00:11:46 -07:00
Daniel Cousens
8297e1b0fc ecdsa: add further (missing) annotations from 1.4.x 2014-07-30 15:10:38 +10:00
Daniel Cousens
804c542c40 ecdsa: add SEC annotations for verify 2014-07-30 15:04:45 +10:00
Daniel Cousens
52689fc98b tests: adds r = s = -n ecdsa verify test case 2014-07-30 14:47:21 +10:00
Wei Lu
c73ab8c816 Merge pull request #250 from dcousens/negrs
Negative R,S value checking
2014-07-30 10:00:35 +08:00
Daniel Cousens
5657dcf2aa ecdsa: add improved test coverage for recoverPubKey 2014-07-29 23:45:50 +10:00
Daniel Cousens
be3ce88a3a ecdsa: enforce positive integers 2014-07-29 23:45:25 +10:00
Daniel Cousens
05237f4248 Merge pull request #249 from rapodaca/master
Fixed, added console.log output on README
2014-07-29 15:56:42 +10:00
Rich Apodaca
eda94d4fe3 Fixed, added console.log output on README 2014-07-28 21:59:42 -07:00
Daniel Cousens
04bcbadc77 transaction/ecdsa: remove unused imports 2014-07-29 02:06:17 +10:00
Daniel Cousens
a8c6f5284d tests: avoid unnecessary sha256 for hash 2014-07-29 01:01:11 +10:00
Wei Lu
6e1bbe8ebe Merge pull request #247 from dcousens/ecurve
Removal of secure-random in favour of crypto-browserify
2014-07-28 22:44:29 +08:00
Daniel Cousens
eaf8cf85af test: rephrase fail -> throw 2014-07-28 18:13:00 +10:00
Daniel Cousens
2920bb2ee1 tests: remove outdated FIXME in wallet 2014-07-28 18:11:31 +10:00
Daniel Cousens
a8d1a525e5 package: use ecurve 1.0.0 2014-07-28 13:51:50 +10:00
Daniel Cousens
75b51995e5 package: use bs58 1.2.1 2014-07-28 13:51:49 +10:00
Daniel Cousens
8e0c835919 package: use crypto-browserify 3.0.0 2014-07-28 13:51:30 +10:00