pub struct InstallOutcome {
pub active_relay_id: String,
pub credential_version: u64,
pub encryption_backend: &'static str,
pub generated_encryption_key: bool,
pub generated_device_private_key: bool,
pub key_pending: bool,
}Expand description
Outcome of install_credentials — useful for callers that want to
surface “this is the first sign-in on this machine” or report which
credstore backend was used.
Fields§
§active_relay_id: StringActive relay_id after the install (matches MultiConfig.active_relay_id).
credential_version: u64New credential_version value persisted to disk.
encryption_backend: &'static strBackend used for the AES key write: "keyring" or "plaintext".
generated_encryption_key: boolTrue when this call generated the AES key (vs. reused an existing one).
After the E2EE-001 fix this is only true when the caller passed in a
pre-existing master key path that wrote into the credstore; brand-new
devices never fabricate a master key locally and instead surface
key_pending = true.
generated_device_private_key: boolTrue when this call generated the X25519 device key.
key_pending: boolTrue when no user-scoped master AES key was available at install
time. The device’s X25519 keypair is registered with the relay, but
every push/pull must trigger retry_key_bundle + poll_key_bundle
until a paired device responds with an encrypted bundle.
Trait Implementations§
Source§impl Clone for InstallOutcome
impl Clone for InstallOutcome
Source§fn clone(&self) -> InstallOutcome
fn clone(&self) -> InstallOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more