Commit Graph

11 Commits

Author SHA1 Message Date
Ryan X. Charles 91181de234 add new Point class and update BIP32 to use it
The Point class will ultimately be an all purpose tool for dealing with points
on the secp256k1 tool. For now, it just needs to have the ability to add two
points together, and work both in node and the browser, so that it can be used
for BIP32.
2014-03-27 18:59:47 -04:00
Ryan X. Charles 5c21866fe2 remove commented-out code 2014-03-23 15:32:52 -07:00
Ryan X. Charles a4393c0657 update BIP32 to be able to derive pubkeys
...using the new addCompressed interface in Key.js
2014-03-23 15:12:52 -07:00
Ryan X. Charles 78a753a2d4 move version constants to networks.js
...with all the other network-specific constants.
2014-03-22 16:31:38 -07:00
Ryan X. Charles b7550fc862 add convenience constructor for making new bip32s
Added the ability to create a new master bip32 with new private key and chain code. The way this works is like this:

var bip32 = new BIP32('mainnet');

or:

var bip32 = new BIP32('testnet');
2014-03-22 16:16:58 -07:00
Ryan X. Charles 0677ae46f8 remove obsolete commented-out code 2014-03-22 16:16:58 -07:00
Ryan X. Charles ba59d97a73 make things work in the browser by fixing sha512
...had to use jsSHA package to do SHA512 in the browser. Unfortunately it is
quite slow compared to node.
2014-03-22 16:16:58 -07:00
Ryan X. Charles 22b57feb7b Get test vector 1 working in node 2014-03-22 16:16:22 -07:00
Ryan X. Charles c5c0ecc918 significant progress towards bitcore compatibility
Cryptography updated to use bitcore methods rather than bitcoinjs.
2014-03-22 16:14:48 -07:00
Ryan X. Charles 31a024a20b bring formatting in line with bitcore standards 2014-03-22 14:28:10 -07:00
Ryan X. Charles a6b98ee716 unworking, direct copy of BIP 32 implementation
This BIP 32, or HD wallet implementation is directly copied from this repo:

https://github.com/sarchar/brainwallet.github.com/tree/bip32

It does not actually work with this commit, since it is designed to work with
bitcoin-js in the browser. It needs to be modified to work with bitcore in node
and the browser.
2014-03-14 16:52:48 -04:00