pub struct Identity { /* private fields */ }Expand description
A member’s secret identity. Zeroizes on drop; Debug shows only the public keys.
Implementations§
Source§impl Identity
impl Identity
Sourcepub fn parse(s: &str) -> Result<Self>
pub fn parse(s: &str) -> Result<Self>
Parses an OXABL-CACHE-IDENTITY-1… string, in upper or lower case.
Sourcepub fn to_secret_string(&self) -> Result<SecretString>
pub fn to_secret_string(&self) -> Result<SecretString>
The identity string. Anyone who sees it holds the identity.
Sourcepub fn signing_public(&self) -> PublicKey
pub fn signing_public(&self) -> PublicKey
The Ed25519 public key that signs this member’s entries.
Sourcepub fn descriptor(&self) -> Result<MemberDescriptor>
pub fn descriptor(&self) -> Result<MemberDescriptor>
The public halves, for member add.
Sourcepub fn descriptor_string(&self) -> Result<String>
pub fn descriptor_string(&self) -> Result<String>
The Bech32 string of Identity::descriptor.
Trait Implementations§
impl ZeroizeOnDrop for Identity
Every secret field zeroizes on drop: the X25519 secret, the age identity and the signing key.
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