Daniel Cousens
e97389ed08
tests: scriptSigFiltered shouldn't be reassigned
2015-08-13 14:17:25 +10:00
Daniel Cousens
7a6936674e
tests: add explicit test for inconsistent network exception
2015-08-07 17:01:31 +10:00
Daniel Cousens
a4eb58f103
TxBuilder: pass network through fromTransaction, fixes failing tests
2015-08-07 16:56:27 +10:00
Daniel Cousens
2971816588
TxBuilder: pass network through to fromTransaction
2015-08-07 16:41:24 +10:00
Daniel Cousens
9513b26e8c
tests: supply TransactionBuilder with network from fixtures
2015-08-07 16:36:10 +10:00
Daniel Cousens
6443e4c2b6
ECPair: support strict network syntax
2015-08-07 16:36:10 +10:00
Daniel Cousens
b67a3dcf9e
TxBuilder: specify missing network information for TxBuilder
2015-08-07 16:36:10 +10:00
Daniel Cousens
13f414c122
remove Address constructor
2015-07-24 12:18:00 +10:00
Daniel Cousens
abd27dd2be
TxBuilder: disable Address object as valid input
2015-07-24 12:18:00 +10:00
Daniel Cousens
588b346f5d
ECPair: cease using Address for address encoding
2015-07-24 12:18:00 +10:00
Daniel Cousens
e43d1764de
tests: fix standard issues, s/"/'/ for non-escaping strings
2015-06-23 16:09:16 +10:00
Ruben de Vries
d2bee4d67f
fix txb.sign having issues when an incomplete TX contains OP_0s, but not enough
2015-05-28 22:47:01 +02:00
Daniel Cousens
ec9cea0cf1
tests: use strictEqual always
2015-05-07 11:29:20 +10:00
Daniel Cousens
4c8b0f38ea
replace ECKey/ECPubKey with ECPair
2015-03-19 13:33:28 +11:00
Daniel Cousens
a29761cc8c
tests: fix standard styling
2015-03-11 12:42:56 +11:00
Daniel Cousens
69eb58c783
tests: ignore txHexIncomplete, instead check scriptSig after each signature
2015-03-11 12:37:11 +11:00
Daniel Cousens
e80f4803d9
tests: refactor multisig test construction
2015-03-11 12:12:50 +11:00
Daniel Cousens
7cd60aaba3
tests: remove unnecessary script tests from TxBuilder
2015-03-11 11:33:25 +11:00
Daniel Cousens
4d08ae5a8a
tests: clean up unused variables
2015-03-10 20:17:11 +11:00
Ruben de Vries
745eace950
add tests for various PS2H multisig signing scenarios
...
redid P2SH multisig tests to use fixtures
2015-03-05 10:21:40 +01:00
Daniel Cousens
7f3b4c93ba
TxBuilder: move param coercion from Transaction to TxBuilder
2015-03-02 17:51:14 +11:00
Daniel Cousens
0bba21546f
various: more standard-format artifact fixes
2015-03-02 13:50:49 +11:00
Daniel Cousens
399803affa
use standardjs formatting
2015-02-24 12:45:38 +11:00
Daniel Cousens
5f761113cc
tests: if description undefined, use exception
2015-02-13 13:18:28 +11:00
Daniel Cousens
1fde0a401d
tests: move inconsistent hashType/redeemScript test
2015-02-13 13:18:28 +11:00
Daniel Cousens
3f53b528a8
tests: reduce setup-code duplication
2015-02-13 13:18:28 +11:00
Daniel Cousens
95911c5dde
tests: consistent test data names
2015-02-13 13:18:28 +11:00
Daniel Cousens
23a37fb771
TxBuilder: fix out-of-order multisignature signing
2015-02-13 13:18:28 +11:00
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).
2015-02-13 13:18:26 +11:00
Daniel Cousens
b048627a59
tests: move TxBuilder.sign tests to fixtures
2015-02-13 13:18:00 +11:00
Daniel Cousens
396e4d4235
tests: add [failing] test for nulldata signing
2015-02-13 13:18:00 +11:00
Daniel Cousens
35fa86c1f9
tests: add [failing] raw multisig fixture for TxBuilder
2015-02-13 13:18:00 +11:00
Daniel Cousens
dfe74fa0d2
TxBuilder: sign now signs inputs in known publicKey order
2015-02-13 13:17:57 +11:00
Daniel Cousens
ba97b5ee34
TxBuilder: re-order to avoid mutation in case of failure
2015-02-13 13:01:01 +11:00
Daniel Cousens
a529b3fa0b
TxBuilder: copy version/locktime in fromTransaction
2015-01-23 16:35:09 +11:00
Daniel Cousens
fc7c7ce2a8
tests: remove extraneous anonymous function
2014-12-12 16:41:36 +11:00
Daniel Cousens
50a32328ba
tests: remove unused variables
2014-12-12 16:31:47 +11:00
Daniel Cousens
1d0fd3e9a4
TxBuilder: add more failing cases and error handling
2014-08-31 14:43:35 +10:00
Daniel Cousens
8d5ef2dd06
TxBuilder: limit signatures depending on scriptType
2014-08-30 13:13:12 +10:00
Daniel Cousens
e5618bb8bd
TxBuilder: add test for missing redeemScript if P2SH
2014-08-30 12:52:05 +10:00
Daniel Cousens
1c744cfa5a
TxBuilder: add failing test for non-zero vin inputs
2014-08-30 12:09:31 +10:00
Daniel Cousens
4f88980dfb
tests: add P2SH multisig example case
2014-08-18 08:54:46 +10:00
Daniel Cousens
f9fed3c815
TxBuilder: adds fromTransaction impl. and basic tests
2014-08-18 08:54:46 +10:00
Daniel Cousens
1e3e003120
TxBuilder: remove unnecessary assert
2014-08-18 08:54:46 +10:00
Daniel Cousens
d0ac9b405a
tests: add TxBuilder pubKey test fixture
2014-08-18 08:54:45 +10:00
Daniel Cousens
36b225a3df
TxBuilder: use data fixtures for invalid tests
2014-08-18 08:54:45 +10:00
Daniel Cousens
bcbcd58964
TxBuilder: Initial commit and tests
2014-08-18 08:54:45 +10:00