[−]Enum ckb_network::PublicKey
Public Key
Variants
Secp256k1
Implementations
impl PublicKey
pub fn inner_ref(&self) -> &Vec<u8, Global>
Get inner data
pub fn inner(self) -> Vec<u8, Global>
Get inner data
pub fn secp256k1_raw_key<K>(key: K) -> Result<PublicKey, SecioError> where
K: AsRef<[u8]>,
K: AsRef<[u8]>,
Creates a public key directly from a slice
pub fn encode(self) -> Bytes
Encode with molecule
pub fn decode(data: &[u8]) -> Option<PublicKey>
Decode with molecule
pub fn peer_id(&self) -> PeerId
Generate Peer id
Trait Implementations
impl Clone for PublicKey
pub fn clone(&self) -> PublicKey
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PublicKey
impl Eq for PublicKey
impl From<PublicKey> for PeerId
impl Hash for PublicKey
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PublicKey
pub fn cmp(&self, other: &PublicKey) -> Ordering
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<PublicKey> for PublicKey
impl PartialOrd<PublicKey> for PublicKey
pub fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>
pub fn lt(&self, other: &PublicKey) -> bool
pub fn le(&self, other: &PublicKey) -> bool
pub fn gt(&self, other: &PublicKey) -> bool
pub fn ge(&self, other: &PublicKey) -> bool
impl StructuralEq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
[src]
impl Send for PublicKey
[src]
impl Sync for PublicKey
[src]
impl Unpin for PublicKey
[src]
impl UnwindSafe for PublicKey
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,