pub struct EphemeralKeyPair { /* private fields */ }Available on crate feature
keyless only.Expand description
Short-lived key pair used for keyless signing.
Implementations§
Source§impl EphemeralKeyPair
impl EphemeralKeyPair
Sourcepub fn generate(expiry_secs: u64) -> Self
pub fn generate(expiry_secs: u64) -> Self
Generates a new ephemeral key pair with the given expiry (in seconds).
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Returns true if the key pair has expired.
Sourcepub fn public_key(&self) -> &Ed25519PublicKey
pub fn public_key(&self) -> &Ed25519PublicKey
Returns the public key.
Trait Implementations§
Source§impl Clone for EphemeralKeyPair
impl Clone for EphemeralKeyPair
Source§fn clone(&self) -> EphemeralKeyPair
fn clone(&self) -> EphemeralKeyPair
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 EphemeralKeyPair
impl RefUnwindSafe for EphemeralKeyPair
impl Send for EphemeralKeyPair
impl Sync for EphemeralKeyPair
impl Unpin for EphemeralKeyPair
impl UnsafeUnpin for EphemeralKeyPair
impl UnwindSafe for EphemeralKeyPair
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