Struct everscale_crypto::ed25519::PublicKey
source · 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.
source§impl PartialEq<PublicKey> for PublicKey
impl PartialEq<PublicKey> for PublicKey
impl Copy for PublicKey
impl Eq for PublicKey
Auto Trait Implementations§
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