Daniel Cousens
aae5db6a59
ECPair/HDNode: missing version from list is Unknown, not Invalid
9 years ago
Daniel Cousens
bdb0dd4a17
HDNode/tests: add testing for invalid network version from networks list
9 years ago
Karel Bilek
6a74eb6993
Renaming Path to Bip32Path, invalid to fixtures
Only thing I haven't been able to do is to add "undefined" to fixtures. So I could not properly test
that node.derivePath() properly fails as it should. However, I added "null" there, and "null" and "undefined"
behave in similar way in JavaScript, so that should catch that.
9 years ago
Karel Bilek
d2b43f1dfe
Validating path
Again through typeforce
9 years ago
Karel Bilek
182698f53d
Using parseInt instead of + in path parsing
+ can cause issues - +"" is 0. parseInt("", 10) is NaN, which is better (since it causes typeforce to throw).
9 years ago
Karel Bilek
7defe6fe4c
Adding path derivation
The argument is path of either numbers or strings.
String with "'" at the end signifies hardened path.
9 years ago
Karel Bilek
4a72001335
Typechecking indexes
As a consequence, it will not allow accidentally double-hardened indexes.
It also won't allow strings or forgotten parameters.
9 years ago
Karel Bílek
fbcb478560
Adding function to decide if HDNode is public
Public === neutered. Private === not neutered
9 years ago
Daniel Cousens
daafb9794e
ECPair/HDNode: adds getNetwork
9 years ago
Daniel Cousens
57d0ea84a2
HDNode: adds getPublicKeyBuffer
9 years ago
Daniel Cousens
923266672b
HDNode: add sign/verify
9 years ago
Daniel Cousens
888393fa8f
tests: add HDNode fromSeed throwing tests
10 years ago
Daniel Cousens
322ade58e4
revert 4b825bf
10 years ago
Daniel Cousens
4b825bf2a8
HDNode: stop exposing constants
10 years ago
Daniel Cousens
b12f559b85
HDNode: consistent capitalization in comments
10 years ago
Daniel Cousens
e3f21ebeb2
HDNode: avoid creating multiple buffers
10 years ago
Daniel Cousens
5d2abb523e
HDNode: use typeforce.tuple for arguments
10 years ago
Daniel Cousens
56160622ca
adhere to standard 5.0.0
10 years ago
Daniel Cousens
f47decaa2f
HDNode: adopt new strict network list parameters
10 years ago
Daniel Cousens
bdf92f73b4
HDNode: use throw over assert
10 years ago
Daniel Cousens
97c4de9da6
*: throw new Error over assert(false, ...
10 years ago
Daniel Cousens
e106d02731
standard formatting fixes
10 years ago
Daniel Cousens
4c8b0f38ea
replace ECKey/ECPubKey with ECPair
10 years ago
Daniel Cousens
b5c42303ff
crypto: use packages directly
10 years ago
Daniel Cousens
8d3686d046
remove deprecated functionality
11 years ago
Daniel Cousens
0bba21546f
various: more standard-format artifact fixes
10 years ago
Daniel Cousens
399803affa
use standardjs formatting
10 years ago
Daniel Cousens
9daf937e93
tests: add API consistency and tests for #366
10 years ago
Sjors Provoost
8a38a24b9f
Allow constructing HDNode from an ECPubKey.
10 years ago
Daniel Cousens
e42c497a3c
package: use typeforce
10 years ago
Daniel Cousens
a66773b5f5
tests/integration: add HDNode private key recovery example
10 years ago
Daniel Cousens
7ef134436e
ecdsa/HDNode: use node crypto for Hmacs
10 years ago
Daniel Cousens
b6017b0fae
HDNode: move isPrivate logic
10 years ago
Daniel Cousens
311df7e406
HDNode: add optional network flag to import functions
10 years ago
Daniel Cousens
a8459818e3
HDNode: avoid walking bip32 object
10 years ago
Daniel Cousens
307ceb9026
HDNode: use === over ==
10 years ago
Daniel Cousens
ef1eb04905
HDNode: move var declaration out of branches
11 years ago
Daniel Cousens
35542e115d
types: enforce consistent type checking
11 years ago
Daniel Cousens
a58088795f
HDNode: indicate 2.x.y removal of Buffer interop
11 years ago
Daniel Cousens
6b429493f8
hdnode: add deprecation message for isPrivate
11 years ago
Daniel Cousens
9d92b6a1a8
HDNode: add neuter functionality
11 years ago
Daniel Cousens
e69ba7ce76
HDNode: assert chain code length
11 years ago
Daniel Cousens
d168bbda43
HDNode: missing space in assertion message
11 years ago
Daniel Cousens
56d9ea6618
HDNode: fix error spelling
11 years ago
Daniel Cousens
ddcde038d0
HDNode: enforces sane seed lengths
11 years ago
Daniel Cousens
13c2d377e7
package: use bs58check
11 years ago
Daniel Cousens
f42993297c
ecurve: upgrade to 0.9.0
11 years ago
Daniel Cousens
4ce9015f3b
use ecurve instead of custom ec
11 years ago
Daniel Cousens
eb3a6bcb31
all: rename D to d as per SEC convention
11 years ago
Daniel Cousens
28dc390377
EC/Key: use network object consistently
11 years ago