Conversation
This reverts commit 37f5db4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds preliminary support for Recovery Phrases, enabling users to backup and restore their Gridsync "rootcap" by writing down -- and later re-entering -- a BIP-39-compatible 12-word phrase. The user interface provided features automatic/tab completion for words and currently supports 11 different languages (thanks to the wordlists provided by the
mnemonicpackage):This functionality is made possible by recent changes in Tahoe-LAFS (version 1.20.0) that allow mutable objects to be created with user-supplied RSA keys (PRs #1365, #1245) as well as two new Rust libraries:
deterministic-keygen(crates.io, PyPI.org) for generating keys deterministically andlafs(crates.io, PyPI.org) for independently verifying the derivation of dircap URIs.Please note that Recovery Phrases do not fully replace Gridsync's existing "Recovery Keys" system. Naturally, users will still need to maintain a record of additional connection information (such as the storage fURLs comprising the storage grid) in order to reconnect to a grid "from scratch" and perform a restoration. In addition, this feature is presently gated behind a feature flag out of caution; Recovery Phrases can be enabled by either setting
recovery_phrasestotrueingridsync/resources/config.txtor by setting the equivalent environment variableGRIDSYNC_FEATURES_RECOVERY_PHRASES=true.Special thanks to the Tahoe-LAFS Foundation for supporting the research and development of this feature!