Trait LocalIdentitySource
pub trait LocalIdentitySource: Send + Sync {
// Required method
fn load(&self) -> Option<LocalIdentity>;
// Provided method
fn public_photo(&self) -> Option<([u8; 32], ProfilePhoto)> { ... }
}Expand description
Resolves the local person’s identity. Not memoised by callers: a process hosting more than one identity must not be frozen into the first one.
Required Methods§
fn load(&self) -> Option<LocalIdentity>
Provided Methods§
fn public_photo(&self) -> Option<([u8; 32], ProfilePhoto)>
fn public_photo(&self) -> Option<([u8; 32], ProfilePhoto)>
Bounded public presentation, bound to the certified person’s root key.
Implementors§
impl LocalIdentitySource for FixedIdentity
impl LocalIdentitySource for NoLocalIdentity
impl LocalIdentitySource for RuntimeIdentity
Available on crate feature
local-daemons only.