Commit graph

82 commits

Author SHA1 Message Date
junderw
b4bab427f8
Merge pull request #1201 from bitcoinjs/p2msmore
tests: add extra P2MS testing fixtures
2018-09-26 14:13:16 +09:00
Daniel Cousens
1119a449a5 txbuilder: add missing signature P2MS fixture 2018-09-26 14:54:03 +10:00
Daniel Cousens
a58c5b4f5b txb/tests: add solo SIGHASH_ALL fixes 2018-09-26 14:52:05 +10:00
Daniel Cousens
2223e6170e txb/tests: test solo SIGHASH_ALL, support existing SIGHASH_NONE 2018-09-26 14:39:58 +10:00
Daniel Cousens
ed1c1a5661 txb: enforce outputs exist when signing 2018-09-26 14:36:10 +10:00
Daniel Cousens
acdfb34545 rename Sighash: to SIGHASH 2018-09-26 14:36:09 +10:00
Daniel Cousens
3588d1100f
Merge pull request #1195 from bitcoinjs/fixP2MS
Fix default assignment of validate key for payments
2018-09-03 14:24:56 +10:00
Daniel Cousens
d06c149ec3 avoid special code path, add explicit fixture overwrite 2018-09-03 14:23:29 +10:00
Daniel Cousens
89eb6fac03 break test/transaction_builder contruct stages, add sequential example 2018-08-23 12:43:31 +10:00
Daniel Cousens
5e91c83e0a tests/fixtures: amend TxBuilder P2WPKH fixtures 2018-07-17 22:33:32 +10:00
Daniel Cousens
400be7114b use payments in TxBuilder 2018-06-27 17:39:55 +10:00
Daniel Cousens
1fba0c62a5 tests: add missing context information to Sighash V1 description 2018-06-27 17:38:27 +10:00
Daniel Cousens
4d7b5167ae txbuilder: isolate Invalid script test from Non-standard test 2018-05-22 18:50:00 +10:00
Daniel Cousens
647f06e629 amend test fixtures and add default test case 2018-04-16 11:33:04 +10:00
Daniel Cousens
00bbab1a93 txb: fix redeemScript/witnessScript is undefined when throwing
unsupported
2018-01-17 14:57:24 +11:00
Daniel Cousens
39a681d2d3 tests: add failing test for #981 2018-01-17 14:48:56 +11:00
Daniel Cousens
9a31b894c1 tests: add inconsistent redeem/witness script hash signing tests 2018-01-17 14:41:54 +11:00
Daniel Cousens
098188dd3a tests: add independent error message for missing witnessScript 2018-01-17 14:25:06 +11:00
Daniel Cousens
5e500910df tests: use P2* acronyms, not full-length text 2018-01-17 14:20:04 +11:00
Daniel Cousens
c729d322c2 tests: add failing staged transaction building example #901 2017-09-27 10:00:36 +10:00
Arik Sosman
8f9b3443d2 add fixture to verify input type classification
(cherry picked from commit 8f9d8b7)
2017-09-21 20:23:13 -07:00
dabura667
7563d8f74a Fix absurd fee in fixture 2017-09-15 12:31:35 +10:00
Daniel Cousens
9503e64bde TransactionBuilder: collect witnessValue as input.value, and match it 2017-09-06 20:59:10 +10:00
Daniel Cousens
3ba17a1479 TxBuilder: restrict uncompressed keyPairs for P2WPK and P2WSH 2017-08-23 17:26:06 +10:00
Daniel Cousens
5057d8d1ba tests/txb: add P2WSH(multisig), incomplete fixture 2017-08-23 16:07:28 +10:00
Daniel Cousens
dddbf0a142 tests: grammar 2017-07-21 12:19:05 +10:00
Daniel Cousens
0b9b30a8c5 tests: re-add missing transaction_builder missing sigs test 2017-07-21 12:16:55 +10:00
Alex Melville
eae2c57e73 remove errant argument to buildInput in __build 2017-07-21 12:12:29 +10:00
Thomas Kerin
793939dc8c scriptHash return true for chunks.length=1 so long as its witness 2017-02-07 12:40:49 +11:00
Thomas Kerin
1edfd30425 P2WPKH correct tx 2017-02-07 12:40:49 +11:00
Thomas Kerin
c2dfc03869 Add test vectors, and transaction_builder input stores signScript 2017-02-07 12:40:49 +11:00
Thomas Kerin
1d168592a3 Add P2SH|P2WSH|P2PK vector 2017-02-07 12:40:49 +11:00
Thomas Kerin
a213435135 Commit work to date 2017-02-07 12:40:49 +11:00
Daniel Cousens
a793166eb8 wip 2017-02-07 12:40:49 +11:00
Daniel Cousens
d1dc0840b5 tests: add pay-to-witness-* output fixtures 2016-12-15 11:45:59 +11:00
Daniel Cousens
f0db59fa8e tests: amend TransactionBuilder fixture to have non-absurd fee rate 2016-11-12 12:53:53 +01:00
Daniel Cousens
62389ed247 TransactionBuilder: change to ABSURD_FEERATE, not ABSURD_FEE 2016-11-12 12:53:53 +01:00
Daniel Cousens
e835f1fe95 TransactionBuilder: add fee safety 2016-11-12 12:53:53 +01:00
Daniel Cousens
3de754a9a2 TransactionBuilder: remove hashTypes inconsistency issues, resolves #642 2016-10-13 00:55:19 +11:00
Daniel Cousens
30ba4d620b tests: add failing TransactionBuilder multiple hash types test 2016-10-13 00:55:19 +11:00
Daniel Cousens
17377381c4 TransactionBuilder: if prevOutScript is defined, but not signable, try 1 last time 2016-10-09 22:04:32 +11:00
Daniel Cousens
76c7c77311 tests: add failing test for #633 2016-09-28 01:23:37 +10:00
Daniel Cousens
ae63ae1131 tests: change error thrown for consistency with multisig 2016-09-28 00:20:49 +10:00
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
2016-04-08 12:23:32 +10:00
Ruben de Vries
b601f50c70 fixed another test where TX was signed before locktime was set 2016-01-28 16:11:49 +11:00
Daniel Cousens
6c0745adce TxBuilder: add setLockTime 2016-01-28 00:55:44 +11:00
Ruben de Vries
ccec864785 locktime and version were set too late in test scenario and not included when signing (the test scenario). 2016-01-26 17:13:07 +01:00
Daniel Cousens
74e7d1edbc tests: add further tests for #404 2015-09-08 22:48:54 +10:00
Daniel Cousens
0f9af83aa0 tests: add 2-of-3 multisig fixture 2015-09-08 21:45:43 +10:00
Daniel Cousens
d85df4a6d6 TransactionBuilder: remove use of assert 2015-08-14 10:56:31 +10:00