Commit graph

398 commits

Author SHA1 Message Date
Jonathan Underwood
793bf5a720
Merge pull request #1657 from bitcoincoretech/issue_1477
#1477 - Remove TransactionBuilder
2021-10-20 12:44:34 +09:00
Andrew Toth
a75f32f7f9 Update test fixtures for bech32m address de/serialization 2021-02-16 16:48:18 -05:00
Vlad Stan
b56273a391 #1477 move script.ts test data from templates.json to script.json; remove templates.json 2020-11-27 12:09:04 +02:00
Vlad Stan
c217551884 #1477 remove non-public dependecies of TransactionBuilder (classify & templates)) 2020-11-27 12:02:07 +02:00
Vlad Stan
5c6243f4e4 #1477 remove TransactionBuilder and all references to it 2020-11-27 11:39:10 +02:00
Vlad Stan
7d3bc8ffbc #5 remove redeem script name 2020-10-01 15:12:54 +03:00
junderw
17c47e9102
Merge branch 'master' into addPsbtMethods 2020-09-12 00:18:37 +09:00
Vlad Stan
bae1d36244 add test for "Signature mismatch" 2020-09-07 13:49:10 +03:00
Vlad Stan
c63721ca8f Add tests for the exceptions: 'Input and witness provided' and 'Non push-only scriptSig' 2020-09-07 10:56:06 +03:00
Vlad Stan
b77b1a0653 add unit tests for three uncovered cases 2020-09-02 11:16:43 +03:00
Vlad Stan
ec17b06bde cover 'fromBech32(address)' throwing exception & bad 'decodeBech32.data.length' 2020-09-01 15:45:34 +03:00
Vlad Stan
62bb17b045 Separate readUInt64LE fixtures from writeUInt64LE; add two more tests: "n < 0" & "0 < n < 1" 2020-08-31 15:57:09 +03:00
junderw
25b5806cf1
Throw errors when p2wsh or p2wpkh contain uncompressed pubkeys.
This will enforce BIP143 compressed pubkey rules on an address generation level.
2020-05-21 11:11:12 +09:00
junderw
c9f399e509
Add getInputType 2020-04-29 11:05:33 +09:00
d-yokoi
3f6f5ef97a
Merge pull request #1487 from bitcoinjs/addError
Add sanity check for arguments
2019-12-11 13:41:11 +09:00
junderw
48bf08c0d3
Add weight and ability to get strippedsize 2019-11-29 15:30:23 +09:00
junderw
7ef3fe4996
Add sanity check for arguments 2019-10-01 14:54:57 +09:00
junderw
bf45f3638b
WIP: Allow nonWitnessUtxo with segwit 2019-08-23 12:52:04 +09:00
Jonathan Underwood
aca976689f
Merge pull request #1425 from lukechilds/psbt
[WIP] Add PSBT support
2019-07-19 16:01:48 +09:00
junderw
e19bc58b30
Rename methods 2019-07-19 14:53:54 +09:00
junderw
4366b621d7
Add HD signer methods 2019-07-19 11:42:45 +09:00
junderw
19a33f7da8
Add comments and remove fromTransaction 2019-07-18 14:20:44 +09:00
Luke Childs
d790288048 Test the sighashtype is checked when signing 2019-07-11 16:25:30 +07:00
Luke Childs
f25938d3ca Test signing a non-whitelisted sighashtype 2019-07-11 16:24:35 +07:00
junderw
c403757ce8
Add name attribute to Payments 2019-07-11 14:49:26 +09:00
junderw
2f1609b918
Fix: P2WPKH was signing with nonWitnessUtxo 2019-07-11 11:28:09 +09:00
junderw
8a5104c333
Add tests 2019-07-11 11:09:05 +09:00
junderw
266302a3ae
Add P2WSH-P2PK finalize vector 2019-07-11 10:21:36 +09:00
junderw
9ee115b030
assert the fee calculation is correct 2019-07-11 10:11:51 +09:00
Luke Childs
876a241e0c Test finalizeAllInputs against P2WPKH input 2019-07-10 19:23:01 +07:00
Luke Childs
7377566f98 Test finalizeAllInputs against P2SH-P2WPKH input 2019-07-10 19:22:38 +07:00
Luke Childs
f55ee32386 Test finalizeAllInputs against P2PKH input 2019-07-10 19:21:56 +07:00
Luke Childs
bc56ca0fa1 Test finalizeAllInputs against P2PK input 2019-07-10 19:21:33 +07:00
Luke Childs
ec2c14b81f Extract finalizeAllInputs test out of BIP174 test cases 2019-07-10 19:20:10 +07:00
Luke Childs
d051446275 Add P2MS test case to finalizer tests 2019-07-10 18:12:56 +07:00
Luke Childs
47b42e72f4 Refactor and cleanup getFeeRate tests 2019-07-10 18:05:56 +07:00
Luke Childs
da5adcf88f Refactor and cleanup validateSignatures tests 2019-07-10 18:05:56 +07:00
Luke Childs
0d9fa87943 Move nonWitnessUtxo cache tests out into own test 2019-07-09 16:21:08 +07:00
Luke Childs
75f5e8f03c Use Buffer notation in JSON 2019-07-09 16:21:08 +07:00
junderw
8d52ce1668
Add some tests and an input duplicate checker 2019-07-05 16:42:13 +09:00
Luke Childs
dc23b8cce0 Test fromTransaction 2019-07-04 17:00:01 +07:00
Luke Childs
e3efdbdb99 Test BIP174 extractor test cases 2019-07-04 16:24:08 +07:00
Luke Childs
35cf120c33 Add extra combiner test case 2019-07-04 16:24:08 +07:00
Luke Childs
a80155dbdb Test BIP174 finalizer test cases 2019-07-04 16:24:08 +07:00
Luke Childs
4e55ab0f20 Test BIP174 combiner test cases 2019-07-04 16:24:08 +07:00
Luke Childs
30815e9e8f Test BIP174 signer test cases 2019-07-04 16:24:08 +07:00
Luke Childs
a32d1c3eac Test BIP174 updater check test cases 2019-07-04 16:24:08 +07:00
Luke Childs
2501fc92bc Test BIP174 creator check test cases 2019-07-04 16:24:08 +07:00
Luke Childs
a876698d15 Test BIP174 signer check test cases 2019-07-03 17:47:14 +07:00
Luke Childs
54e2e55ef7 Add descriptions to valid test cases from BIP174 spec 2019-07-03 17:47:13 +07:00