pub struct SigningKey<P: Parameters> { /* private fields */ }Expand description
Signing key generic over the parameters
Implementations§
Source§impl<P> SigningKey<P>where
P: Parameters,
impl<P> SigningKey<P>where
P: Parameters,
Sourcepub fn random() -> Result<(Self, VerificationKey<P>), Error>
pub fn random() -> Result<(Self, VerificationKey<P>), Error>
Sample a new random signing key and the corresponding verification key. This operation may fail if the Picnic library is not built with support for the given parameter set.
Trait Implementations§
Source§impl<P> AsRef<[u8]> for SigningKey<P>where
P: Parameters,
impl<P> AsRef<[u8]> for SigningKey<P>where
P: Parameters,
Source§impl<P: Clone + Parameters> Clone for SigningKey<P>
impl<P: Clone + Parameters> Clone for SigningKey<P>
Source§impl<P> ConstantTimeEq for SigningKey<P>where
P: Parameters,
Available on crate feature subtle only.
impl<P> ConstantTimeEq for SigningKey<P>where
P: Parameters,
Available on crate feature
subtle only.Source§impl<P> Debug for SigningKey<P>where
P: Parameters,
impl<P> Debug for SigningKey<P>where
P: Parameters,
Source§impl<'de, P> Deserialize<'de> for SigningKey<P>where
P: Parameters,
Available on crate feature serialization only.
impl<'de, P> Deserialize<'de> for SigningKey<P>where
P: Parameters,
Available on crate feature
serialization only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P: Parameters> Drop for SigningKey<P>
impl<P: Parameters> Drop for SigningKey<P>
impl<P> Eq for SigningKey<P>where
P: Parameters,
Source§impl<P> PartialEq for SigningKey<P>where
P: Parameters,
impl<P> PartialEq for SigningKey<P>where
P: Parameters,
Source§impl<P> Serialize for SigningKey<P>where
P: Parameters,
Available on crate feature serialization only.
impl<P> Serialize for SigningKey<P>where
P: Parameters,
Available on crate feature
serialization only.Source§impl<P> Signer<DynamicSignature> for SigningKey<P>where
P: Parameters,
impl<P> Signer<DynamicSignature> for SigningKey<P>where
P: Parameters,
Source§impl<P> TryFrom<&SigningKey<P>> for VerificationKey<P>where
P: Parameters,
impl<P> TryFrom<&SigningKey<P>> for VerificationKey<P>where
P: Parameters,
Source§impl<P> TryFrom<&[u8]> for SigningKey<P>where
P: Parameters,
impl<P> TryFrom<&[u8]> for SigningKey<P>where
P: Parameters,
Source§impl<P> Verifier<DynamicSignature> for SigningKey<P>where
P: Parameters,
impl<P> Verifier<DynamicSignature> for SigningKey<P>where
P: Parameters,
Source§impl<P: Parameters> Zeroize for SigningKey<P>
impl<P: Parameters> Zeroize for SigningKey<P>
Auto Trait Implementations§
impl<P> Forget for SigningKey<P>
impl<P> Freeze for SigningKey<P>where
PhantomData<P>: Freeze,
impl<P> Move for SigningKey<P>
impl<P> RefUnwindSafe for SigningKey<P>where
PhantomData<P>: RefUnwindSafe,
impl<P> Send for SigningKey<P>where
PhantomData<P>: Send,
impl<P> Sync for SigningKey<P>where
PhantomData<P>: Sync,
impl<P> Unpin for SigningKey<P>where
PhantomData<P>: Unpin,
impl<P> UnsafeUnpin for SigningKey<P>where
PhantomData<P>: UnsafeUnpin,
impl<P> UnwindSafe for SigningKey<P>where
PhantomData<P>: UnwindSafe,
Blanket Implementations§
Source§impl<S, T> AsyncSigner<S> for Twhere
T: Signer<S>,
impl<S, T> AsyncSigner<S> for Twhere
T: Signer<S>,
Source§impl<S, T> AsyncVerifier<S> for Twhere
T: Verifier<S>,
impl<S, T> AsyncVerifier<S> for Twhere
T: Verifier<S>,
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