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
Daniel Cousens
64e307b13f
HDWallet: rename to HDNode
11 years ago
Daniel Cousens
c340f5cf83
HDWallet: now export all information by default
11 years ago
Daniel Cousens
dca284a131
HDWallet: rename derivePrivate to deriveHardened
11 years ago
Daniel Cousens
29fbbaa58d
HDWallet: adds Public -> public tests
11 years ago
Daniel Cousens
99bb69bf20
HDWallet: moves hardened info to test data more explicitly
11 years ago
Daniel Cousens
4cec42a8d8
HDWallet: add to/fromHex tests
11 years ago
Daniel Cousens
533d61380a
HDWallet: improve testing coverage
11 years ago
Daniel Cousens
c0006c299f
HDWallet: use new constructor
11 years ago
Daniel Cousens
58dd86bda1
HDWallet: moves fromBuffer tests to data driven style
11 years ago
Daniel Cousens
799b69eb1e
HDWallet: use assert.throws
11 years ago