pub struct FPFKeyPair { /* private fields */ }Expand description
A key pair for FPF (Freedom of the Press Foundation).
Implementations§
Source§impl FPFKeyPair
impl FPFKeyPair
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
Returns the verification key.
Sourcepub fn sign<D: DomainTag>(&self, msg: &[u8]) -> Signature<D>
pub fn sign<D: DomainTag>(&self, msg: &[u8]) -> Signature<D>
Sign msg in domain D using the FPF signing key.
Sourcepub fn from_bytes(seed: [u8; 32]) -> Self
pub fn from_bytes(seed: [u8; 32]) -> Self
Reconstruct an FPFKeyPair from its secret.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FPFKeyPair
impl RefUnwindSafe for FPFKeyPair
impl Send for FPFKeyPair
impl Sync for FPFKeyPair
impl Unpin for FPFKeyPair
impl UnsafeUnpin for FPFKeyPair
impl UnwindSafe for FPFKeyPair
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