Struct tendermint::public_key::Secp256k1 [−][src]
pub struct Secp256k1 { /* 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
.
Serialize this VerifyingKey
as a SEC1-encoded bytestring
(with point compression applied)
Trait Implementations
impl<D> DigestVerifier<D, Signature<Secp256k1>> for VerifyingKey where
D: Digest<OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>,
impl<D> DigestVerifier<D, Signature<Secp256k1>> for VerifyingKey where
D: Digest<OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>,
impl<D> DigestVerifier<D, Signature> for VerifyingKey where
D: Digest<OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>,
impl<D> DigestVerifier<D, Signature> for VerifyingKey where
D: Digest<OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>,
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
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V