pub struct MLDSA87KeyPair { /* private fields */ }Implementations§
Source§impl MLDSA87KeyPair
impl MLDSA87KeyPair
pub fn from_bytes(raw: &[u8]) -> Result<Self, Error>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn public_key(&self) -> MLDSA87PublicKey
pub fn generate() -> Self
pub fn with_key_id(self, key_id: &str) -> Self
Trait Implementations§
Source§impl Clone for MLDSA87KeyPair
impl Clone for MLDSA87KeyPair
Source§fn clone(&self) -> MLDSA87KeyPair
fn clone(&self) -> MLDSA87KeyPair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MLDSA87KeyPair
impl Debug for MLDSA87KeyPair
Source§impl MLDSAKeyPairLike for MLDSA87KeyPair
impl MLDSAKeyPairLike for MLDSA87KeyPair
fn jwt_alg_name() -> &'static str
fn key_pair(&self) -> &MLDSAKeyPair
fn key_id(&self) -> &Option<String>
fn metadata(&self) -> &Option<KeyMetadata>
fn attach_metadata(&mut self, metadata: KeyMetadata) -> Result<(), Error>
fn sign<CustomClaims: Serialize>( &self, claims: JWTClaims<CustomClaims>, ) -> Result<String, Error>
fn sign_with_options<CustomClaims: Serialize>( &self, claims: JWTClaims<CustomClaims>, opts: &HeaderOptions, ) -> Result<String, Error>
Auto Trait Implementations§
impl Freeze for MLDSA87KeyPair
impl RefUnwindSafe for MLDSA87KeyPair
impl Send for MLDSA87KeyPair
impl Sync for MLDSA87KeyPair
impl Unpin for MLDSA87KeyPair
impl UnsafeUnpin for MLDSA87KeyPair
impl UnwindSafe for MLDSA87KeyPair
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