Commit graph

2152 commits

Author SHA1 Message Date
Andreas Brekken
ecbb6f81ee Allow specifying whether to compress key in ECKey.toBytes 2014-01-16 14:01:57 +07:00
Andreas Brekken
6cc7a23bdd Begin work to properly cover the test vectors from bip32 docs 2014-01-11 16:31:48 +07:00
Andreas Brekken
1cb41fdaba Add BIP32_PRIME constant, 0x80000000 2014-01-11 16:31:09 +07:00
Andreas Brekken
56bb0a0c6d Improve naming of ECKey/ECPubKey formatters. close vbuterin/bitcoinjs-lib#13 2014-01-11 15:52:29 +07:00
Andreas Brekken
e08533ff7a Document serialization of BIP32key 2014-01-11 15:50:25 +07:00
Andreas Brekken
29ebd4edc5 Fix ECKey.verify 2014-01-11 14:26:12 +07:00
Andreas Brekken
00e9842bc7 Merge branch 'travis' 2014-01-11 14:00:39 +07:00
Andreas Brekken
ad91f8c948 Add travis 2014-01-11 13:58:14 +07:00
Andreas Brekken
f591cc0111 Reformat all tests for more modern mocha syntax (describe, it) 2014-01-11 13:57:43 +07:00
Andreas Brekken
61992462e3 Rewrite util.js for readability 2014-01-11 13:57:05 +07:00
Andreas Brekken
3ef468ec8b Remove call to non-existant method ECPubKey.setCompressed 2014-01-11 13:56:48 +07:00
Andreas Brekken
bc3136802c Minor formatting 2014-01-11 13:56:23 +07:00
Andreas Brekken
20aa4a0e8a Fix compressed check to avoid setting it to undefined 2014-01-11 13:55:53 +07:00
Andreas Brekken
bf6254d3e2 Trailing whitespace 2014-01-11 13:55:21 +07:00
Andreas Brekken
d6290ef5df Rename test files to match what they test 2014-01-11 13:54:23 +07:00
Vitalik Buterin
36ce412bcb Merge branch 'master' of github.com:vbuterin/bitcoinjs-lib 2014-01-10 15:18:09 -05:00
Vitalik Buterin
7919c8cfc5 Added auto-instantiators to classes 2014-01-10 15:17:53 -05:00
vbuterin
7b86428354 Merge pull request #8 from justcoin/master
Fixed multiple issues with basic usage of BIP32key and Transaction construction (node.js)
2014-01-10 03:54:40 -08:00
Andreas Brekken
4ffabf05af Fix bitcoinAddress to use getPub().key.export('bytes') 2014-01-10 17:16:08 +07:00
Andreas Brekken
c3fbd63c84 Fix bad Bitcoin.Crypto reference in ecdsa.js 2014-01-10 16:47:35 +07:00
Andreas Brekken
be7406d9a9 Add bitcoinAddress convenience func to BIP32key 2014-01-10 16:47:14 +07:00
Andreas Brekken
3e6796a660 Fix references to Bitcoin.BigInteger 2014-01-10 16:16:24 +07:00
Andreas Brekken
26ac76d42c Fix bad references to Bitcoin.Crypto 2014-01-10 16:10:39 +07:00
Andreas Brekken
d39567c589 Clean up formatting of BIP32key (jshint) 2014-01-10 16:09:59 +07:00
Andreas Brekken
49513684a2 Remove unused imports from BIP32key 2014-01-10 16:08:27 +07:00
Andreas Brekken
4b59827135 Declare statics on BIP32key, not its prototype 2014-01-10 16:05:53 +07:00
Andreas Brekken
9cfeb1abcd Trailing whitespace 2014-01-10 16:03:02 +07:00
Vitalik Buterin
ff3679a3fe Added 'wif' as an export format 2014-01-08 18:51:33 -05:00
Vitalik Buterin
1f33b7a291 fixed getBitcoinAddress 2014-01-08 18:41:36 -05:00
Vitalik Buterin
f58543b81a Made return work 2014-01-08 18:31:03 -05:00
Vitalik Buterin
7b19ba5811 Added pubkey import and bin export 2014-01-08 17:13:26 -05:00
Vitalik Buterin
6edea532ba merge 2014-01-04 13:28:27 -05:00
Vitalik Buterin
30e8b572d6 Added deterministic signing and added a public key class. Note that getPub should now be replaced with getPub().export('bytes') 2014-01-04 13:26:03 -05:00
Vitalik Buterin
02a8db111b Added version to getBitcoinAddress 2014-01-02 20:33:23 -05:00
vbuterin
2a16cd9391 Merge pull request #4 from shesek/fix-compressed-signature
Fix signing with compressed keys
2013-12-12 10:43:15 -08:00
vbuterin
eceee254d2 Merge pull request #6 from caedesvvv/master
Bugfixes and tests for bip32
2013-12-12 10:43:00 -08:00
Pablo Martin
f9cbcbeb2b missing BIP32_PRIME definition in bip32 tests. 2013-12-12 17:46:39 +01:00
Pablo Martin
14803d0538 fix check for public key when making a private derivation. 2013-12-12 17:25:29 +01:00
Pablo Martin
26e5914be2 fix in pubkey deserialization code. 2013-12-12 17:19:31 +01:00
Pablo Martin
740a0fcb7d test vectors for bip32. 2013-12-12 11:14:27 +01:00
Pablo Martin
9fd46c22fe missing modulo operation. 2013-12-12 11:13:35 +01:00
vub
4abcdbd7af Created mkSendToOutputs method 2013-12-02 21:10:14 -05:00
vub
b3e7caada7 Removed useless functions from util 2013-12-01 22:27:13 -05:00
vub
0ef704574d Merge branch 'master' of github.com:vbuterin/bitcoinjs-lib 2013-12-01 22:24:51 -05:00
vub
1780f4a98f Updated deterministic wallet; theoretically works now if properly combined with server 2013-12-01 21:52:07 -05:00
Nadav Ivgi
0a075573ed Fix signing with compressed keys
calcPubkeyRecoveryParam always assumed a non-compressed key, and was comparing
the address generated from a non-compressed public key against the original
address generated from the compressed public key.

This commit fixes it by passing the entire pubkey object, and configuring the
generated address to use the same compressed setting as the original one.
2013-11-28 21:04:32 +02:00
vbuterin
c019e41b7b Merge pull request #2 from shesek/master
Support Numbers in formatValue
2013-11-24 06:37:09 -08:00
Nadav Ivgi
df88e93849 Support Numbers in formatValue 2013-11-24 05:25:08 +02:00
vub
397de49089 Made it process multisig addresses correctly 2013-11-20 16:43:14 -05:00
vub
a2ccfc66a0 compiled 2013-11-20 13:01:04 -05:00