Daniel Cousens
20a026aefe
scripts/tests: add witness* scripts
9 years ago
Daniel Cousens
4898cc7b67
tests: add tests for Transaction.hashForSignature
9 years ago
Daniel Cousens
d58e09a3a7
Block: add checkMerkleRoot
9 years ago
Daniel Cousens
ea2a7449ad
tests: add isCoinbase tests and flags to fixtures
9 years ago
Daniel Cousens
9db67bb3b1
Cleanup for #540 ( #551 )
* Txbuilder: early exit as soon as possible
* Txbuilder: prefer function declaration over variable
* TxBuilder: extract extractFromOutputScript
* TxBuilder: extract buildFromInputData
9 years ago
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
Daniel Cousens
9e32c892ef
ECPair/tests: always use WIF for error throwing
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
7a61526705
Testing path derivation
I am taking description field for the path.
9 years ago
Ruben de Vries
b601f50c70
fixed another test where TX was signed before locktime was set
9 years ago
Daniel Cousens
6c0745adce
TxBuilder: add setLockTime
9 years ago
Ruben de Vries
ccec864785
locktime and version were set too late in test scenario and not included when signing (the test scenario).
9 years ago
Daniel Cousens
382409c575
tests: rm unused fixtures
9 years ago
Daniel Cousens
059f48b0c4
script_number: add impl/tests
9 years ago
Daniel Cousens
bac700f52c
block: use buffer, faster, verified
9 years ago
Daniel Cousens
86b51b2d62
add Block.calculateTarget, use Buffer comparison rather than bigi
9 years ago
Daniel Cousens
15227d39bf
tests: add more test fixtures for blocks
9 years ago
Daniel Cousens
50f381fb5c
tests: add non-BIP62 compliant is*Output fixtures
9 years ago
Daniel Cousens
a686817f3c
tests: add m/n is data failing tests
9 years ago
Kirill Fomichev
eae8bcf676
fix isMultisigOutput
9 years ago
Daniel Cousens
945276fbef
ECPair: move throwing constructor tests to fixtures
9 years ago
Daniel Cousens
74e7d1edbc
tests: add further tests for #404
9 years ago
Daniel Cousens
0f9af83aa0
tests: add 2-of-3 multisig fixture
9 years ago
Daniel Cousens
262be17976
tests: simplify crypto fixtures
9 years ago
Daniel Cousens
86b2cf75ce
tests: add failing test for undefined hashType
10 years ago
Daniel Cousens
4be502a1bd
tests: add non-canonical pubkey fixtures
10 years ago
Daniel Cousens
e1cb5e6152
amend ECSignature tests to reflect BIP66 module
10 years ago
Daniel Cousens
efacd387be
ECPair: extract WIF to 3rd party module
10 years ago
Daniel Cousens
6ec687deba
rename scripts to script
10 years ago
Daniel Cousens
706f5d7a9c
scripts: adds tests for *HashOutput
10 years ago
Daniel Cousens
e2abe2b3af
merge Script/scripts
10 years ago
Daniel Cousens
fd7f0b0ef8
address: use input first errors, easier detection
10 years ago
Daniel Cousens
d85df4a6d6
TransactionBuilder: remove use of assert
10 years ago
Daniel Cousens
254b670427
add types
10 years ago
Daniel Cousens
7a6936674e
tests: add explicit test for inconsistent network exception
10 years ago
Daniel Cousens
f47decaa2f
HDNode: adopt new strict network list parameters
10 years ago
Daniel Cousens
6443e4c2b6
ECPair: support strict network syntax
10 years ago
Daniel Cousens
bdf92f73b4
HDNode: use throw over assert
10 years ago
Daniel Cousens
1a4000cc98
address: throw Invalid address instead of hash/version for fromBase58Check
10 years ago
Daniel Cousens
13f414c122
remove Address constructor
10 years ago
Daniel Cousens
e42bd133fe
tests: clearer length bytes
10 years ago
Daniel Cousens
e8fd3887da
ECSignature: account for SIGHASH being ignored
10 years ago
Daniel Cousens
92f9342c69
adhere more closely to BIP66
10 years ago
Daniel Cousens
2ffa041afa
fixtures: ECDSA, fix r=s=-n to be accurate
10 years ago
Daniel Cousens
b5ff9db8fd
fixtures: ECDSA signatures should be DER encoded if possible
10 years ago
Daniel Cousens
5b95fd6ae3
fixtures: ECDSA, fixtures were mixed decimal/hex
10 years ago
Daniel Cousens
4c030be343
ecdsa: remove unused verifyRaw
10 years ago
Daniel Cousens
4c8b0f38ea
replace ECKey/ECPubKey with ECPair
10 years ago
Daniel Cousens
7559ee880d
add ECPair module
10 years ago