Commit Graph

12 Commits

Author SHA1 Message Date
Manuel Araoz e9fa7e36ce remove alert 2014-04-29 14:45:08 -03:00
Manuel Araoz ac719345e8 add tests for BIP32 2014-04-29 14:37:37 -03:00
Manuel Araoz 6cf690afcc improve BIP32 error message 2014-04-29 12:43:29 -03:00
Ryan X. Charles 7f348ca0bd Move BigNumber to internal
...no longer relies on Manuel's repo hostig a version of "bignum" that actually
contained bignumber.js. This moves bignumber.js internally and removes bignum
from the browser build process. Also adds a bitcore.Bignum that links to the
right thing. In node, browser.Bignum is require('bignum'). And in the browser,
bitcore.Bignum is is now Bignumber.js (same as before ... except bignumber.js
is now inside bitcore).
2014-04-28 18:00:59 -04:00
Ryan X. Charles 350f6ae998 Key should make sure new privkey is less than N
...this involves adding a Curve class, and significant refactoring to make this
possible in a clean way.
2014-04-23 21:15:55 -03:00
Ryan X. Charles ba692aaa20 add new SecureRandom class that does the right thing
Generating random numbers properly depends on the platform. The new
getRandomBuffer method does the right thing on the right platform. It will
sometimes fail due to insufficient entropy. The getPseudoRandomBuffer class is
also provided that will never fail, but it is not cryptographically secure and
should not be used for keys.
2014-04-22 22:18:59 -03:00
Ryan X. Charles 86bb67b76d remove unnecessary bignum conversion 2014-04-22 17:45:08 -03:00
Ryan X. Charles 6a4387e768 allow creating blank BIP32 by passing in null 2014-04-22 17:42:50 -03:00
Ryan X. Charles d52e8ac8ed remove multiple concats with one, more efficient, concat 2014-04-22 17:27:01 -03:00
Ryan X. Charles d54fa570a2 default BIP32 to livenet 2014-04-22 12:25:05 -03:00
Eric Martindale a2d616da5b Project reorganization. 2014-04-13 13:28:42 -07:00
Eric Martindale f3b1c2d292 Cleanup main directory. 2014-04-13 13:14:27 -07:00