pub struct UserKeyImportResult {
pub user_id: String,
pub replaced: bool,
}Expand description
Result of Request::UserKeyImport (#85 ask 2).
Fields§
§user_id: StringThe b64u: identity now in effect. Compare it against the one you are recovering — the
phrase’s checksum catches most transcription errors, but a user_id that does not match is
the definitive answer, and the only one that distinguishes “restored the wrong key” from
“peers have not seen me yet”.
replaced: booltrue when this discarded a REAL identity — a user key the node had loaded from disk,
rather than one it minted at this boot and had never presented to anyone.
The distinction is the useful one: a fresh node always has a key on disk before an import
can run (its own boot mints one), so “a file existed” would be true for every recovery on
new hardware and would have a UI warn that something was destroyed when nothing was.
Trait Implementations§
Source§impl Clone for UserKeyImportResult
impl Clone for UserKeyImportResult
Source§fn clone(&self) -> UserKeyImportResult
fn clone(&self) -> UserKeyImportResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more