Gabe Gattis
1b2c41978f
revert behavior of derive
8 years ago
Braydon Fuller
d32ae41adc
Change name of derive to deriveChild
This is to avoid any accidental upgrades to a bugfixed version without awareness of the change.
8 years ago
Braydon Fuller
d0e3f84104
Handle invalid public key derivation rather than throw error
8 years ago
Braydon Fuller
0906d988ca
Handle edge case that invalid private key is derived
8 years ago
Braydon Fuller
b79a9b274a
Fix implementation of hd derivation to be bip32 compliant
https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#child-key-derivation-ckd-functions
8 years ago
Braydon Fuller
a50fccef4d
Changes behavior of `toJSON` to work as expected with `JSON.stringify`
- see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON%28%29_behavior
- Updates CONTRIBUTING with changes to Stardard Methods
- Aliases toJSON for toObject
- Removes all `fromJSON` methods, and many cases replaces with `fromObject`
- Constructors expect an object parsed via `JSON.parse` for JSON input
10 years ago
Manuel Araoz
56c1e8c000
fix test for hdkey cache
10 years ago
Manuel Araoz
7da4c7925a
lazy calc for xpubkey in HDPrivateKey
10 years ago
eordano
eb8f59aa27
Drop duplicated code
10 years ago
Braydon Fuller
8b505f0cfa
Fixed tests to handle a `defaultNetwork` change
- Updated tests to work for both 'testnet' and 'livenet' as the default network.
- Fixed a bug in Address where the network property was being set as a string.
- Fixed a bug in HDKeys to handle serialized keys when the defaultNetwork changed.
10 years ago
Esteban Ordano
950ea6ed1a
Add public key
10 years ago
Esteban Ordano
ad74b549a1
Fixes interfaces
10 years ago
Esteban Ordano
5728c30371
Add tests
10 years ago