pub struct SecureSeed(/* private fields */);Expand description
Zeroize-on-drop wrapper for a raw 32-byte Ed25519 seed.
This is the portable key representation that crosses the CryptoProvider
boundary. No ring types leak through the trait — only this raw seed.
The provider materializes the internal keypair from the seed on each call.
Usage:
ⓘ
let (seed, pubkey) = provider.generate_ed25519_keypair().await?;
let sig = provider.sign_ed25519(&seed, b"hello").await?;
// seed is securely zeroed when droppedImplementations§
Trait Implementations§
Source§impl Clone for SecureSeed
impl Clone for SecureSeed
Source§fn clone(&self) -> SecureSeed
fn clone(&self) -> SecureSeed
Returns a duplicate of the value. Read more
1.0.0 · 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 SecureSeed
impl Debug for SecureSeed
Source§impl Drop for SecureSeed
impl Drop for SecureSeed
Auto Trait Implementations§
impl Freeze for SecureSeed
impl RefUnwindSafe for SecureSeed
impl Send for SecureSeed
impl Sync for SecureSeed
impl Unpin for SecureSeed
impl UnsafeUnpin for SecureSeed
impl UnwindSafe for SecureSeed
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