Commit graph

2895 commits

Author SHA1 Message Date
Luke Childs
f961724c73 Prefer buf1.equals(buf2) over Buffer.compare(buf1, buf2) !== 0 2019-06-28 18:26:42 +07:00
Luke Childs
95b4a2806d Improve code re-use for redeem script checks 2019-06-28 18:21:32 +07:00
Luke Childs
10b3aff4fd Test redeem script witness utxo check 2019-06-28 18:15:01 +07:00
Luke Childs
08627e65a3 Check redeem script matches witness utxo when signing PSBT input 2019-06-28 18:14:37 +07:00
Luke Childs
6562ee96a4 Remove redundant import from test 2019-06-28 17:17:18 +07:00
Luke Childs
3a82486fb5 Loop over PSBT tests from fixtures 2019-06-28 16:55:00 +07:00
Luke Childs
1afac399b1 Update BIP174 package to fix inheritance issues 2019-06-28 16:32:21 +07:00
Luke Childs
64dc6543be Add simple tests for redeem script check 2019-06-27 18:20:19 +07:00
Luke Childs
5fd18d806f Check redeem script matches when signing PSBT input 2019-06-27 18:19:45 +07:00
Luke Childs
2dcac55601 Add simple tests for non-witness UTXO check 2019-06-26 18:20:49 +07:00
Luke Childs
98dff9a47e Check Non-witness UTXO hash when signing PSBT input 2019-06-26 17:55:02 +07:00
Luke Childs
ff3caa02fe Add BIP174 pseudo code for signing checks 2019-06-26 16:30:07 +07:00
Luke Childs
6ed635d7b4 Flesh out signInput interface 2019-06-25 18:22:00 +07:00
Luke Childs
2ed89cdc68 Update BIP174 package 2019-06-25 17:47:26 +07:00
Luke Childs
6a5e395ebd Extend BIP174 PSBT base class 2019-06-24 17:38:21 +07:00
Luke Childs
62f1749021 Add BIP174 dependency 2019-06-24 17:09:48 +07:00
junderw
e4c5128fd8
Use regtest-client 2019-06-23 14:01:33 +09:00
Jonathan Underwood
8bbe7c7178
Merge pull request #1416 from bitcoinjs/signTxb
Migrate to stricter type checks during sign
2019-06-20 23:02:15 +09:00
junderw
1b39d9caf4
Make errors clearer and increase coverage 2019-06-17 13:34:20 +09:00
junderw
071e201a75
Silence console.warn during old arg tests 2019-06-17 13:02:09 +09:00
junderw
691e4d15d1
Create Signer interface and use it 2019-06-14 15:25:07 +09:00
junderw
1cc7205e9c
Remove @ts-ignore 2019-06-14 14:48:22 +09:00
junderw
d814c21466
Condense sign parts work directly 2019-06-14 14:23:51 +09:00
junderw
84d5e67e38
Use for loop instead of some to allow for future await usage 2019-06-14 12:20:12 +09:00
junderw
4bed585f6a
Test old args as well 2019-06-14 11:55:34 +09:00
junderw
ee3150d7c7
Refactor sign for clarity 2019-06-14 11:47:40 +09:00
junderw
7c454e5f44
TIL: destructuring objects without let or const is a thing 2019-06-13 17:08:43 +09:00
junderw
2e4c9f6b7a
Remove checks to outer function 2019-06-13 15:04:11 +09:00
junderw
053d282e9d
Add stricter Signer interface check 2019-06-13 13:32:21 +09:00
junderw
969b3a5e18
Fix tests to use new sign method 2019-06-13 13:07:00 +09:00
junderw
17f5f35569
Migrate to stricter type checks during sign 2019-06-12 19:33:18 +09:00
Jonathan Underwood
b3def6b400
Merge pull request #1404 from bitcoinjs/fixExports
Expose more interfaces to top level
2019-05-27 16:34:04 +09:00
junderw
73b6f55850
5.0.5 2019-05-23 07:23:16 +09:00
junderw
c6c59c7c68
Expose more interfaces to top level 2019-05-23 07:22:21 +09:00
Jonathan Underwood
f9f4707b34
Merge pull request #1402 from bitcoinjs/bump504
5.0.4
2019-05-21 17:20:07 +09:00
Jonathan Underwood
be942f07a3
Merge pull request #1401 from bitcoinjs/fixRimraf
Fix rimraf to delete types folder as well
2019-05-21 17:19:39 +09:00
Jonathan Underwood
f2ce2ba88f
Merge pull request #1400 from bitcoinjs/updateChangelog
Update changelog
2019-05-21 17:19:12 +09:00
Jonathan Underwood
6808dc69a2
Merge pull request #1185 from bitcoinjs/addComplexScript
Add complex script example in integration tests.
2019-05-21 17:18:42 +09:00
junderw
119e8397f9
5.0.4 2019-05-21 16:45:18 +09:00
junderw
dfd25045ef
Fix rimraf to delete types folder as well 2019-05-21 16:41:47 +09:00
junderw
0b37eaa19b
Update changelog 2019-05-21 16:40:00 +09:00
junderw
3145d3f9ec
Fix comments 2019-05-21 16:27:42 +09:00
junderw
267b0c5d00
Easier var names 2019-05-21 16:26:00 +09:00
junderw
9f96fd097b
Merge branch 'master' into addComplexScript 2019-05-21 16:11:45 +09:00
Jonathan Underwood
94872f9bfe
Merge pull request #1387 from bitcoinjs/trimSpace
Use Prettier to make JS easier to read/audit
2019-05-21 15:50:03 +09:00
junderw
9aa2842123
Merge branch 'master' into trimSpace 2019-05-21 15:42:43 +09:00
Jonathan Underwood
39bd08002b
Merge pull request #1385 from bitcoinjs/lowR
Add low R value signing as option to ECPair.sign
2019-05-21 15:40:35 +09:00
junderw
04b1f50a2f
Add js format check to CI 2019-05-21 15:23:18 +09:00
junderw
4d9c1b81bd
Update packages npm audit 2019-05-21 15:13:38 +09:00
Jonathan Underwood
cbc189ca8d
Merge pull request #1397 from bitcoinjs/fixECPair
Fix publicKey type on ECPairInterface
2019-05-21 15:03:21 +09:00