[−][src]Enum forest_address::Payload
Payload is the data of the Address. Variants are the supported Address protocols.
Variants
ID(u64)ID protocol address.
SECP256K1 key address, 20 byte hash of PublicKey
Actor protocol address, 20 byte hash of actor data
BLS(BLSPublicKey)BLS key address, full 48 byte public key
Implementations
impl Payload[src]
pub fn to_raw_bytes(&self) -> Vec<u8>[src]
Returns encoded bytes of Address without the protocol byte.
pub fn to_bytes(&self) -> Vec<u8>[src]
Returns encoded bytes of Address including the protocol byte.
pub fn new(protocol: Protocol, payload: &[u8]) -> Result<Self, Error>[src]
Generates payload from raw bytes and protocol.
Trait Implementations
impl Clone for Payload[src]
impl Copy for Payload[src]
impl Debug for Payload[src]
impl Eq for Payload[src]
impl<'_> From<&'_ Payload> for Protocol[src]
impl From<Payload> for Protocol[src]
impl Hash for Payload[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Payload> for Payload[src]
impl StructuralEq for Payload[src]
impl StructuralPartialEq for Payload[src]
Auto Trait Implementations
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
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.
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>,