Enum everscale_crypto::tl::PublicKey
source · [−]pub enum PublicKey<'tl> {
Ed25519 {
key: &'tl [u8; 32],
},
Overlay {
name: &'tl [u8],
},
Aes {
key: &'tl [u8; 32],
},
Unencoded {
data: &'tl [u8],
},
}Expand description
Public key which is used in protocol
Variants
Ed25519
Overlay
Aes
Unencoded
Implementations
sourceimpl PublicKey<'_>
impl PublicKey<'_>
pub fn as_equivalent_owned(&self) -> PublicKeyOwned
Trait Implementations
sourceimpl<'tl> TlWrite for PublicKey<'tl>
impl<'tl> TlWrite for PublicKey<'tl>
const TL_WRITE_BOXED: bool = true
sourcefn max_size_hint(&self) -> usize
fn max_size_hint(&self) -> usize
Max required number of bytes
fn write_to<P_>(&self, __packet: &mut P_) where
P_: TlPacket,
impl<'tl> Copy for PublicKey<'tl>
impl<'tl> Eq for PublicKey<'tl>
impl<'tl> StructuralEq for PublicKey<'tl>
impl<'tl> StructuralPartialEq for PublicKey<'tl>
Auto Trait Implementations
impl<'tl> RefUnwindSafe for PublicKey<'tl>
impl<'tl> Send for PublicKey<'tl>
impl<'tl> Sync for PublicKey<'tl>
impl<'tl> Unpin for PublicKey<'tl>
impl<'tl> UnwindSafe for PublicKey<'tl>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more