feat: add external signing functionality for v2 wallet - #1944
Conversation
472b540 to
8d6c237
Compare
Codecov Report
@@ Coverage Diff @@
## master #1944 +/- ##
===========================================
+ Coverage 0 53.93% +53.93%
===========================================
Files 0 5 +5
Lines 0 534 +534
Branches 0 82 +82
===========================================
+ Hits 0 288 +288
- Misses 0 242 +242
- Partials 0 4 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
dbf841e to
56e32ff
Compare
There was a problem hiding this comment.
nit: this is no longer necessary and can be removed from all other errors defined here. Please remove in a follow up PR though, no need to do this clean up item here
8a369e8 to
42a81da
Compare
|
Thanks for the feedback! I added changes (and a test) that require express to be in test mode when using the external signer feature. I'll create a separate PR for removing the unnecessary |
add signing functionality to handleV2Sign. Ticket: BG-42470
prevent express from starting up with an invalid config with respect to external signer flags. Ticket: BG-42470
When express is acting as an external signer, signerFileSystemPath should containt the path to the user's private key. Ticket: BG-42470
42a81da to
7b00932
Compare
| try { | ||
| checkSignerPrvPath(signerFileSystemPath); | ||
| } catch (e) { | ||
| throw e; | ||
| } |
There was a problem hiding this comment.
No need to catch if you're just going to immediately rethrow - feel free to handle in a follow up PR to clean up some other nits as well.
| try { | |
| checkSignerPrvPath(signerFileSystemPath); | |
| } catch (e) { | |
| throw e; | |
| } | |
| checkSignerPrvPath(signerFileSystemPath); |
handleV2SignsignerFileSystemPathargument on startup to make sure it contains a JSON file with a "prv" field