pub enum SKey {
Ed25519 {
key: Keypair,
expires: Option<DateTime<Utc>>,
},
}
Variants§
Implementations§
source§impl SKey
impl SKey
pub fn sign(&self, h: &[u8]) -> Result<Signature, KeyError>
pub fn sign_raw(&self, h: &[u8]) -> Result<String, KeyError>
pub fn generate(expires: Option<DateTime<Utc>>) -> Self
pub fn save(&self, password: Option<&str>) -> SecretKey
pub fn public_key(&self) -> PublicKey
pub fn pkey(&self) -> PKey
Auto Trait Implementations§
impl RefUnwindSafe for SKey
impl Send for SKey
impl Sync for SKey
impl Unpin for SKey
impl UnwindSafe for SKey
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