Struct fvm_shared::ZERO_ADDRESS

source ·
pub struct ZERO_ADDRESS { /* private fields */ }
Expand description

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>§

source

pub fn is_bls_zero_address(&self) -> bool

source

pub fn protocol(&self) -> Protocol

Returns protocol for Address

source

pub fn payload(&self) -> &Payload

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

source

pub fn payload_bytes(&self) -> Vec<u8>

Returns the raw bytes data payload of the Address

source

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

Get ID of the address. ID protocol only.

Trait Implementations§

source§

impl Deref for ZERO_ADDRESS

§

type Target = Address

The resulting type after dereferencing.
source§

fn deref(&self) -> &Address

Dereferences the value.
source§

impl LazyStatic for ZERO_ADDRESS

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.