Commit Graph

33 Commits

Author SHA1 Message Date
Esteban Ordano 73265d9089 Refactor network.js 2014-11-25 20:39:43 -03:00
Braydon Fuller 85ce140aeb Keys: Renamed Privkey to PrivateKey and Pubkey to PublicKey 2014-11-25 13:21:53 -05:00
Braydon Fuller 35d0cbc5a6 Keys: Modified interface of Pubkey and Privkey so that an instance can be relied upon as valid. 2014-11-25 12:30:52 -05:00
Braydon Fuller 23c1ed3599 Keys: Refactored to use Pubkey and Privkey and removed Keypair 2014-11-24 12:53:16 -05:00
Manuel Araoz 4508fb6765 fix references to encoding 2014-11-21 12:54:56 -03:00
Manuel Araoz 2bf1ed8f34 use strict to crypto 2014-11-20 12:16:27 -03:00
Ryan X. Charles 0eeba8eadb canonical BN notation 2014-09-17 15:22:52 -07:00
Ryan X. Charles 5f21059bf8 more convenient names 2014-09-17 15:20:01 -07:00
Ryan X. Charles eb34a16511 more convenient name 2014-09-17 15:17:54 -07:00
Ryan X. Charles 9473bdf9b0 more convenient name 2014-09-17 15:15:56 -07:00
Ryan X. Charles bd16eddf54 Key -> Keypair 2014-09-17 15:13:57 -07:00
Ryan X. Charles 7390b15f89 add set function to bip32 2014-09-17 15:11:16 -07:00
Ryan X. Charles 0641184e84 support string input in constructor 2014-09-17 15:02:11 -07:00
Ryan X. Charles c41419b6ef use buffer functions
...instead of adhoc uint functions
2014-09-17 14:49:17 -07:00
Ryan X. Charles 5da964739d remove unused base58 dependency 2014-09-17 14:44:16 -07:00
Ryan X. Charles 9e188574f7 base58check in extendedPrivateKeyString 2014-09-17 14:43:14 -07:00
Ryan X. Charles 70d9f0db93 use base58check in extendedPublicKeyString 2014-09-17 14:41:51 -07:00
Ryan X. Charles 70659ad9d4 use base58check in fromString 2014-09-17 14:40:29 -07:00
Ryan X. Charles 334c443d8b "gc" was some find-replace error from earlier 2014-09-17 14:37:53 -07:00
Ryan X. Charles af6932a313 console.log?
this must have been a remnant of some earlier debugging, either in bitcore2 or
in bitcore.
2014-09-17 14:35:20 -07:00
Ryan X. Charles 32fabd0c0f Key -> Keypair
"Keypair" is a more explanatory name, and also should be less confused with
other kinds of keys (particularly "cipher keys", which are the keys used in
symmetric block ciphers, especially AES).
2014-08-29 14:18:56 -07:00
Ryan X. Charles 2ef5e2f003 network -> networkstr 2014-08-28 17:55:33 -07:00
Ryan X. Charles 109f31cfdb Privkey.prototype.set 2014-08-28 17:26:56 -07:00
Ryan X. Charles 3919b24685 make bip32 mostly compatible with the rest of the lib
the constructor shouldn't do much. just set some varibles. in this case, i have
yet to write the code that sets the varibles. but better this than
autogenerating a new random BIP32. for that, call fromRandom()
2014-08-28 15:38:29 -07:00
Ryan X. Charles f3dcb5bba1 typo in error message 2014-08-24 14:31:30 -07:00
Ryan X. Charles 4cff6a41f4 remove "(classname): " from tests
...to reduce the burden on writing new code
2014-08-20 13:03:07 -07:00
Ryan X. Charles f6f7a870fb allow creating objects without using "new" 2014-08-13 18:55:33 -04:00
Ryan X. Charles a2e471ae9e more consistency: n -> bn, p -> point 2014-08-13 15:23:06 -04:00
Ryan X. Charles cc310fbc23 add bip32: to error messages
...to be consistent with the rest of the library
2014-08-09 23:54:08 -07:00
Ryan X. Charles efbebb3528 throw error if deriving an invalid path string
...the path consists "m", numbers, /, and ' characters
2014-08-09 23:52:19 -07:00
Ryan X. Charles 7def2609ec add toString method for bip32
...so that it is consistent with the rest of the library
2014-08-09 23:29:05 -07:00
Ryan X. Charles be37f5e37f improve bip32 interface slightly 2014-08-09 23:16:15 -07:00
Ryan X. Charles 9649cc58e9 bip32
code from bitcore. original implementation derived from here:
https://github.com/sarchar/brainwallet.github.com/blob/bip32/js/bip32.js
2014-08-09 22:19:28 -07:00