-
Notifications
You must be signed in to change notification settings - Fork 47
Client side account recovery #335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0ee0ed9 to
9de0a03
Compare
guggero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on this! Exciting to see the last milestone for leaving the alpha stage being so close to completion 🎉
Main comments are about unit test cases and ease of use in regtest.
9de0a03 to
d65c70d
Compare
ea7d71b to
006c11c
Compare
guggero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting pretty close! Mostly down to style and UX comments now.
Will run a set of manual tests in the next round.
006c11c to
d69cdad
Compare
|
@positiveblue, remember to re-request review from reviewers when ready |
|
I tested this on regtest today. The recovery is still running after almost 9 hours, and it looks like it's working on the last transaction: Any idea what could be the problem? Doesn't look like this is going to finish. |
ef586e1 to
9ec50cf
Compare
The default value for server assisted is 500 but the user is able to give us a hint of how many accounts we are looking for.
Add a new type (`auctioneerData`) containing the auctioneer data for each evironment (mainnet, testnet and regtest).
7016d18 to
505f541
Compare
guggero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work on this 🎉
We're very very close now, only the TODOs about the account being closed need to be addressed, the rest looks good.
I was able to recover and close my regtest account with this 💯
505f541 to
94c7875
Compare
RecoveryHelper is a type that helps speed up account recovery by caching the tweaked trader and auctioneer keys for faster script lookups.
94c7875 to
26ce241
Compare
26ce241 to
7a2b136
Compare
7a2b136 to
42c4575
Compare
42c4575 to
18b9efd
Compare
guggero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK, great work on this 💯 I'm very happy about how this turned out!
Pushed a small commit to fix a log message (because chainhash.Hash has a String() method, using %x causes double hex encoding).
mod: update lnd and pool to latest versions
Enable full client-side recovery of account state.
Using the same LND node as a backend, the process looks like following:
expiryheight.After the process is complete, the user is able to close the left expired accounts without any server assistance.