pub struct Keypair {
pub public_key: PublicKey,
pub secret_key: SecretKey,
}Expand description
One generated ML-DSA-65 key pair.
Fields§
§public_key: PublicKeyPublic verification key.
secret_key: SecretKeySecret signing key.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Keypair
impl Freeze for Keypairwhere
*const ExpandedSigningKey<MlDsa65> is !null: Freeze,
PhantomData<ExpandedSigningKey<MlDsa65>>: Freeze,
*const Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>> is !null: Freeze,
PhantomData<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>: Freeze,
[u8; 32]: Freeze,
*const Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>> is !null: Freeze,
PhantomData<Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>>: Freeze,
*const PrecomputedValues<MlDsa65> is !null: Freeze,
PhantomData<PrecomputedValues<MlDsa65>>: Freeze,
impl Move for Keypair
impl RefUnwindSafe for Keypairwhere
[u8; 32]: RefUnwindSafe,
[u8; 64]: RefUnwindSafe,
[Polynomial<BaseField>; 5]: RefUnwindSafe,
[Polynomial<BaseField>; 6]: RefUnwindSafe,
[NttPolynomial<BaseField>; 5]: RefUnwindSafe,
[NttPolynomial<BaseField>; 6]: RefUnwindSafe,
[NttVector<BaseField, UInt<UInt<UInt<UTerm, B1>, B0>, B1>>; 6]: RefUnwindSafe,
impl Send for Keypairwhere
BoxRaw<ExpandedSigningKey<MlDsa65>>: Send,
BoxRaw<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>: Send,
Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>: Send,
BoxRaw<Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>>: Send,
BoxRaw<PrecomputedValues<MlDsa65>>: Send,
impl Sync for Keypairwhere
BoxRaw<ExpandedSigningKey<MlDsa65>>: Sync,
BoxRaw<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>: Sync,
Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>: Sync,
BoxRaw<Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>>: Sync,
BoxRaw<PrecomputedValues<MlDsa65>>: Sync,
impl Unpin for Keypair
impl UnsafeUnpin for Keypairwhere
*const ExpandedSigningKey<MlDsa65> is !null: UnsafeUnpin,
PhantomData<ExpandedSigningKey<MlDsa65>>: UnsafeUnpin,
*const Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>> is !null: UnsafeUnpin,
PhantomData<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>: UnsafeUnpin,
[u8; 32]: UnsafeUnpin,
*const Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>> is !null: UnsafeUnpin,
PhantomData<Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>>: UnsafeUnpin,
*const PrecomputedValues<MlDsa65> is !null: UnsafeUnpin,
PhantomData<PrecomputedValues<MlDsa65>>: UnsafeUnpin,
impl UnwindSafe for Keypair
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