pub struct PublicKey { /* private fields */ }Expand description
Ed25519 public key
Implementations§
Source§impl PublicKey
impl PublicKey
pub fn from_tl(tl: PublicKey<'_>) -> Option<PublicKey>
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) -> PublicKey
fn from(expanded_secret_key: &ExpandedSecretKey) -> PublicKey
Converts to this type from the input type.
Source§impl From<&PublicKey> for AdnlAddress
impl From<&PublicKey> for AdnlAddress
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