Commit Graph

2253 Commits

Author SHA1 Message Date
Esteban Ordano 3b217382a8 Merge pull request #865 from braydonf/feature/browser-tests
Added Chrome Browser Test if Available.
2015-01-07 09:28:14 -05:00
Esteban Ordano cfecfa2d8d Merge pull request #904 from braydonf/bug/safari-address
Fixed bugs in Safari and IE. Closes #837 and #784
2015-01-07 09:27:07 -05:00
Esteban Ordano 69c8c108a5 Merge pull request #905 from braydonf/bug/defaultNetwork-tests
Fixed tests to handle a `defaultNetwork` change. Closes #890
2015-01-07 09:26:19 -05:00
Braydon Fuller 8b505f0cfa Fixed tests to handle a `defaultNetwork` change
- Updated tests to work for both 'testnet' and 'livenet' as the default network.
- Fixed a bug in Address where the network property was being set as a string.
- Fixed a bug in HDKeys to handle serialized keys when the defaultNetwork changed.
2015-01-06 18:51:31 -05:00
Braydon Fuller bce28cd227 Fixed bug in IE11 that would cause MAX_MONEY verification test to fail. 2015-01-06 12:00:28 -05:00
Esteban Ordano e01003f40b Merge pull request #888 from yemel/fix/script-toAddress
Use defaultNetwork in Script.toAddress
2015-01-06 09:22:22 -05:00
Yemel Jardi d369154162 Script: remember network when creating from address or pubkey 2015-01-06 10:28:48 -03:00
Braydon Fuller ff4a6f549d Fixed bugs in IE11 2015-01-05 23:27:20 -05:00
Braydon Fuller a801663c6d Fixed bug in Safari for PublicKey and Script instance checking in Address 2015-01-05 17:31:51 -05:00
Braydon Fuller 9c02a4b677 Tests: Use karma to launch browsers locally if installed. 2015-01-05 16:46:54 -05:00
Yemel Jardi 6fb5c4771f Merge pull request #894 from braydonf/bug/public-key-calculation
Fixed public key calculation in rare situations that would produce an invalid point
2015-01-05 12:47:50 -03:00
Esteban Ordano 4920932db8 Merge pull request #892 from yemel/fix/privatekey-tostring
Change PrivateKey.toString from WIF to hex format
2015-01-05 10:02:11 -05:00
Manuel Aráoz 943a09255b Merge pull request #896 from ryanxcharles/test/deterministicK
add deterministicK test vectors
2015-01-05 11:08:45 -03:00
Ryan X. Charles 97b6e8b989 add deterministicK test vectors
These vectors were produced by @bip32JP and tested against a similar
implementation of the "badrs" approach to RFC 6979 in python-ecdsa as described
in this related bitcoinjs-lib PR:

