Daniel Cousens
f1ab151c31
tests: use safe-buffers throughout
8 years ago
Daniel Cousens
4d6928a68b
tests: fix shadowed/unused variable warnings
8 years ago
Daniel Cousens
405c005802
tests: rename description to path
8 years ago
Daniel Cousens
0b3a042ca2
HDNode: simplify path derivation
8 years ago
Daniel Cousens
1247061d05
tests: v.depth was added to fixtures
8 years ago
Daniel Cousens
5e2e72dd7a
tests: add leading zero test fixture
8 years ago
Daniel Cousens
04a227fab1
tests: rework HDNode tests, consistent *Base58 usage, check index/depth too
8 years ago
Braydon Fuller
078318094d
test: include derivation test when private key has leading zeros
8 years ago
Daniel Cousens
5dcf38c0c5
HDNode: clearer error for bad path type
8 years ago
Daniel Cousens
b91cfcf196
package: update to typeforce 1.8.7
8 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
755eac5bbd
Doubling down on the path testing
Maybe overdoing it a bit :)
9 years ago
Karel Bilek
7a61526705
Testing path derivation
I am taking description field for the 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 Bilek
bfd294c31e
Adding tests for isNeutered
9 years ago
Karel Bilek
3df2976e2c
Using private key for testing neuterization
To test removing private information, it's probably better to start with them :)
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
9 years ago
Daniel Cousens
322ade58e4
revert 4b825bf
9 years ago
Daniel Cousens
4b825bf2a8
HDNode: stop exposing constants
10 years ago
Daniel Cousens
5d2abb523e
HDNode: use typeforce.tuple for arguments
10 years ago
Daniel Cousens
f47decaa2f
HDNode: adopt new strict network list parameters
10 years ago
Daniel Cousens
ec9cea0cf1
tests: use strictEqual always
10 years ago
Daniel Cousens
ab66c983af
tests: check HDNode stores keyPair/chainCode
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
57856a0a25
tests: test autodetect in networks, fixed networks in HDNode
10 years ago
Daniel Cousens
8d3686d046
remove deprecated functionality
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
Daniel Cousens
1ac79b8327
tests: add test for non-matching network
10 years ago
Daniel Cousens
311df7e406
HDNode: add optional network flag to import functions
10 years ago
Daniel Cousens
6b429493f8
hdnode: add deprecation message for isPrivate
11 years ago
Daniel Cousens
2fbd9449f5
tests: use neutered rather than import/export
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
56d9ea6618
HDNode: fix error spelling
11 years ago
Daniel Cousens
ddcde038d0
HDNode: enforces sane seed lengths
11 years ago
Daniel Cousens
92da7975e4
Network: use capitalization
11 years ago
Daniel Cousens
f42993297c
ecurve: upgrade to 0.9.0
11 years ago
Daniel Cousens
553ade1208
network: always use lowercase
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
943621f466
Address/HDNode: fix test descriptions
11 years ago
Daniel Cousens
6a73bc02f5
HDNode: rename priv/pub to privKey/pubKey
11 years ago
Daniel Cousens
dca193be4e
HDNode: adds neutered test examples
11 years ago