-
Notifications
You must be signed in to change notification settings - Fork 906
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
Recover mode for recovering using codex32 secret string. #6302
Merged
Commits on Jul 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 544de37 - Browse repository at this point
Copy the full SHA 544de37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32a8df8 - Browse repository at this point
Copy the full SHA 32a8df8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8d3320 - Browse repository at this point
Copy the full SHA b8d3320View commit details -
lightningd/common: Added --recover flag to populate HSM_secret with a…
…ppropriate secret through a valid codex32 secret.
Configuration menu - View commit details
-
Copy full SHA for a9bfe0f - Browse repository at this point
Copy the full SHA a9bfe0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e6becd - Browse repository at this point
Copy the full SHA 6e6becdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9a3f3c - Browse repository at this point
Copy the full SHA e9a3f3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 589b164 - Browse repository at this point
Copy the full SHA 589b164View commit details -
Configuration menu - View commit details
-
Copy full SHA for f21493f - Browse repository at this point
Copy the full SHA f21493fView commit details -
Nothing major here: 1. size_t for lengths. 2. pass engine to checksum_verify, as caller wants ->len (avoid repeating 13/15 magic numbers). 3. Use x.member instesad of (&x)->member. 4. Return memcmp result directly instead of if. 5. Spacing removal, `;;` removal. 6. codexl is a bool `true`/`false` not 0/1 (it's the same, but clearer) 7. Make sanity_check assign *fail directly. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for be61a9d - Browse repository at this point
Copy the full SHA be61a9dView commit details -
codex32: document the complete representations from BIP, adjust numbers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 5fef61c - Browse repository at this point
Copy the full SHA 5fef61cView commit details -
Firstly, I wanted the results easier to use: 1. Make them always lower case, even if the string was UPPER. 2. Decode the payload for them. 3. Don't give the user any fields they don't need, and make the field sizes explicit. Secondly, I wanted to avoid the pattern of "check in one place, assume in another", in favour of "check on use". So, I changed the code to lower the string if it needs to at the start, and then changed the pull functions so we always use them to get data: this way we should fail clearly and gracefully if we don't have enough data. I made all the checks explicit, where we assign the fields. I also addressed the FIXME: I think the array is *often* one shorter, but not always, so I trim the last byte at the end if needed. [ Aditya modified the tests to work ] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 40701a0 - Browse repository at this point
Copy the full SHA 40701a0View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.