Struct recrypt::api::PublicSigningKey [−]
pub struct PublicSigningKey { /* fields omitted */ }
Implementations
impl PublicSigningKey
impl PublicSigningKey
pub fn new_from_slice(bytes: &[u8]) -> Result<PublicSigningKey, RecryptErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<PublicSigningKey, RecryptErr>
construct $t from byte slice. Input slice must be exactly the correct length for the type.
Returns
Ok($t) or Err($RecryptErr::InputWrongSize]
impl PublicSigningKey
impl PublicSigningKey
pub fn verify<A: Hashable>(
&self,
message: &A,
signature: &Ed25519Signature
) -> bool
pub fn verify<A: Hashable>(
&self,
message: &A,
signature: &Ed25519Signature
) -> bool
Verify that the signature was signed by its private key over the hashable bytes of the message.
Returns true if all the values are valid and the signature can be verified.
Trait Implementations
impl Clone for PublicSigningKey
impl Clone for PublicSigningKey
fn clone(&self) -> PublicSigningKey
fn clone(&self) -> PublicSigningKey
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for PublicSigningKey
impl Debug for PublicSigningKey
impl<'a> From<&'a SigningKeypair> for PublicSigningKey
impl<'a> From<&'a SigningKeypair> for PublicSigningKey
fn from(kp: &SigningKeypair) -> PublicSigningKey
fn from(kp: &SigningKeypair) -> PublicSigningKey
Performs the conversion.
impl From<PublicSigningKey> for [u8; 32]
impl From<PublicSigningKey> for [u8; 32]
fn from(t: PublicSigningKey) -> Self
fn from(t: PublicSigningKey) -> Self
Performs the conversion.
impl Hash for PublicSigningKey
impl Hash for PublicSigningKey
impl Hashable for PublicSigningKey
impl Hashable for PublicSigningKey
fn to_bytes(&self) -> ByteVector
fn to_bytes(&self) -> ByteVector
Convert self to a stable byte representation.
impl PartialEq<PublicSigningKey> for PublicSigningKey
impl PartialEq<PublicSigningKey> for PublicSigningKey
impl Copy for PublicSigningKey
impl Eq for PublicSigningKey
Auto Trait Implementations
impl RefUnwindSafe for PublicSigningKey
impl Send for PublicSigningKey
impl Sync for PublicSigningKey
impl Unpin for PublicSigningKey
impl UnwindSafe for PublicSigningKey
Blanket Implementations
Mutably borrows from an owned value. Read more