Commit graph

2846 commits

Author SHA1 Message Date
Vlad Stan
14cfb55884 #1470 update tiny-secp256k1 to v1.1.6 2020-12-02 11:40:29 +02:00
Vlad Stan
c0c9760ed2 #1470 update tiny-secp256k1 from 1.1.1 to 1.1.5; 2020-11-27 10:00:51 +02:00
Vlad Stan
6661e3d5c4 #1470 Bring over TransactionInput & TransactionOutputfrom BIP174 2020-11-26 19:23:01 +02:00
Jonathan Underwood
533d6c2e6d
Merge pull request #1627 from bitcoincoretech/issue_4d
Issue 4d
2020-10-01 22:23:08 +09:00
Vlad Stan
7d3bc8ffbc #5 remove redeem script name 2020-10-01 15:12:54 +03:00
Vlad Stan
e80dc8d347 #4 check name field for equate() 2020-10-01 15:12:06 +03:00
Vlad Stan
09a0eb9779 #4 do not add empty redeem script name 2020-10-01 15:10:49 +03:00
Jonathan Underwood
f1d04cec00
Merge pull request #1563 from bitcoinjs/addPsbtMethods
Add PSBT methods
2020-09-12 00:53:13 +09:00
junderw
7aaef308e0
5.2.0 2020-09-12 00:49:05 +09:00
junderw
5e3442b74b
Fix txOutputs 2020-09-12 00:35:57 +09:00
junderw
3a54c73817
Update bip174 dep 2020-09-12 00:19:21 +09:00
junderw
17c47e9102
Merge branch 'master' into addPsbtMethods 2020-09-12 00:18:37 +09:00
Jonathan Underwood
cd4577432f
Merge pull request #1617 from bitcoincoretech/issue_1
Add more unit tests, improve test coverage
2020-09-09 07:23:14 +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
970b554896 improve test name - show actual value for UINT31_MAX 2020-09-02 11:15:11 +03:00
Vlad Stan
0148d40f88 add unit tests for UInt31 and BIP32Path 2020-09-02 10:08:31 +03:00
Vlad Stan
ec17b06bde cover 'fromBech32(address)' throwing exception & bad 'decodeBech32.data.length' 2020-09-01 15:45:34 +03:00
Vlad Stan
883d021117 cover the case when some chunks are "minimalOP" 2020-09-01 14:58:43 +03:00
Vlad Stan
bc9b5abb7c Throw Error if no private key found when calling toWIF() 2020-08-31 17:09:08 +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
Jonathan Underwood
68fb3cdb11
Merge pull request #1608 from bitcoinjs/fixVuln
Fix vulns from npm audit
2020-07-30 18:48:58 +09:00
junderw
e7ef9715d1
Fix vulns from npm audit 2020-07-30 18:33:48 +09:00
Jonathan Underwood
7622c58365
Merge pull request #1575 from bitcoinjs/fixTestSortPubkey
Actually sort pubkeys in test
2020-06-01 16:14:53 +09:00
Jonathan Underwood
3520985e6c
Merge pull request #1585 from bitcoinjs/bumpnewver
Bump to version 5.1.10
2020-06-01 16:11:59 +09:00
junderw
91bb1e91ae
5.1.10 2020-06-01 15:59:06 +09:00
junderw
0fb04aefa1
Update CHANGELOG 2020-06-01 15:59:01 +09:00
Jonathan Underwood
0a80584881
Merge pull request #1582 from bitcoinjs/psbt-signInputAsync-fix
Fix signInputAsync when SignerAsync rejects
2020-06-01 15:55:14 +09:00
junderw
65d7603cf7
Fix signInputAsync when SignerAsync rejects
Co-authored-by: Zhang Zengbo <zengbo.zhang@gmail.com>
2020-06-01 15:40:28 +09:00
Jonathan Underwood
9e2a8fe45a
Merge pull request #1578 from bitcoinjs/psbt-nonstandard-output-fix
Handle non-standard output types in Psbt.txOutputs
2020-05-29 16:10:05 +09:00
junderw
afba17ee5d
5.1.9 2020-05-29 16:05:35 +09:00
Luke Childs
48967652ca
Handle non-standard output types in Psbt.txOutputs 2020-05-29 16:05:27 +09:00
junderw
c0718a9f7c
Actually sort pubkeys in test 2020-05-22 08:14:30 +09:00
Jonathan Underwood
85ee2a3c5d
Merge pull request #1573 from bitcoinjs/fixSegwitPayments
Throw errors when p2wsh or p2wpkh contain uncompressed pubkeys.
2020-05-21 13:17:10 +09:00
junderw
bb89297919
5.1.8 2020-05-21 13:09:06 +09:00
junderw
c2d8d19c61
Simplify chunkHasUncompressedPubkey and remove lazy load of output script 2020-05-21 12:54:49 +09: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
f87a20caa7
Add hasHDKey 2020-04-29 14:39:50 +09:00
junderw
5d19abfb85
Add ability to get redeemScript|witnessScript from finalized scripts 2020-04-29 13:32:57 +09:00
junderw
c9f399e509
Add getInputType 2020-04-29 11:05:33 +09:00
Luke Childs
d02483473b allocUnsafe for faster buffer cloning
It's safe to do this because we immediately overwrite the entire buffer. No need to zero out first.
2020-04-28 19:58:21 +07:00
junderw
0c52803ba1
Add discouraged unsafe nonsegwit signing 2020-04-28 18:52:43 +09:00
junderw
7d09fe5dcb
Refactor Psbt logic 2020-04-28 18:50:00 +09:00
junderw
97074f8a64
Refactor getMeaningfulScript 2020-04-28 14:41:48 +09:00
Luke Childs
e3bf997d64 Improve test coverage 2020-04-27 20:38:04 +07:00
Luke Childs
e9382ebea2 Fix horrific bug! 2020-04-27 20:37:32 +07:00
Luke Childs
9fd13f3a43 Fix lint error 2020-04-27 17:18:05 +07:00
Luke Childs
de0bbf51e5 Export PSBT getter types 2020-04-27 16:51:39 +07:00
junderw
361ea7c098
Add inputHasPubkey and outputHasPubkey methods 2020-04-27 17:10:11 +09:00