pub enum MurkIdentity {
Age(Identity),
Ssh(Identity),
}Expand description
An identity that can decrypt age-encrypted data.
Wraps either an age x25519 identity or an SSH private key identity.
Variants§
Implementations§
Source§impl MurkIdentity
impl MurkIdentity
Sourcepub fn pubkey_string(&self) -> Result<String, CryptoError>
pub fn pubkey_string(&self) -> Result<String, CryptoError>
Return the public key string for this identity.
For age keys: age1...
For SSH keys: ssh-ed25519 AAAA... or ssh-rsa AAAA...
Trait Implementations§
Source§impl Clone for MurkIdentity
impl Clone for MurkIdentity
Source§fn clone(&self) -> MurkIdentity
fn clone(&self) -> MurkIdentity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MurkIdentity
impl RefUnwindSafe for MurkIdentity
impl Send for MurkIdentity
impl Sync for MurkIdentity
impl Unpin for MurkIdentity
impl UnsafeUnpin for MurkIdentity
impl UnwindSafe for MurkIdentity
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