Commit graph

313 commits

Author SHA1 Message Date
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
bc37e65014 Enforces Array input for deterministicGenerateK 2014-04-23 06:28:00 +10:00
Kyle Drake
1b66976d92 Merge pull request #146 from dcousens/magictests
MagicHash Tests
2014-04-21 09:39:50 -07:00
Kyle Drake
21aa517cd2 Merge pull request #143 from dcousens/multisigfix
Multi-sig ScriptSig Support
2014-04-21 09:39:03 -07:00
Daniel Cousens
ae60e6eb95 Replacse JSBN with bigi 2014-04-22 02:19:30 +10:00
Daniel Cousens
96ebb65099 Removes ecdsa.getBigRandom 2014-04-22 02:04:56 +10:00
Daniel Cousens
f5ce83beca Adds working implementation of Script.createP2SHMultisigScriptSig 2014-04-22 00:28:13 +10:00
Daniel Cousens
fb6c76a976 Merges Buffer refactorings from base58-native by Stephen Pair 2014-04-22 00:24:20 +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
64dc11486c Removes resolved TODO 2014-04-20 04:49:04 +10:00
Daniel Cousens
92f1c3e319 Fixes Transaction.addOutput() param handling to match documentation
Now (horrendously) supports other networks
2014-04-20 04:47:56 +10:00
Daniel Cousens
f3a55f63dc Assert uses strictEqual instead of direct comparison 2014-04-20 04:39:29 +10:00
Daniel Cousens
1d1306b054 Removes Address.fromPubKey and improves test vectors 2014-04-20 04:38:33 +10:00
Daniel Cousens
eae613d244 Adds error messages and better version checking 2014-04-18 17:12:29 +10:00
Daniel Cousens
682ec133bb Migrates Address to stricter API subset 2014-04-18 17:12:29 +10:00
Wei Lu
701af74ade Merge pull request #142 from dcousens/asserts
Adds assertion error messages for HDWallet
2014-04-18 09:59:06 +08:00
Wei Lu
06cd6a698b Merge pull request #139 from dcousens/eckeystrict
Migrates ECKey to stricter API
2014-04-18 09:56:41 +08:00
Daniel Cousens
5adaa7dd54 Prefer Array.prototype.slice over map 2014-04-18 06:43:59 +10:00
Daniel Cousens
de59f6d3ac Adds assertion error messages for HDWallet 2014-04-18 06:43:14 +10:00
Daniel Cousens
ca4ba91d9c Cleans up ECKey error handling 2014-04-18 06:36:34 +10:00
Daniel Cousens
b4f70dcdde Migrates ECKey to stricter API 2014-04-18 06:36:27 +10:00
Kyle Drake
669444cb10 Merge pull request #135 from greenaddress/low-s-signatures
Uses low 's' values for signatures
2014-04-17 08:51:40 -07:00
Daniel Cousens
505e33c942 Changes netstr to networkString 2014-04-17 19:49:03 +10:00
GreenAddress.it
d7c2e4d5a5 Uses low 's' values for signatures 2014-04-17 06:05:41 +02:00
Kyle Drake
3219e5e727 Merge pull request #132 from dcousens/remmisc
Removes test/misc.js and moves tests to appropriate location
2014-04-16 14:25:35 -07:00
Daniel Cousens
ddea4b176b Moves derivation math out into the open 2014-04-17 06:45:57 +10:00
Daniel Cousens
bacf7e7ae2 Removes format dependency 2014-04-17 06:45:29 +10:00
Daniel Cousens
814aa9e552 HDWallet now uses Buffers internally 2014-04-17 06:45:24 +10:00
Daniel Cousens
a4ab75d560 Renames network parameter to netstr
This should make the intent clearer.
This commit also catches the `null` case for the seed parameter.
2014-04-17 06:09:45 +10:00
Daniel Cousens
bc05828fbc Adds Buffers as input parameters 2014-04-17 06:07:06 +10:00
Daniel Cousens
f047afef2d Updates network.js constant names 2014-04-17 05:50:59 +10:00
Daniel Cousens
56336b9c2b Removes use of convert module 2014-04-17 04:16:51 +10:00
Daniel Cousens
a689c6fc9a Renames ecparams to curve to avoid confusion 2014-04-16 21:13:54 +10:00
Daniel Cousens
8a9a377d70 Merge pull request #129 from dcousens/indexclean
Cleanup of Index.js
2014-04-14 16:21:54 +10:00
Daniel Cousens
db115e1b27 CryptoJS no longer exported by default 2014-04-14 16:19:17 +10:00
Daniel Cousens
addf4528d4 Removes Key module (use ECKey) 2014-04-14 15:45:31 +10:00
Wei Lu
4b86b1c7b8 clean up comments & extract methods
[follow-up #125]
2014-04-14 12:53:12 +08:00
Daniel Cousens
82a17de5c4 Orders modules by name 2014-04-14 13:15:43 +10:00
sidazhang
aa43e98ac0 Aligning type naming with bitcoind and fixed pubkeyhash bug 2014-04-11 15:20:42 -07:00
Daniel Cousens
1f0fb90213 Pads zeros in toBytes output, fixes #121 2014-04-09 18:06:50 +10:00
Daniel Cousens
6de94856e3 Makes ECDSA capitalization consistent 2014-04-09 04:11:13 +10:00
Wei Lu
dd509d05cf Merge pull request #114 from dcousens/secsimpl
Removal of curveFpDecodePointHex
2014-04-08 22:24:33 +08:00
Daniel Cousens
aa8d86e6a4 Hash160 now outputs a buffer 2014-04-08 23:44:55 +10:00
Daniel Cousens
c99a576fbd Migrates all usage of crypto-js/sha256 to ./crypto 2014-04-08 23:07:46 +10:00
Daniel Cousens
81d9c8e759 Renames util.js to crypto.js 2014-04-08 22:00:28 +10:00
Daniel Cousens
a4c2cc6dd4 Removes pointless error utility function 2014-04-08 21:53:47 +10:00
Daniel Cousens
7451c54cc6 Removes curveFpDecodePointHex 2014-04-07 13:51:12 +10:00
Daniel Cousens
39abb2b9f9 Stops using decodeFromHex 2014-04-07 13:49:53 +10:00