Commit Graph

8 Commits

Author SHA1 Message Date
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