pub struct PublicKey { /* private fields */ }Expand description
Ed25519 public key
Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub fn from_bytes(bytes: [u8; 32]) -> Option<Self>
pub fn from_bytes(bytes: [u8; 32]) -> Option<Self>
Tries to create public key from
pub fn from_tl(tl: PublicKey<'_>) -> Option<Self>
pub fn as_tl(&self) -> PublicKey<'_>
pub fn to_bytes(&self) -> [u8; 32]
pub fn as_bytes(&self) -> &[u8; 32]
Trait Implementations§
Source§impl From<&ExpandedSecretKey> for PublicKey
impl From<&ExpandedSecretKey> for PublicKey
Source§fn from(expanded_secret_key: &ExpandedSecretKey) -> Self
fn from(expanded_secret_key: &ExpandedSecretKey) -> Self
Converts to this type from the input type.
impl Copy for PublicKey
impl Eq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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