Struct k256::schnorr::VerifyingKey
source · pub struct VerifyingKey { /* private fields */ }
Available on crate feature
schnorr
only.Expand description
Taproot Schnorr verifying key.
Implementations§
source§impl VerifyingKey
impl VerifyingKey
sourcepub fn as_affine(&self) -> &AffinePoint
pub fn as_affine(&self) -> &AffinePoint
Borrow the inner AffinePoint
this type wraps.
sourcepub fn to_bytes(&self) -> FieldBytes
pub fn to_bytes(&self) -> FieldBytes
Serialize as bytes.
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Parse verifying key from big endian-encoded x-coordinate.
Trait Implementations§
source§impl AsRef<VerifyingKey> for SigningKey
impl AsRef<VerifyingKey> for SigningKey
source§fn as_ref(&self) -> &VerifyingKey
fn as_ref(&self) -> &VerifyingKey
Converts this type into a shared reference of the (usually inferred) input type.
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 + FixedOutput<OutputSize = U32>,
impl<D> DigestVerifier<D, Signature> for VerifyingKeywhere
D: Digest + FixedOutput<OutputSize = U32>,
source§impl From<&VerifyingKey> for AffinePoint
impl From<&VerifyingKey> for AffinePoint
source§fn from(vk: &VerifyingKey) -> AffinePoint
fn from(vk: &VerifyingKey) -> AffinePoint
Converts to this type from the input type.
source§impl From<&VerifyingKey> for PublicKey
impl From<&VerifyingKey> for PublicKey
source§fn from(vk: &VerifyingKey) -> PublicKey
fn from(vk: &VerifyingKey) -> PublicKey
Converts to this type from the input type.
source§impl From<VerifyingKey> for AffinePoint
impl From<VerifyingKey> for AffinePoint
source§fn from(vk: VerifyingKey) -> AffinePoint
fn from(vk: VerifyingKey) -> AffinePoint
Converts to this type from the input type.
source§impl From<VerifyingKey> for PublicKey
impl From<VerifyingKey> for PublicKey
source§fn from(vk: VerifyingKey) -> PublicKey
fn from(vk: VerifyingKey) -> PublicKey
Converts to this type from the input type.
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 ==
.