Commit Graph

28 Commits

Author SHA1 Message Date
Manuel Araoz
56c1e8c000 fix test for hdkey cache 2015-03-20 16:01:05 -03:00
eordano
89d78019d8 Fix bug on hdprivate key generation 2015-02-23 11:40:31 -03:00
eordano
eb8f59aa27 Drop duplicated code 2015-02-18 13:39:48 -03:00
eordano
9c3170cb3a HDPublicKey: Add precondition checks for static methods 2015-02-18 13:14:12 -03:00
eordano
0938eadab5 Add precondition checks to HDPrivateKey.from* 2015-02-18 13:14:12 -03:00
Manuel Aráoz
fe731371cf Merge pull request #1016 from yemel/fix/path-validation
Fix hd string path parsing
2015-02-11 12:54:00 -03:00
Manuel Araoz
edda8ea723 fix broken tests 2015-02-09 16:06:18 -03:00
Manuel Araoz
85e938ba72 improve code style 2015-02-09 15:40:06 -03:00
Esteban Ordano
7a73f582b4 HDKeys: add toBuffer/fromBuffer to HDPublicKey 2015-02-05 15:06:01 -03:00
Esteban Ordano
28a1eae0be HDKeys: add toBuffer/fromBuffer to HDPrivateKey 2015-02-05 15:06:00 -03:00
Yemel Jardi
3bd361e27a Fix hd string path parsing. 2015-01-28 18:13:38 -03:00
Braydon Fuller
9ba7eff9e0 Merge pull request #889 from yemel/fix/add-derivation-check
Add method for validating a derivation path
2015-01-07 10:24:23 -05:00
Yemel Jardi
f78ebeb46c Refactor HDPrivateKey path validation 2015-01-06 11:51:58 -03:00
Yemel Jardi
bb3064d336 fix typo 2015-01-02 18:03:40 -03:00
Yemel Jardi
98cfd646e7 Allow creating a new random testnet HDPrivate key 2015-01-02 18:01:21 -03:00
Yemel Jardi
2aa5c65945 Add validations to derivation path 2015-01-02 16:46:37 -03:00
Esteban Ordano
c3a178061c Adding G7 methods to HDPrivateKEy 2014-12-23 12:34:38 -03:00
Braydon Fuller
b13c4fb0c9 Added inspect prototype G5 2014-12-14 15:13:01 -05:00
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. 2014-12-12 12:06:39 -05:00
Braydon Fuller
c73c56f938 HDKeys: Modified to have immutable properties 2014-12-11 15:37:31 -05:00
Yemel Jardi
d584febea0 Fix tests 2014-12-10 17:50:46 -03:00
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)")
```
2014-12-10 11:56:38 -03:00
Esteban Ordano
13fd2592fc Add autogenerated errors 2014-11-30 09:47:44 -03:00
Esteban Ordano
803027353a Change errors 2014-11-30 09:47:44 -03:00
Esteban Ordano
a2a51ecc0c Fix style: move each static function to an appropiate namespace 2014-11-30 09:47:44 -03:00
Esteban Ordano
4c0769fa09 100% test coverage on hdpublickey 2014-11-30 09:47:44 -03:00
Esteban Ordano
edc5b24d69 100% test coverage for HDPrivateKey 2014-11-30 09:47:44 -03:00
Esteban Ordano
5728c30371 Add tests 2014-11-30 09:47:44 -03:00