pub enum Signer {
SecretEccNistP256(SigningKey),
}Expand description
A general purpose signer.
Variants§
SecretEccNistP256(SigningKey)
Signer for secp256k1.
Implementations§
Source§impl Signer
impl Signer
Sourcepub fn from_secret(secret: &[u8]) -> Result<Self>
pub fn from_secret(secret: &[u8]) -> Result<Self>
Attempts to create a secp256k1 signer from the provided secret.
Source§impl Signer
impl Signer
Sourcepub fn try_from_env() -> Result<Self>
pub fn try_from_env() -> Result<Self>
Attempts to create a signer from the default environment variable Signer::ENV.
Trait Implementations§
Source§impl From<SigningKey<Secp256k1>> for Signer
impl From<SigningKey<Secp256k1>> for Signer
Source§fn from(secret: SigningKey) -> Self
fn from(secret: SigningKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnsafeUnpin for Signer
impl UnwindSafe for Signer
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