Thomas Kerin
793939dc8c
scriptHash return true for chunks.length=1 so long as its witness
8 years ago
Thomas Kerin
1edfd30425
P2WPKH correct tx
8 years ago
Thomas Kerin
c2dfc03869
Add test vectors, and transaction_builder input stores signScript
8 years ago
Thomas Kerin
1d168592a3
Add P2SH|P2WSH|P2PK vector
8 years ago
Thomas Kerin
a213435135
Commit work to date
8 years ago
Daniel Cousens
a793166eb8
wip
8 years ago
Daniel Cousens
d1dc0840b5
tests: add pay-to-witness-* output fixtures
8 years ago
Daniel Cousens
f0db59fa8e
tests: amend TransactionBuilder fixture to have non-absurd fee rate
8 years ago
Daniel Cousens
62389ed247
TransactionBuilder: change to ABSURD_FEERATE, not ABSURD_FEE
8 years ago
Daniel Cousens
e835f1fe95
TransactionBuilder: add fee safety
8 years ago
Daniel Cousens
3de754a9a2
TransactionBuilder: remove hashTypes inconsistency issues, resolves #642
8 years ago
Daniel Cousens
30ba4d620b
tests: add failing TransactionBuilder multiple hash types test
8 years ago
Daniel Cousens
17377381c4
TransactionBuilder: if prevOutScript is defined, but not signable, try 1 last time
8 years ago
Daniel Cousens
76c7c77311
tests: add failing test for #633
8 years ago
Daniel Cousens
ae63ae1131
tests: change error thrown for consistency with multisig
8 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
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
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
d85df4a6d6
TransactionBuilder: remove use of assert
10 years ago
Daniel Cousens
7a6936674e
tests: add explicit test for inconsistent network exception
10 years ago
Daniel Cousens
6443e4c2b6
ECPair: support strict network syntax
10 years ago
Daniel Cousens
4c8b0f38ea
replace ECKey/ECPubKey with ECPair
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
Ruben de Vries
745eace950
add tests for various PS2H multisig signing scenarios
redid P2SH multisig tests to use fixtures
10 years ago
Daniel Cousens
cdcbb2ccb4
tests: fix inconsistent key compression
10 years ago
Daniel Cousens
c79fecffa3
tests: add failing test for transaction builder multisig
10 years ago
Daniel Cousens
3a15f0c6ba
tests: add scriptHash(pubKeyHash) test fixture
10 years ago
Daniel Cousens
f87ac58df0
tests: add reverse order multisig 2-of-2
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
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
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
cbf8c6f932
tests: format JSON consistently
10 years ago
Daniel Cousens
a529b3fa0b
TxBuilder: copy version/locktime in fromTransaction
10 years ago
Daniel Cousens
1d0fd3e9a4
TxBuilder: add more failing cases and error handling
11 years ago
Daniel Cousens
1c744cfa5a
TxBuilder: add failing test for non-zero vin inputs
11 years ago
Daniel Cousens
f9fed3c815
TxBuilder: adds fromTransaction impl. and basic tests
11 years ago