Trait KeypairRef
pub trait KeypairRef: AsRef<Self::VerifyingKey> {
type VerifyingKey: Clone;
}Expand description
Signing keypair with an associated verifying key.
This represents a type which holds both a signing key and a verifying key.
Required Associated Types§
type VerifyingKey: Clone
type VerifyingKey: Clone
Verifying key type for this keypair.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
§impl<C> KeypairRef for SigningKey<C>where
C: PrimeCurve + CurveArithmetic,
<C as CurveArithmetic>::Scalar: Invert<Output = CtOption<<C as CurveArithmetic>::Scalar>> + SignPrimitive<C>,
<<C as Curve>::FieldBytesSize as Add>::Output: ArrayLength<u8>,
Available on crate feature verifying only.
impl<C> KeypairRef for SigningKey<C>where
C: PrimeCurve + CurveArithmetic,
<C as CurveArithmetic>::Scalar: Invert<Output = CtOption<<C as CurveArithmetic>::Scalar>> + SignPrimitive<C>,
<<C as Curve>::FieldBytesSize as Add>::Output: ArrayLength<u8>,
Available on crate feature
verifying only.