Daniel Cousens
1119a449a5
txbuilder: add missing signature P2MS fixture
6 years ago
Daniel Cousens
a58c5b4f5b
txb/tests: add solo SIGHASH_ALL fixes
6 years ago
Daniel Cousens
2223e6170e
txb/tests: test solo SIGHASH_ALL, support existing SIGHASH_NONE
6 years ago
Daniel Cousens
ed1c1a5661
txb: enforce outputs exist when signing
7 years ago
Daniel Cousens
acdfb34545
rename Sighash: to SIGHASH
6 years ago
Daniel Cousens
d06c149ec3
avoid special code path, add explicit fixture overwrite
6 years ago
Daniel Cousens
89eb6fac03
break test/transaction_builder contruct stages, add sequential example
6 years ago
Daniel Cousens
5e91c83e0a
tests/fixtures: amend TxBuilder P2WPKH fixtures
7 years ago
Daniel Cousens
400be7114b
use payments in TxBuilder
7 years ago
Daniel Cousens
1fba0c62a5
tests: add missing context information to Sighash V1 description
7 years ago
Daniel Cousens
4d7b5167ae
txbuilder: isolate Invalid script test from Non-standard test
7 years ago
Daniel Cousens
647f06e629
amend test fixtures and add default test case
7 years ago
Daniel Cousens
00bbab1a93
txb: fix redeemScript/witnessScript is undefined when throwing
unsupported
7 years ago
Daniel Cousens
39a681d2d3
tests: add failing test for #981
7 years ago
Daniel Cousens
9a31b894c1
tests: add inconsistent redeem/witness script hash signing tests
7 years ago
Daniel Cousens
098188dd3a
tests: add independent error message for missing witnessScript
7 years ago
Daniel Cousens
5e500910df
tests: use P2* acronyms, not full-length text
7 years ago
Daniel Cousens
c729d322c2
tests: add failing staged transaction building example #901
7 years ago
Arik Sosman
8f9b3443d2
add fixture to verify input type classification
(cherry picked from commit 8f9d8b7)
7 years ago
dabura667
7563d8f74a
Fix absurd fee in fixture
7 years ago
Daniel Cousens
9503e64bde
TransactionBuilder: collect witnessValue as input.value, and match it
7 years ago
Daniel Cousens
3ba17a1479
TxBuilder: restrict uncompressed keyPairs for P2WPK and P2WSH
7 years ago
Daniel Cousens
5057d8d1ba
tests/txb: add P2WSH(multisig), incomplete fixture
7 years ago
Daniel Cousens
dddbf0a142
tests: grammar
8 years ago
Daniel Cousens
0b9b30a8c5
tests: re-add missing transaction_builder missing sigs test
8 years ago
Alex Melville
eae2c57e73
remove errant argument to buildInput in __build
8 years ago
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