matiu
59002ff24d
updates lodash to v4
7 years ago
Emilio Almansi
97cd3913e0
Revert "Merge pull request #160 from matiu/cash"
This reverts commit b5c4f76799
, reversing
changes made to 5feb9e547c
.
7 years ago
matiu
ad3975da83
updates lodash to v4
7 years ago
Gabe Gattis
7cdee7d1a5
remove hdkeycache
8 years ago
Gabe Gattis
1b2c41978f
revert behavior of derive
8 years ago
Gabe Gattis
a9aeada69e
remove hdkeycache
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
809ff1461e
Restore error when trying to derive a hardened path with HDPublicKey.
- Restores InvalidIndexCantDeriveHardened error in spec
- Passes hardened argument in HDPublicKey (in case the feature is attempted to be used similarly to HDPrivateKey)
- Fixes undefined error with InvalidLength
- Fixes tests to check for the error type
- Various formatting cleanup improvements
10 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
Braydon Fuller
8ff26bb260
Fixes for various formatting issues and typos.
10 years ago
eordano
a07d90dfbf
Fix error on public key for hdpublickey
10 years ago
eordano
9c3170cb3a
HDPublicKey: Add precondition checks for static methods
10 years ago
Esteban Ordano
36d854b255
HDPublicKey: Fix JSDocs
10 years ago
Esteban Ordano
69b466470a
HDKeys: Return a copy buffer instead of the original instance
10 years ago
Esteban Ordano
7a73f582b4
HDKeys: add toBuffer/fromBuffer to HDPublicKey
10 years ago
Yemel Jardi
e57d02c03c
Use define immutable helper
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
Yemel Jardi
0beed6efa4
Refactor HDPublicKey path validation
10 years ago
Yemel Jardi
2aa5c65945
Add validations to derivation path
10 years ago
Esteban Ordano
2006b3aae2
Add G7 methods to HDPublicKey
10 years ago
Manuel Araoz
6c518f1f45
refactoring interpreter
10 years ago
Braydon Fuller
6d42e01718
Fix formatting issue with examples
10 years ago
Esteban Ordano
c793559fa9
Fix bug on HD*Keys
10 years ago
Esteban Ordano
4433bd422b
Refactor gulpfile
10 years ago
Braydon Fuller
b13c4fb0c9
Added inspect prototype G5
10 years ago
Braydon Fuller
1c0caac8c3
HDKeys: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
162438d111
Block: Change utility naming
10 years ago
Braydon Fuller
94cc10b1a3
Changed *Json to *JSON and returned an object so that methods can be called from other toJSON methods without the double-stringification issue.
10 years ago
Braydon Fuller
c73c56f938
HDKeys: Modified to have immutable properties
10 years ago
Esteban Ordano
ea17a6ace1
Add a preconditions module, and refactor errors
100% code coverage for the preconditions module.
Usage:
```
$.checkState(something === anotherthing, 'Expected something to be
anotherthing');
$.checkArgument(something < 100, 'something', 'must be less than 100');
$.checkArgumentType(something, PrivateKey, 'something'); // The third
argument is a helper to mention the name of the argument
$.checkArgumentType(something, PrivateKey); // but it's optional (will
show up as "(unknown argument)")
```
10 years ago
Esteban Ordano
13fd2592fc
Add autogenerated errors
10 years ago
Esteban Ordano
803027353a
Change errors
10 years ago
Esteban Ordano
94f3f02210
Add missing javadocs
10 years ago
Esteban Ordano
a2a51ecc0c
Fix style: move each static function to an appropiate namespace
10 years ago
Esteban Ordano
53900f3196
Add cache to derivation
10 years ago
Esteban Ordano
4c0769fa09
100% test coverage on hdpublickey
10 years ago
Esteban Ordano
950ea6ed1a
Add public key
10 years ago