pub struct LocalKey { /* private fields */ }Expand description
A private key held in memory, for tests and native tools. The browser never holds one: its wallet signs.
Implementations§
Source§impl LocalKey
impl LocalKey
Trait Implementations§
Source§impl Signer for LocalKey
Available on crate feature sign only.
impl Signer for LocalKey
Available on crate feature
sign only.Source§fn signature_is_known_good(&self) -> bool
fn signature_is_known_good(&self) -> bool
The signature is made here from the key the address comes from.
Source§fn sign_typed(
&self,
domain: &Domain,
data: &TypedStruct<'_>,
) -> impl Future<Output = Result<Signature, SignError>>
fn sign_typed( &self, domain: &Domain, data: &TypedStruct<'_>, ) -> impl Future<Output = Result<Signature, SignError>>
Signs
data under domain as EIP-712 typed data.impl ZeroizeOnDrop for LocalKey
Available on crate feature
sign only.Holds because SigningKey wipes itself; the assertion above checks that.
Auto Trait Implementations§
impl Forget for LocalKey
impl Freeze for LocalKey
impl Move for LocalKey
impl RefUnwindSafe for LocalKey
impl Send for LocalKey
impl Sync for LocalKey
impl Unpin for LocalKey
impl UnsafeUnpin for LocalKey
impl UnwindSafe for LocalKey
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