Struct crypto::signatures::ed25519::PublicKey[][src]

pub struct PublicKey(_);
This is supported on crate feature ed25519 only.

Implementations

impl PublicKey[src]

pub fn verify(&self, sig: &Signature, msg: &[u8]) -> bool[src]

pub fn to_compressed_bytes(&self) -> [u8; 32][src]

pub fn from_compressed_bytes(bs: [u8; 32]) -> Result<Self>[src]

Trait Implementations

impl AsRef<[u8]> for PublicKey[src]

impl Eq for PublicKey[src]

impl Ord for PublicKey[src]

impl PartialEq<PublicKey> for PublicKey[src]

impl PartialOrd<PublicKey> for PublicKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.