https://github.com/bitcoinjs/bitcoinjs-lib/pull/337
2015-01-04 19:37:45 -08:00
Braydon Fuller d2a2be7a93 Upgraded bn.js to fix public key calculation problem, restored crypto/point.js, and added additional tests. 2015-01-04 09:19:08 -05:00
Braydon Fuller bc4e62ecd4 Fixed public key calculation by returning the elliptic ec.curve.g 2015-01-03 14:05:33 -05:00
Braydon Fuller 3de6acc176 Add tests that reveals incorrect public key calculation 2015-01-03 13:20:51 -05:00
Esteban Ordano 5ae97a7146 Merge pull request #893 from braydonf/bug/json-detection
Fixed an issue where a hexa string was mistakenly recognized as JSON
2015-01-03 10:31:45 -05:00
Esteban Ordano dc7abe054b Merge pull request #891 from yemel/fix/hd-random-testnet
Allow creating a new random testnet HDPrivate key
2015-01-03 10:31:02 -05:00
Braydon Fuller a1ee393dce JSUtil: Return result quicker for isValidJSON and add additional tests. 2015-01-02 19:38:22 -05:00
Braydon Fuller c20a0eabed Check type of parsed JSON to determine it's an object and not a number. 2015-01-02 19:32:49 -05:00
Braydon Fuller 5449ad7bff Add test case that incorrectly handles hexa string as json 2015-01-02 19:15:20 -05:00
Yemel Jardi 5e292490e8 update tests 2015-01-02 18:25:23 -03:00
Yemel Jardi 9f8e2c721f fix typo 2015-01-02 18:25:08 -03:00
Yemel Jardi ff844e9935 Change PrivateKey.toString from WIF to hex format 2015-01-02 18:15:17 -03:00
Yemel Jardi 98cfd646e7 Allow creating a new random testnet HDPrivate key 2015-01-02 18:01:21 -03:00
Yemel Jardi b1557a25ab Merge pull request #872 from eordano/feature/blockchainProvider
Add Insight and UTXO class
2015-01-02 17:54:21 -03:00
Esteban Ordano 48cea84435 Fix links to insight 2015-01-02 17:35:29 -03:00
Esteban Ordano 2284eec829 Fix comments on the Insight and UTXO docs 2015-01-02 17:04:32 -03:00
Esteban Ordano f56ddb2a0a Rename properly utxo to unspentoutput 2015-01-02 16:50:14 -03:00
Esteban Ordano 7fe17e1699 Move explorers inside transport 2015-01-02 16:31:09 -03:00
Esteban Ordano 7cf826249b Add jsdocs and documentation to UnspenOutput and Insight 2015-01-02 15:59:14 -03:00
Esteban Ordano 11975bc0df Rename UTXO to Transaction.UnspentOutput 2015-01-02 15:59:13 -03:00
Esteban Ordano 1cf108ab47 Add tests for UTXO 2015-01-02 15:59:13 -03:00
Esteban Ordano 9362927b43 Add test coverage for Insight 2015-01-02 15:59:13 -03:00
Esteban Ordano 476f009b4d Add Insight and UTXO class 2015-01-02 15:59:13 -03:00
Esteban Ordano 9f32c1b7ba Merge pull request #887 from braydonf/bug/elliptic-hash-dep
Use the same version as specified in the elliptic package.json Closes #886
2015-01-02 13:46:32 -05:00
Yemel Jardi 9deec5e1c2 Use defaultNetwork in Script.toAddress 2015-01-02 15:38:28 -03:00
Braydon Fuller 6ace41834f Upgraded elliptic and bn to the latest versions 2015-01-02 13:11:26 -05:00
Braydon Fuller 2de77f6f5c Use the same version as specified in the elliptic package.json 2015-01-02 12:38:55 -05:00
Yemel Jardi 754add30df Merge pull request #884 from bip32JP/master
Fixed deterministicK() to match python-ecdsa
2015-01-02 13:53:21 -03:00
bip32JP bc6f592daa fix tests
fix tests to match python-ecdsa
2015-01-02 15:33:46 +09:00
bip32JP 95bfb18849 Fix the error loop.
I added a similar badrs function to python-ecdsa and compared the results.

The 1 badrs (aka forcing it to loop once) gave me a different value. It turns out you missed one of the `v = hmac_k(v)` steps during the loop.

Adding one extra `v = hmac_k(v)` in each loop makes it match up with python-ecdsa perfectly (I even tried up to badrs = 30 and it was fine.
2015-01-02 15:32:33 +09:00
Yemel Jardi 9a5193d8e9 Merge pull request #873 from eordano/fix/isFullySigned
transaction: better errors for signature methods
2014-12-31 13:18:41 -03:00
Yemel Jardi 0adcba7145 Merge pull request #874 from eordano/fix/noUndefinedNetwork
Add default network to PublicKey
2014-12-31 13:17:42 -03:00
Yemel Jardi 379405396e Merge pull request #875 from eordano/fix/honorPublicKeyNetwork
Honor publicKey.network on create multisig address
2014-12-31 13:14:05 -03:00
Esteban Ordano 901d836231 Add default network to PublicKey
Closes #871
2014-12-31 02:20:47 -03:00
Esteban Ordano 5ef9975ac5 Honor publicKey.network on create multisig address
Closes #870
2014-12-31 02:19:11 -03:00
Esteban Ordano dbf47ef78f transaction: better errors for signature methods
Closes #868
2014-12-31 02:10:51 -03:00
Braydon Fuller e4a8fe4d95 Merge pull request #867 from yemel/fix/testnet-private
Fix creation of a randomn testnet private key
2014-12-30 18:05:03 -05:00