Skip to content
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

tool/hsmtool: add a 'guesstoremote' command #3292

Merged
merged 2 commits into from
Nov 29, 2019

Conversation

darosior
Copy link
Collaborator

This is the static_remotekey-only version of #3217 (since I noticed to_remote keys are (/were) actually derived from the local per_commitment_point, by the way if someone could explains me why I'd be interested ^^).

I added a note to the README about it since all major implementations will implement it, it's likely that most of the newly created channels will enable option_static_remotekey in the near future and that this might be useful.

@cdecker
Copy link
Member

cdecker commented Nov 25, 2019

Nice tool, my main concern is that we're starting to crowd the README.md again, putting niche things in there and distracting from the simple getting started part. We should probably start working on an faq that collects these things instead.

README.md Outdated Show resolved Hide resolved
tools/hsmtool.c Outdated Show resolved Hide resolved
tools/hsmtool.c Outdated Show resolved Hide resolved
@cdecker cdecker self-assigned this Nov 25, 2019
@cdecker cdecker added the wallet label Nov 25, 2019
@darosior
Copy link
Collaborator Author

Nice tool, my main concern is that we're starting to crowd the README.md again, putting niche things in there and distracting from the simple getting started part. We should probably start working on an faq that collects these things instead.

Yeah I was not sure about the README addtion.
About the FAQ that's my feeling too, maybe we could add an intro (we would repeat things but I think it's OK) and a FAC to https://lightning.readthedocs.io/, maybe both on the homepage until we have too many questions ?

This, in the case of data loss on a channel with `option_static_remotekey`
negotiated, allows to likely (if the dbid is not unreasonable) recover
the funds from a remote unilateral close just with the hsm_secret.

Changelog-added: A new command, 'guesstoremote', is added to the hsmtool. It is meant to be used to recover funds after an unilateral close of a channel with `option_static_remotekey` enabled.
@darosior
Copy link
Collaborator Author

Thanks for the review !
Actually the premature argv[] access was used in all commands and so dirty that I added a drive-by commit to fix it.

@cdecker
Copy link
Member

cdecker commented Nov 29, 2019

ACK e0988a2

@cdecker
Copy link
Member

cdecker commented Nov 29, 2019

I think we should earmark these things for later collection into an faq in the docs 😉

@cdecker cdecker merged commit 36e8d83 into ElementsProject:master Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants