Commit Graph

45 Commits

Author SHA1 Message Date
mruddy 9b727afc71 fix signature hasDefinedHashtype method to be closer to the Bitcoin Core function IsDefinedHashtypeSignature 2015-07-01 07:11:08 -04:00
mruddy 02cad1645a fix root cause for bitcore.Transaction.sighash.sign not setting nhashtype.
added unit tests.
fixed an existing lint in a file that i touched.
2015-06-30 15:21:11 -04:00
Braydon Fuller a03e6b9385 Add base option for BN.fromString 2015-05-27 14:11:43 -04:00
Manuel Araoz e2542866d1 expose BN.fromString problem 2015-05-27 15:01:26 -03:00
Braydon Fuller ffe6b449cb Check the compressed property in Signature.fromCompact tests. 2015-05-26 01:15:11 -04:00
Braydon Fuller a5cd5a1407 Added support for uncompressed public keys to Signature.fromCompact 2015-05-25 23:57:46 -04:00
Braydon Fuller 7719d1bfd4 Add test with uncompressed pubkey compact signature. 2015-05-25 23:31:42 -04:00
Esteban Ordano 73a973359b Fix invocations to binary operations called on numbers 2015-02-05 17:28:45 -03:00
Esteban Ordano 6b05f20397 Add the new operator when BN was used without it 2015-02-05 16:46:18 -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
bip32JP bc6f592daa fix tests
fix tests to match python-ecdsa
2015-01-02 15:33:46 +09:00
Manuel Araoz 4e775264fe lint random.js 2014-12-19 19:32:26 -03:00
Manuel Araoz aa6ecfd79b hash 100% coverage 2014-12-19 19:23:30 -03:00
Manuel Araoz 6c518f1f45 refactoring interpreter 2014-12-19 18:28:52 -03:00
Manuel Araoz 370f69df88 refactor BN and ECDSA 2014-12-19 17:23:53 -03:00
Manuel Araoz 3d7b0c7474 standardize test files 2014-12-17 19:11:20 -03:00
Manuel Araoz 3dd86446e0 add Interpreter docs and refactor a bit 2014-12-17 17:25:00 -03:00
Manuel Araoz 0387dffd70 remove outdated test 2014-12-17 11:29:54 -03:00
Esteban Ordano ce94626908 Move: Script and Interpreter into subfolder 2014-12-16 21:11:36 -03:00
Manuel Araoz c272412df2 add sig_noncanonical.json tests 2014-12-16 16:34:22 -03:00
Manuel Araoz 35d664b588 added sig_canonical tests 2014-12-16 13:40:03 -03:00
Manuel Araoz 17459dd7c2 added sig_canonical tests 2014-12-16 13:33:57 -03:00
Manuel Araoz 3eba0bc546 address review comments 2014-12-16 13:33:57 -03:00
Manuel Araoz 4fcc048311 script interpreting working 2014-12-16 13:33:57 -03:00
Manuel Araoz 0ddec23c02 fix some more tests 2014-12-16 13:33:56 -03:00
Manuel Araoz cf48899a3a make creation methods class methods 2014-12-16 13:33:56 -03:00
Manuel Araoz c888c3baa7 adding some signature methods for script interpreting 2014-12-16 13:33:56 -03:00
Manuel Araoz 3de71f8558 refactors and fixes for script interpreter 2014-12-16 13:33:56 -03:00
Braydon Fuller e4cf84519d BN: Remove toJSON and fromJSON methods from BN, as they are equivalent to toString and fromString 2014-12-12 19:06:06 -05:00
Esteban Ordano 736bcd6bd4 Backport changes to ecdsa from fullnode 2014-12-09 12:01:52 -03:00
Braydon Fuller 9a76bf30ff Crypto/Point: Added test coverage and documentation, and refactored validation 2014-12-01 10:14:36 -05:00
Manuel Araoz 1f3d7d9872 move Signature to crypto/ 2014-11-27 16:42:44 -03:00
Esteban Ordano 4b201a8db1 Replace grunt with gulp 2014-11-25 21:26:52 -03:00
Braydon Fuller 2a2dc8196d Crypto: Update ECDSA with to use PrivateKey and PublicKey 2014-11-25 15:10:22 -05:00
Braydon Fuller f6e610dd28 Merge branch 'bug/recursive-tests' into feature/keys-interface-rename-tests 2014-11-25 14:55:35 -05:00
Braydon Fuller 8c4301cb0a Tests: Updated tests to run from sub-directories and fixed crypto and encoding related missing updates. 2014-11-25 14:20:43 -05:00
Braydon Fuller 85ce140aeb Keys: Renamed Privkey to PrivateKey and Pubkey to PublicKey 2014-11-25 13:21:53 -05:00
Manuel Araoz e0340213fe remove KDF 2014-11-21 10:43:12 -03:00
Manuel Araoz 5440baad83 fix tests for random 2014-11-20 18:46:43 -03:00
Manuel Araoz 4c925dc249 fix tests for point 2014-11-20 18:44:19 -03:00
Manuel Araoz fa2b54332c fix tests for kdf 2014-11-20 18:43:32 -03:00
Manuel Araoz e71e41542c fix tests for hash 2014-11-20 18:42:54 -03:00
Manuel Araoz f0740e0589 fix tests for ecdsa 2014-11-20 18:42:03 -03:00
Manuel Araoz f178445b07 fix tests for bn 2014-11-20 18:40:23 -03:00
Manuel Araoz f0a4aebdfb reorder tests 2014-11-20 18:08:31 -03:00