Commit graph

120 commits

Author SHA1 Message Date
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
vub
93e50e9433 Started work on wallet, and added hex serialization 2013-11-20 13:00:49 -05:00
vub
5e2a9f0c26 Added BIP32 support 2013-11-18 23:47:56 -05:00
vub
aa22b9d89e Added a new way of adding an output to a transaction 2013-11-02 06:51:27 -04:00
vub
a34bc9e2ea Many small improvements 2013-11-02 06:20:09 -04:00
vub
45ec63d2f1 Whoops... 2013-10-21 15:33:35 -04:00
vub
335d0dcd96 bugfix 2013-10-21 15:27:50 -04:00
vub
274112005f Beefed up TransactionIn constructor 2013-10-21 14:07:38 -04:00
vub
f53a4e3ffa Added sign with keys method to transaction and did lots of small cleanups 2013-10-21 14:00:31 -04:00
vub
917822541c Fixed serialization bug 2013-10-15 01:24:13 -04:00
vub
7bfd72c8c4 Replaced bigints with plain integers for transaction values 2013-10-14 07:41:21 -04:00
vub
c20dee5908 bytesToString bugfix 2013-10-11 13:19:44 -04:00
vub
4d9130c937 Added last commit to compile 2013-10-10 03:46:31 -04:00
vub
5377f0746f Hex private keys now work with Bitcoin.Key 2013-10-10 03:46:09 -04:00
vub
3d3421ce17 Removed browser-native option (gave me a bad result) 2013-10-08 15:28:48 -04:00
vub
65296f31f5 Fixed base64 encoding bug 2013-10-08 15:27:16 -04:00
vub
b8023389fd Reversed txhash 2013-10-08 13:41:20 -04:00
vub
7684c3f705 Let ECKeys be constructed from ECKeys 2013-10-08 07:52:48 -04:00
vub
117ecd1e29 Fixed bytesToNum bug 2013-10-08 07:44:03 -04:00
vub
8fb725f796 Made TransactionOut take numbers as input 2013-10-08 07:38:22 -04:00
vub
b41a4ecb91 Fixed address object creation bug 2013-10-08 07:13:05 -04:00
vub
2bfa783be2 Added hash flipping to serialization and deserialization 2013-10-08 07:05:21 -04:00
vub
50f6333b0e Changed i -> index in Transaction.prototype.sign 2013-10-08 06:48:31 -04:00
vub
038f8d5d99 Removed direct references to Bitcoin 2013-10-08 06:45:13 -04:00
vub
a753f069a5 Fixed bug in numToBytes and util -> conv 2013-10-08 06:34:15 -04:00
vub
eb62360a49 Replaced /convert with ./convert (bugfix) 2013-10-08 05:44:30 -04:00
vub
f95b08a576 Replaced Crypto.util and util (was a typo) with conv 2013-10-08 05:42:28 -04:00
vub
38ea108183 Bugfix 2013-10-08 05:38:00 -04:00
vub
44d740f84e Small bugfix 2013-10-08 05:35:19 -04:00
vub
cb70b4425b Substituted in numToBytes 2013-10-08 03:47:18 -04:00
vub
95b736b2a0 Added compiled version 2013-10-08 03:26:50 -04:00
vub
ff8152fe41 Added p2sh support for addOutput 2013-10-08 03:26:34 -04:00