pub struct SignerHandle<K: KeyScheme> { /* private fields */ }Expand description
The unlocked handle. Drop wipes the secret.
Cloning a SignerHandle clones the underlying zeroizing buffer — both
copies are independently wiped on drop. This is expensive for high-frequency
signing; prefer sharing an Arc<SignerHandle<K>> for that case.
Implementations§
Source§impl<K: KeyScheme> SignerHandle<K>
impl<K: KeyScheme> SignerHandle<K>
Sourcepub fn public_key(&self) -> &K::PublicKey
pub fn public_key(&self) -> &K::PublicKey
Borrow the derived public key. Cheap (precomputed at unlock time).
Trait Implementations§
Source§impl<K: KeyScheme> Clone for SignerHandle<K>
impl<K: KeyScheme> Clone for SignerHandle<K>
Auto Trait Implementations§
impl<K> Freeze for SignerHandle<K>
impl<K> RefUnwindSafe for SignerHandle<K>
impl<K> Send for SignerHandle<K>
impl<K> Sync for SignerHandle<K>
impl<K> Unpin for SignerHandle<K>
impl<K> UnsafeUnpin for SignerHandle<K>
impl<K> UnwindSafe for SignerHandle<K>
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