Commit graph

54 commits

Author SHA1 Message Date
Daniel Cousens
2214ccfdd8 bufferutils: add varIntBuffer 2014-11-28 10:35:53 +11:00
Daniel Cousens
98bc1685b3 message: remove unnecessary verbosity 2014-10-10 19:24:16 +11:00
Daniel Cousens
1b57f0871d message: remove duplicate require 2014-10-10 19:23:42 +11:00
Daniel Cousens
4b52c42c91 Message: allow base64 strings as input 2014-08-20 09:14:04 +10:00
Daniel Cousens
92da7975e4 Network: use capitalization 2014-06-17 21:08:28 +10:00
Daniel Cousens
1f0a54fb41 ECSignature: rename parsing functions to parse* 2014-06-17 00:26:16 +10:00
Daniel Cousens
eb3d9a25f7 ecdsa: moved all signature encoding to ECSignature 2014-06-16 15:47:41 +10:00
Daniel Cousens
553ade1208 network: always use lowercase 2014-06-14 00:39:25 +10:00
Daniel Cousens
4ce9015f3b use ecurve instead of custom ec 2014-06-10 17:58:13 +10:00
Daniel Cousens
28dc390377 EC/Key: use network object consistently 2014-06-04 15:23:40 +10:00
Daniel Cousens
58fd12e66d ecdsa: always use signature object 2014-05-24 16:25:38 +10:00
Daniel Cousens
bcfd62fdb5 ecdsa: remove implicit ecparams 2014-05-24 00:48:31 +10:00
Daniel Cousens
2dec1375a1 ecdsa: use (r, s) values directly 2014-05-24 00:48:31 +10:00
Daniel Cousens
8d7408202f ecdsa: consistent parameter ordering 2014-05-24 00:48:31 +10:00
Daniel Cousens
a3f691bf7c ecdsa: parseSigCompact use Buffer API
parseSigCompact also now returns the correct recovert parameter without
the need to subtract the compression bit.
This makes it easier to use.
2014-05-18 17:52:49 +10:00
Daniel Cousens
db3ffe58d1 message: use serializeSigCompact 2014-05-18 17:52:49 +10:00
Daniel Cousens
6b5990c6e2 message: support alternate networks 2014-05-18 17:51:36 +10:00
Daniel Cousens
e27c97a791 ECPubKey/ECKey: separate to two files 2014-05-13 16:51:06 +10:00
Daniel Cousens
05e0d08098 BufferExt: rename to bufferutils 2014-05-13 16:46:12 +10:00
Daniel Cousens
02013beda9 Renames variables to be more verbose 2014-05-05 09:11:37 +10:00
Daniel Cousens
4716eb29bf Removes redundant convert functions 2014-05-04 17:31:47 +10:00
Daniel Cousens
df6ea8aea2 Removes toPaddedBuffer and extends toBuffer 2014-04-25 00:18:13 +10:00
Daniel Cousens
d8883e8d32 Adds BI.toPaddedBuffer and toBuffer 2014-04-24 07:22:23 +10:00
Daniel Cousens
1b46a10d2a magicHash now uses Buffers internally 2014-04-22 00:23:12 +10:00
Daniel Cousens
c44af2109e Uses typeof address === 'string' instead 2014-04-20 04:54:50 +10:00
Daniel Cousens
682ec133bb Migrates Address to stricter API subset 2014-04-18 17:12:29 +10:00
Daniel Cousens
b4f70dcdde Migrates ECKey to stricter API 2014-04-18 06:36:27 +10:00
Daniel Cousens
c99a576fbd Migrates all usage of crypto-js/sha256 to ./crypto 2014-04-08 23:07:46 +10:00
Wei Lu
93fe1b4c78 cosmetic standardization
[closes #56]
2014-03-31 11:47:47 +08:00
Wei Lu
161127d65a Merge branch 'msgvers-patch2' of github.com:dcousens/bitcoinjs-lib into dcousens-msgvers-patch2
Conflicts:
	src/message.js
2014-03-31 10:08:25 +08:00
Daniel Cousens
10dea421d5 Removes circular dependancy of ECKey 2014-03-29 17:50:50 +11:00
Daniel Cousens
bfc5924522 Compression is irrelevant in comparison 2014-03-29 17:31:27 +11:00
Daniel Cousens
669a58bbf8 Removes unnecessary SHA256 calculations 2014-03-29 17:27:10 +11:00
Daniel Cousens
78e91e8648 Further isolates failure tests and joins [un]/compressed key tests 2014-03-29 17:06:33 +11:00
Daniel Cousens
38f09b49e9 Now using Bytes consistently for signatures 2014-03-29 06:05:07 +11:00
Daniel Cousens
7ec046f797 Changes Message.*Message function names to Message.* 2014-03-29 06:03:43 +11:00
Daniel Cousens
373f668562 Adds version support to Message.verifyMessage 2014-03-28 16:44:00 +11:00
Jonathon Reesor
096f8c982e Cleaning up message.js 2014-03-26 21:00:08 -04:00
Daniel Cousens
b40374e332 Changes to new version-less ECKey API 2014-03-22 19:12:26 +11:00
Kyle Drake
7219c27413 Merge pull request #62 from bitcoinjs/compressed-sign
Fix sign/verify for with compressed keys
2014-03-11 12:12:52 -07:00
Andreas Brekken
08e75a82c9 Add whether pubkey recovered from sig is compressed. close #61 2014-03-11 18:28:04 +01:00
Andreas Brekken
f09890fed1 Determine whether key is compressed from the key itself. ref #61 2014-03-11 18:26:40 +01:00
Wei Lu
3d6b66e811 move convert methods from util to convert 2014-03-11 09:52:48 +08:00
Wei Lu
a281a5ab53 migrate crypto-js to 3.1.2 2014-03-09 09:49:24 +08:00
Andreas Brekken
3ef468ec8b Remove call to non-existant method ECPubKey.setCompressed 2014-01-11 13:56:48 +07: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
vub
5e2a9f0c26 Added BIP32 support 2013-11-18 23:47:56 -05:00
vub
e43d23235b Added some transaction methods, and removed all internal use of base64 2013-10-07 15:27:19 -04:00
Roman Shtylman
41f0027883 port message to common.js style and add tests 2013-03-02 12:28:13 -05:00
Roman Shtylman
0faac29134 start to split into node commonjs style modules
- no longer is the global Bitcoin used for modules
- cleaner and more maintainable code
- add more tests
2013-02-17 00:40:14 -05:00