Commit graph

123 commits

Author SHA1 Message Date
Daniel Cousens
a58c5b4f5b txb/tests: add solo SIGHASH_ALL fixes 2018-09-26 14:52:05 +10:00
Daniel Cousens
ed1c1a5661 txb: enforce outputs exist when signing 2018-09-26 14:36:10 +10:00
Daniel Cousens
43f52c452b tests: enforce something threw for invalid cases 2018-09-26 14:36:09 +10:00
Daniel Cousens
4616d24016 tests/txb: remove getAddress 2018-09-26 14:36:09 +10:00
Daniel Cousens
a6f2cc2924
Merge pull request #1229 from bitcoinjs/brows
explicitly import mocha variables
2018-09-26 13:25:07 +10:00
Daniel Cousens
07fcbe5890 rm unused imports 2018-09-13 17:34:42 +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
junderw
f84a5d18a3
Fix test cases to make sure that validate: true is being set to default 2018-09-03 12:05:06 +09:00
Daniel Cousens
89eb6fac03 break test/transaction_builder contruct stages, add sequential example 2018-08-23 12:43:31 +10:00
Daniel Cousens
16195cc6ce explicitly import mocha variables 2018-07-23 17:45:01 +10:00
Daniel Cousens
eb01d35aa4 tests: rm last use of templates for txbuilder 2018-07-03 22:07:08 +10:00
Daniel Cousens
400be7114b use payments in TxBuilder 2018-06-27 17:39:55 +10:00
Daniel Cousens
a5db0a4e44 sed -i 's/ var / const /', with const->let fixes 2018-06-25 18:26:23 +10:00
Daniel Cousens
93b1ae4303 sed -i 's/^let /const /' 2018-06-25 16:24:37 +10:00
Daniel Cousens
58f50e9f1c tests: fix invalid pubKey used in testing 2018-06-05 18:27:33 +10:00
Daniel Cousens
2fe220517f transition ECPair to properties over getters 2018-05-30 15:52:03 +10:00
Daniel Cousens
fba0699dd3 rm ecdsa, add new ECPair using secp256k1 2018-05-30 15:52:03 +10:00
Daniel Cousens
c2a5d9dc1a rm getAddress 2018-05-30 11:09:07 +10:00
Daniel Cousens
a463c41fb0 tests/txb: fix bad BIP66 encoding (R = 0) 2018-05-22 16:59:05 +10:00
Daniel Cousens
024c541d7e
Merge branch 'master' into __tx 2018-04-30 10:43:44 +10:00
Daniel Cousens
647f06e629 amend test fixtures and add default test case 2018-04-16 11:33:04 +10:00
Daniel Cousens
5af87c0c49 privatise internals for TxBuilder 2018-04-14 01:31:02 +10:00
Daniel Cousens
39a681d2d3 tests: add failing test for #981 2018-01-17 14:48:56 +11:00
Daniel Cousens
5e500910df tests: use P2* acronyms, not full-length text 2018-01-17 14:20:04 +11:00
Daniel Cousens
34df503421 tests: fix should warn fee fail 2017-12-01 13:06:35 +11:00
Daniel Cousens
a868d27407 TxBuilder: add support for RSBuffer type keyPairs and .publicKey 2017-10-19 13:41:57 +11:00
Daniel Cousens
c729d322c2 tests: add failing staged transaction building example #901 2017-09-27 10:00:36 +10:00
Daniel Cousens
f4a83f8aed address/txbuilder: require templates to prevent undefined exports 2017-09-27 07:08:19 +10:00
Arik Sosman
5508e26469 respond to Jonathan Underwood's comments
(cherry picked from commit 8126ca2)
2017-09-21 20:23:19 -07:00
Arik Sosman
8f9b3443d2 add fixture to verify input type classification
(cherry picked from commit 8f9d8b7)
2017-09-21 20:23:13 -07:00
junderw
286dfb3750 Add test case 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
junderw
003df6694b Add test for witness = true edge case during multisigning 2017-09-06 20:46:20 +10:00
Daniel Cousens
5057d8d1ba tests/txb: add P2WSH(multisig), incomplete fixture 2017-08-23 16:07:28 +10:00
Thomas Kerin
912f5d4d03 remove redundant baddress.toOutputScript call from tests 2017-08-09 15:11:05 +10:00
Thomas Kerin
0b1c3bfbd9 Should be able to deal with incomplete P2SH/P2WSH inputs when allowIncomplete is set 2017-08-09 15:11:05 +10:00
Alex Melville
eae2c57e73 remove errant argument to buildInput in __build 2017-07-21 12:12:29 +10:00
Daniel Cousens
1d6b978aff txb: do not classify blank input scripts as nonstandard 2017-07-14 14:16:52 +10:00
Daniel Cousens
f1ab151c31 tests: use safe-buffers throughout 2017-05-23 18:39:53 +10:00
Daniel Cousens
4d6928a68b tests: fix shadowed/unused variable warnings 2017-04-18 14:34:54 +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
c2dfc03869 Add test vectors, and transaction_builder input stores signScript 2017-02-07 12:40:49 +11:00
Thomas Kerin
fff9319fa4 scriptHash.input.check - should tolerate 1 field in scriptSig if it's P2WSH or P2WPKH 2017-02-07 12:40:49 +11:00
Thomas Kerin
f8a94f3496 messy commits, clean later, just one test left 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
14f9218389 package: bump bs58check, drop node 0.12 2016-12-22 08:21:18 +11:00
Daniel Cousens
33c72e49c4 package/*: use bitcoin-ops, pushdata-bitcoin packages 2016-12-18 10:38:43 +00:00
Daniel Cousens
913f21c34d tests: s/sign/dontSign, less mistakes 2016-12-15 11:45:59 +11:00