junderw
|
813b84f91f
|
Finalize and extract done
|
2019-07-03 15:13:36 +09:00 |
|
Luke Childs
|
343297a359
|
Test error if UTXO doesn't exist
|
2019-07-02 18:34:19 +07:00 |
|
Luke Childs
|
b8789c5d13
|
Test input exists check
|
2019-07-02 18:29:14 +07:00 |
|
Luke Childs
|
658ea845b1
|
Test matching privkey check
|
2019-07-02 18:20:55 +07:00 |
|
Luke Childs
|
8d74bebe04
|
Throw error when signing with a privkey that doesn't match the pubkey
|
2019-07-02 18:17:37 +07:00 |
|
Luke Childs
|
7ff40cebc4
|
Recreate test case PSBTs and try and sign them with the valid key
|
2019-07-02 18:15:30 +07:00 |
|
junderw
|
354d67a31a
|
Just some ideas, TODO mostly.
|
2019-07-02 15:35:23 +09:00 |
|
junderw
|
4644e9d2eb
|
Finish canFinalize
|
2019-07-02 15:18:00 +09:00 |
|
junderw
|
f28e9cef71
|
Refactor
- Clean up sign
- Get the meaningful script
- Search for pubkey and prevent sign if can't find self
- Tests failed, so comment out for now
|
2019-07-02 15:03:24 +09:00 |
|
junderw
|
f72c915ff1
|
Start towards finalizing inputs
|
2019-07-01 19:57:35 +09:00 |
|
junderw
|
f87b66eb24
|
Finish sign
|
2019-07-01 18:55:18 +09:00 |
|
junderw
|
667ffb58eb
|
Use signature encode
|
2019-07-01 18:01:46 +09:00 |
|
Luke Childs
|
18e7c9de80
|
Move comments to main check logic
|
2019-06-28 18:28:28 +07:00 |
|
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 |
|
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 |
|