Daniel Cousens
4c8b0f38ea
replace ECKey/ECPubKey with ECPair
10 years ago
Daniel Cousens
a29761cc8c
tests: fix standard styling
10 years ago
Daniel Cousens
69eb58c783
tests: ignore txHexIncomplete, instead check scriptSig after each signature
10 years ago
Daniel Cousens
e80f4803d9
tests: refactor multisig test construction
10 years ago
Daniel Cousens
7cd60aaba3
tests: remove unnecessary script tests from TxBuilder
10 years ago
Daniel Cousens
4d08ae5a8a
tests: clean up unused variables
10 years ago
Ruben de Vries
745eace950
add tests for various PS2H multisig signing scenarios
redid P2SH multisig tests to use fixtures
10 years ago
Daniel Cousens
7f3b4c93ba
TxBuilder: move param coercion from Transaction to TxBuilder
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
5f761113cc
tests: if description undefined, use exception
10 years ago
Daniel Cousens
1fde0a401d
tests: move inconsistent hashType/redeemScript test
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
10 years ago
Daniel Cousens
ba97b5ee34
TxBuilder: re-order to avoid mutation in case of failure
10 years ago
Daniel Cousens
a529b3fa0b
TxBuilder: copy version/locktime in fromTransaction
10 years ago
Daniel Cousens
fc7c7ce2a8
tests: remove extraneous anonymous function
10 years ago
Daniel Cousens
50a32328ba
tests: remove unused variables
10 years ago
Daniel Cousens
1d0fd3e9a4
TxBuilder: add more failing cases and error handling
11 years ago
Daniel Cousens
8d5ef2dd06
TxBuilder: limit signatures depending on scriptType
11 years ago
Daniel Cousens
e5618bb8bd
TxBuilder: add test for missing redeemScript if P2SH
11 years ago
Daniel Cousens
1c744cfa5a
TxBuilder: add failing test for non-zero vin inputs
11 years ago
Daniel Cousens
4f88980dfb
tests: add P2SH multisig example case
11 years ago
Daniel Cousens
f9fed3c815
TxBuilder: adds fromTransaction impl. and basic tests
11 years ago
Daniel Cousens
1e3e003120
TxBuilder: remove unnecessary assert
11 years ago
Daniel Cousens
d0ac9b405a
tests: add TxBuilder pubKey test fixture
11 years ago
Daniel Cousens
36b225a3df
TxBuilder: use data fixtures for invalid tests
11 years ago
Daniel Cousens
bcbcd58964
TxBuilder: Initial commit and tests
11 years ago