pub struct GhostKeyInfo {
pub fingerprint: String,
pub label: Option<String>,
pub notary_info: String,
pub verifying_key_bytes: Option<Vec<u8>>,
pub backed_up: bool,
}Expand description
Summary info about a stored ghostkey.
Fields§
§fingerprint: String§label: Option<String>§notary_info: StringThe notary certificate info field (encodes donation tier).
Historically called delegate_info — the wire-format key is frozen
via #[serde(rename)] for backward compat with stored state.
See freenet/web#24.
verifying_key_bytes: Option<Vec<u8>>Ed25519 verifying key bytes (32 bytes). Added in 0.2.2 for dapps that need the raw key (e.g. Harvest store contract parameters).
backed_up: boolWhether the user has ever exported this identity.
On most nodes the vault holds the only copy of a ghostkey, so an identity that has never left it is one lost disk away from gone. The vault marks un-exported identities so the reminder sits where someone is looking at something they own, rather than mid-purchase where it is just an obstacle between them and finishing.
#[serde(default)] so a record written by an older delegate reads back
as “not backed up” – the safe direction, since over-warning costs a
nudge and under-warning costs the key.
Trait Implementations§
Source§impl Clone for GhostKeyInfo
impl Clone for GhostKeyInfo
Source§fn clone(&self) -> GhostKeyInfo
fn clone(&self) -> GhostKeyInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more