pub struct VerifyingPublicKey { /* private fields */ }Expand description
An Ed25519 public key: verifies, and cannot sign.
Implementations§
Source§impl VerifyingPublicKey
impl VerifyingPublicKey
Sourcepub fn from_bytes(bytes: [u8; 32]) -> Result<Self>
pub fn from_bytes(bytes: [u8; 32]) -> Result<Self>
A public key from its 32 bytes.
Sourcepub fn from_base64(encoded: &str) -> Result<Self>
pub fn from_base64(encoded: &str) -> Result<Self>
A public key from base64.
Trait Implementations§
Source§impl Clone for VerifyingPublicKey
impl Clone for VerifyingPublicKey
Source§fn clone(&self) -> VerifyingPublicKey
fn clone(&self) -> VerifyingPublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VerifyingPublicKey
impl RefUnwindSafe for VerifyingPublicKey
impl Send for VerifyingPublicKey
impl Sync for VerifyingPublicKey
impl Unpin for VerifyingPublicKey
impl UnsafeUnpin for VerifyingPublicKey
impl UnwindSafe for VerifyingPublicKey
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