pub struct SigningKey { /* private fields */ }Expand description
Compact 64-byte composite signing key seed (seed_mldsa65[32] || seed_ed25519[32]).
Automatically zeroized on drop and redacted in Debug.
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Parses a 64-byte composite signing key seed.
Sourcepub fn expose_bytes(&self) -> &[u8; 64]
pub fn expose_bytes(&self) -> &[u8; 64]
Exposes the raw 64-byte composite seed (handle with extreme care!).
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
Derives the corresponding 1,984-byte composite verifying key.
Trait Implementations§
Source§impl Debug for SigningKey
impl Debug for SigningKey
Auto Trait Implementations§
impl Freeze for SigningKey
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnsafeUnpin for SigningKey
impl UnwindSafe for SigningKey
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