Daniel Cousens
18e9cdcc02
rename Address to address
10 years ago
Daniel Cousens
b62dd19f0d
tests: clean up TxBuilder beforeEach constants
10 years ago
Daniel Cousens
e2abe2b3af
merge Script/scripts
10 years ago
Daniel Cousens
151386c46d
scripts: remove coercion, fromASM returns Buffer
10 years ago
Daniel Cousens
e05f8a542d
remove Script object
10 years ago
Daniel Cousens
e743c58ed6
remove usage of instanced Scripts
10 years ago
Daniel Cousens
e97389ed08
tests: scriptSigFiltered shouldn't be reassigned
10 years ago
Daniel Cousens
7a6936674e
tests: add explicit test for inconsistent network exception
10 years ago
Daniel Cousens
a4eb58f103
TxBuilder: pass network through fromTransaction, fixes failing tests
10 years ago
Daniel Cousens
2971816588
TxBuilder: pass network through to fromTransaction
10 years ago
Daniel Cousens
9513b26e8c
tests: supply TransactionBuilder with network from fixtures
10 years ago
Daniel Cousens
6443e4c2b6
ECPair: support strict network syntax
10 years ago
Daniel Cousens
b67a3dcf9e
TxBuilder: specify missing network information for TxBuilder
10 years ago
Daniel Cousens
13f414c122
remove Address constructor
10 years ago
Daniel Cousens
abd27dd2be
TxBuilder: disable Address object as valid input
10 years ago
Daniel Cousens
588b346f5d
ECPair: cease using Address for address encoding
10 years ago
Daniel Cousens
e43d1764de
tests: fix standard issues, s/"/'/ for non-escaping strings
10 years ago
Ruben de Vries
d2bee4d67f
fix txb.sign having issues when an incomplete TX contains OP_0s, but not enough
10 years ago
Daniel Cousens
ec9cea0cf1
tests: use strictEqual always
10 years ago
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