pub struct Ed25519PublicKey(/* private fields */);Expand description
Standard Ed25519 Public Key (32 bytes)
Implementations§
Source§impl Ed25519PublicKey
impl Ed25519PublicKey
pub fn hash(&self) -> Ed25519KeyHash
pub fn verify( &self, signature: &Ed25519Signature, data: &[u8], ) -> SignatureVerification
pub fn as_bytes(&self) -> &[u8; 32]
pub fn from_bytes(bytes: &[u8; 32]) -> Self
Trait Implementations§
Source§impl Clone for Ed25519PublicKey
impl Clone for Ed25519PublicKey
Source§fn clone(&self) -> Ed25519PublicKey
fn clone(&self) -> Ed25519PublicKey
Returns a duplicate 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 Ed25519PublicKey
impl Debug for Ed25519PublicKey
Source§impl Decode for Ed25519PublicKey
impl Decode for Ed25519PublicKey
Source§impl Display for Ed25519PublicKey
impl Display for Ed25519PublicKey
Source§impl PartialEq for Ed25519PublicKey
impl PartialEq for Ed25519PublicKey
impl Eq for Ed25519PublicKey
impl StructuralPartialEq for Ed25519PublicKey
Auto Trait Implementations§
impl Freeze for Ed25519PublicKey
impl RefUnwindSafe for Ed25519PublicKey
impl Send for Ed25519PublicKey
impl Sync for Ed25519PublicKey
impl Unpin for Ed25519PublicKey
impl UnwindSafe for Ed25519PublicKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more