Struct safe_crypto::PublicSignKey [−][src]
pub struct PublicSignKey { /* fields omitted */ }
Public signing key used to verify that the signature appended to a message was actually issued by the creator of the public key.
Methods
impl PublicSignKey
[src]
impl PublicSignKey
pub fn verify_detached(&self, signature: &Signature, data: &[u8]) -> bool
[src]
pub fn verify_detached(&self, signature: &Signature, data: &[u8]) -> bool
Verifies the detached signature
.
Returns true
if the signature is valid the data
is verified.
pub fn from_bytes(public_key: [u8; 32]) -> Self
[src]
pub fn from_bytes(public_key: [u8; 32]) -> Self
Construct from bytes. Useful when it was serialised before.
pub fn into_bytes(self) -> [u8; 32]
[src]
pub fn into_bytes(self) -> [u8; 32]
Convert the PublicSignKey
into the raw underlying bytes.
For anyone who wants to store the public signing key.
Trait Implementations
impl Debug for PublicSignKey
[src]
impl Debug for PublicSignKey
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for PublicSignKey
[src]
impl Hash for PublicSignKey
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for PublicSignKey
[src]
impl PartialEq for PublicSignKey
fn eq(&self, other: &PublicSignKey) -> bool
[src]
fn eq(&self, other: &PublicSignKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PublicSignKey) -> bool
[src]
fn ne(&self, other: &PublicSignKey) -> bool
This method tests for !=
.
impl Eq for PublicSignKey
[src]
impl Eq for PublicSignKey
impl PartialOrd for PublicSignKey
[src]
impl PartialOrd for PublicSignKey
fn partial_cmp(&self, other: &PublicSignKey) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &PublicSignKey) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &PublicSignKey) -> bool
[src]
fn lt(&self, other: &PublicSignKey) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &PublicSignKey) -> bool
[src]
fn le(&self, other: &PublicSignKey) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &PublicSignKey) -> bool
[src]
fn gt(&self, other: &PublicSignKey) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &PublicSignKey) -> bool
[src]
fn ge(&self, other: &PublicSignKey) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for PublicSignKey
[src]
impl Ord for PublicSignKey
fn cmp(&self, other: &PublicSignKey) -> Ordering
[src]
fn cmp(&self, other: &PublicSignKey) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Clone for PublicSignKey
[src]
impl Clone for PublicSignKey
fn clone(&self) -> PublicSignKey
[src]
fn clone(&self) -> PublicSignKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for PublicSignKey
[src]
impl Copy for PublicSignKey
impl Display for PublicSignKey
[src]
impl Display for PublicSignKey
Auto Trait Implementations
impl Send for PublicSignKey
impl Send for PublicSignKey
impl Sync for PublicSignKey
impl Sync for PublicSignKey