Daniel Cousens
87470de22f
tests: check that HDNode pubKey/privKey is initialized
10 years ago
Daniel Cousens
35c3693849
integration: use an rng for the example over mocking
10 years ago
Daniel Cousens
9fddacd448
tests: fix standard format adherence
10 years ago
Wei Lu
6775e1a9af
crypto: fix test randomBytes stub
10 years ago
Daniel Cousens
2fc4cc31c9
tests: rename network->networks
10 years ago
Daniel Cousens
d9b083f66e
networks: remove failing tests, cannot be supported anyway
10 years ago
Daniel Cousens
e31b5de3b1
tests: test autodetect in networks, fixed networks in HDNode
10 years ago
Daniel Cousens
c6fc8672f1
tests: fix standard styling
10 years ago
Daniel Cousens
c0d9424e1c
tests: ignore txHexIncomplete, instead check scriptSig after each signature
10 years ago
Daniel Cousens
9dc58c4c4c
tests: refactor multisig test construction
10 years ago
Daniel Cousens
6ebb9b3079
tests: remove unnecessary script tests from TxBuilder
10 years ago
Daniel Cousens
15cc165b05
tests: clean up unused variables
10 years ago
Ruben de Vries
74d627854f
add tests for various PS2H multisig signing scenarios
redid P2SH multisig tests to use fixtures
10 years ago
Daniel Cousens
1dcad184ba
integration: change 2-of-3 to 2-of-4 and update README
10 years ago
Ruben de Vries
74886c52c3
change 2of2 integration test to 2of3
10 years ago
Daniel Cousens
a82ebe8dbd
tests: fix inconsistent key compression
10 years ago
Daniel Cousens
67b4747e1f
tests: add failing test for transaction builder multisig
10 years ago
Daniel Cousens
5c6a91d7d6
scripts: multisigInput only uses scriptPubKey for validation, OP_0 validation not necessary
10 years ago
Daniel Cousens
c18672e01a
tests: add example non-standard scripthash
10 years ago
Daniel Cousens
a2c9a487d1
tests: add failing scripts by cross-verifying ASM/Hex
10 years ago
Daniel Cousens
1c2d138980
scripts: fix isScriptHashInput classification
10 years ago
Daniel Cousens
1a338ac053
tests: add failing pushDataInt fixtures
10 years ago
Daniel Cousens
20c773ab67
tests: add bitcoin core block fixtures
Data from
https://github.com/bitcoin/bitcoin/blob/master/src/test/bloom_tests.cpp
10 years ago
Daniel Cousens
3a15f0c6ba
tests: add scriptHash(pubKeyHash) test fixture
10 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
Daniel Cousens
f87ac58df0
tests: add reverse order multisig 2-of-2
10 years ago
Daniel Cousens
376c6533f1
tests: bitcoin/core check WIF exports correctly
10 years ago
Daniel Cousens
445eb260c0
tests: add failing Coinbase transaction fixture
10 years ago
Daniel Cousens
db17e35013
tests: transaction.add* better tested by raw functions
10 years ago
Daniel Cousens
7a515a14ee
tests: use beforeEach for initialization
10 years ago
Daniel Cousens
c9826221fb
scripts: catch error in Script.fromBuffer
10 years ago
Daniel Cousens
4bcd169f6d
tests: actually run invalid tests
10 years ago
Daniel Cousens
d68eb496a9
tests: use fffff... unless txHash is actually useful
10 years ago
Daniel Cousens
3a371fccec
TxBuilder: remove initialized field from signature inputs
10 years ago
Daniel Cousens
d3af28e37e
tests: fix TxBuilder fixtures to be consistent w/ compression
10 years ago
Daniel Cousens
5f761113cc
tests: if description undefined, use exception
10 years ago
Daniel Cousens
1fde0a401d
tests: move inconsistent hashType/redeemScript test
10 years ago
Daniel Cousens
ebbe1278a0
tests: add non-standard input fixture
10 years ago
Daniel Cousens
f0c4a76325
tests: add scriptHash(pubKey) test fixture
10 years ago
Daniel Cousens
3f53b528a8
tests: reduce setup-code duplication
10 years ago
Daniel Cousens
95911c5dde
tests: consistent test data names
10 years ago
Daniel Cousens
23a37fb771
TxBuilder: fix out-of-order multisignature signing
10 years ago
Daniel Cousens
4c9fd6010e
TxBuilder: fix failing test for non-standard/multisig inputs
Instead of failing in `fromTransaction`, TxBuilder will now only fail in
`sign` if you attempt to sign a non-standard input.
Transactions with non-standard inputs can only be built with
buildIncomplete() (for now).
10 years ago
Daniel Cousens
b048627a59
tests: move TxBuilder.sign tests to fixtures
10 years ago
Daniel Cousens
396e4d4235
tests: add [failing] test for nulldata signing
10 years ago
Daniel Cousens
35fa86c1f9
tests: add [failing] raw multisig fixture for TxBuilder
10 years ago
Daniel Cousens
dfe74fa0d2
TxBuilder: sign now signs inputs in known publicKey order
11 years ago
Daniel Cousens
ba97b5ee34
TxBuilder: re-order to avoid mutation in case of failure
11 years ago