pub struct Identity { /* private fields */ }Implementations§
Source§impl Identity
impl Identity
pub fn generate() -> Self
pub fn from_seed(seed: [u8; 32]) -> Self
Sourcepub fn load_or_create(path: &Path) -> Result<Self>
pub fn load_or_create(path: &Path) -> Result<Self>
Load the seed from path, creating a new identity there if absent.
pub fn verifying_key(&self) -> VerifyingKey
pub fn public_key_b64(&self) -> String
pub fn sign_b64(&self, msg: &[u8]) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more