Struct ethcontract::errors::InvalidPrivateKey
source · pub struct InvalidPrivateKey;Expand description
An error indicating an invalid private key. Private keys for secp256k1 must
be exactly 32 bytes and fall within the range [1, n) where n is the
order of the generator point of the curve.
Trait Implementations§
source§impl Debug for InvalidPrivateKey
impl Debug for InvalidPrivateKey
source§impl Display for InvalidPrivateKey
impl Display for InvalidPrivateKey
source§impl Error for InvalidPrivateKey
impl Error for InvalidPrivateKey
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for InvalidPrivateKey
impl From<Error> for InvalidPrivateKey
source§fn from(err: Secp256k1Error) -> Self
fn from(err: Secp256k1Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidPrivateKey
impl RefUnwindSafe for InvalidPrivateKey
impl Send for InvalidPrivateKey
impl Sync for InvalidPrivateKey
impl Unpin for InvalidPrivateKey
impl UnwindSafe for InvalidPrivateKey
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