Skip to main content

IdentityProvider

Trait IdentityProvider 

Source
pub trait IdentityProvider: Send + Sync {
    // Required method
    fn identity(&self) -> &IdentityKeyPair;

    // Provided method
    fn fingerprint(&self) -> IdentityFingerprint { ... }
}
Expand description

Provides a cryptographic identity for the current client.

For the device group, this should be one shared identity, for the single-device, a unique identity. This should be generated on first run and stored persistently, in secure storage where possible.

Required Methods§

Source

fn identity(&self) -> &IdentityKeyPair

Get reference to the identity keypair

Provided Methods§

Source

fn fingerprint(&self) -> IdentityFingerprint

Get the fingerprint of this identity

Implementors§