Struct linkspace_cryptography::schnorr::VerifyingKey
source · pub struct VerifyingKey { /* private fields */ }Expand description
Taproot Schnorr verifying key.
Implementations§
source§impl VerifyingKey
impl VerifyingKey
sourcepub fn verify_prehashed(
&self,
msg_digest: &[u8; 32],
sig: &Signature
) -> Result<(), Error>
pub fn verify_prehashed( &self, msg_digest: &[u8; 32], sig: &Signature ) -> Result<(), Error>
Verify Schnorr signature.
⚠️ Warning
This is a low-level interface intended only for unusual use cases involving verifying pre-hashed messages.
The preferred interface is the Verifier trait.
sourcepub fn as_affine(&self) -> &AffinePoint
pub fn as_affine(&self) -> &AffinePoint
Borrow the inner AffinePoint this type wraps.
sourcepub fn to_bytes(
&self
) -> GenericArray<u8, <<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>
pub fn to_bytes( &self ) -> GenericArray<u8, <<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>
Serialize as bytes.
sourcepub fn from_bytes(bytes: &[u8]) -> Result<VerifyingKey, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<VerifyingKey, Error>
Parse verifying key from big endian-encoded x-coordinate.
Trait Implementations§
source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
source§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for VerifyingKey
impl Debug for VerifyingKey
source§impl<D> DigestVerifier<D, Signature> for VerifyingKeywhere
D: Digest<OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>> + FixedOutput,
impl<D> DigestVerifier<D, Signature> for VerifyingKeywhere D: Digest<OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>> + FixedOutput,
source§impl PartialEq<VerifyingKey> for VerifyingKey
impl PartialEq<VerifyingKey> for VerifyingKey
source§fn eq(&self, other: &VerifyingKey) -> bool
fn eq(&self, other: &VerifyingKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.