Struct ethers::core::k256::ecdsa::VerifyingKey [−][src]
pub struct VerifyingKey { /* fields omitted */ }
Expand description
ECDSA/secp256k1 verification key (i.e. public key)
Implementations
Initialize VerifyingKey
from a SEC1-encoded public key.
pub fn from_encoded_point(
public_key: &EncodedPoint<Secp256k1>
) -> Result<VerifyingKey, Error>
pub fn from_encoded_point(
public_key: &EncodedPoint<Secp256k1>
) -> Result<VerifyingKey, Error>
Initialize VerifyingKey
from a SEC1 EncodedPoint
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Parse SubjectPublicKeyInfo
into a public key object.
Deserialize object from ASN.1 DER-encoded SubjectPublicKeyInfo
(binary format). Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Serialize this value as a SEC1 EncodedPoint
, optionally applying
point compression. Read more
Performs the conversion.
impl<S> Verifier<S> for VerifyingKey where
S: PrehashSignature,
VerifyingKey: DigestVerifier<<S as PrehashSignature>::Digest, S>,
impl<S> Verifier<S> for VerifyingKey where
S: PrehashSignature,
VerifyingKey: DigestVerifier<<S as PrehashSignature>::Digest, S>,
Auto Trait Implementations
impl RefUnwindSafe for VerifyingKey
impl Send for VerifyingKey
impl Sync for VerifyingKey
impl Unpin for VerifyingKey
impl UnwindSafe for VerifyingKey
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more