Struct ed25519_dalek::PublicKey
[−]
[src]
pub struct PublicKey(pub CompressedEdwardsY);
An ed25519 public key.
Methods
impl PublicKey
[src]
fn to_bytes(&self) -> [u8; 32]
View this public key as an array of 32 bytes.
fn verify(&self, message: &[u8], signature: &Signature) -> bool
Verify a signature on a message with this keypair's public key.
Return
Returns true if the signature was successfully verified, and false otherwise.
Trait Implementations
impl Copy for PublicKey
[src]
impl Clone for PublicKey
[src]
fn clone(&self) -> PublicKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more