Struct SigningKey
pub struct SigningKey { /* private fields */ }Expand description
A normalized secret derived from Lace’s 32-byte seed (not a raw scalar). Secret storage is erased on drop, best effort; compiler copies may remain.
Implementations§
§impl SigningKey
impl SigningKey
pub fn from_seed(seed: [u8; 32]) -> SigningKey
pub fn verification_key(&self) -> VerificationKey
pub fn mark_digest(
&self,
digest: [u8; 32],
aux: [u8; 32],
) -> Result<Mark, CryptoError>
pub fn mark_digest( &self, digest: [u8; 32], aux: [u8; 32], ) -> Result<Mark, CryptoError>
Caller owns auxiliary randomness. Fixed values are allowed for vectors; fresh CSPRNG-generated bytes are recommended for ordinary signing.
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