Struct fil_types::ZERO_ADDRESS[][src]

pub struct ZERO_ADDRESS { /* fields omitted */ }

Zero address used to avoid allowing it to be used for verification. This is intentionally disallowed because it is an edge case with Filecoin’s BLS signature verification.

Methods from Deref<Target = Address>

pub fn protocol(&self) -> Protocol[src]

Returns protocol for Address

pub fn payload(&self) -> &Payload[src]

Returns the Payload object from the address, where the respective protocol data is kept in an enum separated by protocol

pub fn payload_bytes(&self) -> Vec<u8, Global>[src]

Returns the raw bytes data payload of the Address

pub fn network(&self) -> Network[src]

Returns network configuration of Address

pub fn to_bytes(&self) -> Vec<u8, Global>[src]

Returns encoded bytes of Address

pub fn id(&self) -> Result<u64, Error>[src]

Get ID of the address. ID protocol only.

Trait Implementations

impl Deref for ZERO_ADDRESS[src]

type Target = Address

The resulting type after dereferencing.

impl LazyStatic for ZERO_ADDRESS[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.