Braydon Fuller
8ff26bb260
Fixes for various formatting issues and typos.
2015-07-29 10:11:40 -04:00
eordano
a07d90dfbf
Fix error on public key for hdpublickey
2015-02-23 12:10:51 -03:00
eordano
9c3170cb3a
HDPublicKey: Add precondition checks for static methods
2015-02-18 13:14:12 -03:00
Esteban Ordano
36d854b255
HDPublicKey: Fix JSDocs
2015-02-06 09:38:21 -03:00
Esteban Ordano
69b466470a
HDKeys: Return a copy buffer instead of the original instance
2015-02-05 15:06:01 -03:00
Esteban Ordano
7a73f582b4
HDKeys: add toBuffer/fromBuffer to HDPublicKey
2015-02-05 15:06:01 -03:00
Yemel Jardi
e57d02c03c
Use define immutable helper
2015-01-08 10:57:46 -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
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.
2015-01-06 18:51:31 -05:00
Yemel Jardi
0beed6efa4
Refactor HDPublicKey path validation
2015-01-06 12:08:42 -03:00
Yemel Jardi
2aa5c65945
Add validations to derivation path
2015-01-02 16:46:37 -03:00
Esteban Ordano
2006b3aae2
Add G7 methods to HDPublicKey
2014-12-23 12:23:35 -03:00
Manuel Araoz
6c518f1f45
refactoring interpreter
2014-12-19 18:28:52 -03:00
Braydon Fuller
6d42e01718
Fix formatting issue with examples
2014-12-18 17:07:01 -05:00
Esteban Ordano
c793559fa9
Fix bug on HD*Keys
2014-12-17 12:31:04 -03:00
Esteban Ordano
4433bd422b
Refactor gulpfile
2014-12-16 17:21:41 -03:00
Braydon Fuller
b13c4fb0c9
Added inspect prototype G5
2014-12-14 15:13:01 -05:00
Braydon Fuller
1c0caac8c3
HDKeys: Added toObject method and changed toJSON to return a string
2014-12-12 18:39:16 -05:00
Braydon Fuller
162438d111
Block: Change utility naming
2014-12-12 12:06:39 -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
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
94f3f02210
Add missing javadocs
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
53900f3196
Add cache to derivation
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
950ea6ed1a
Add public key
2014-11-30 09:47:44 -03:00