Struct bee_message::prelude::MilestonePayloadEssence[][src]

pub struct MilestonePayloadEssence { /* fields omitted */ }

Essence of a milestone payload. This is the signed part of a milestone payload.

Implementations

impl MilestonePayloadEssence[src]

pub fn new(
    index: MilestoneIndex,
    timestamp: u64,
    parents: Parents,
    merkle_proof: [u8; 32],
    next_pow_score: u32,
    next_pow_score_milestone_index: u32,
    public_keys: Vec<[u8; 32]>,
    receipt: Option<Payload>
) -> Result<Self, Error>
[src]

Creates a new MilestonePayloadEssence.

pub fn index(&self) -> MilestoneIndex[src]

Returns the index of a MilestonePayloadEssence.

pub fn timestamp(&self) -> u64[src]

Returns the timestamp of a MilestonePayloadEssence.

pub fn parents(&self) -> &Parents[src]

Returns the parents of a MilestonePayloadEssence.

pub fn merkle_proof(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the merkle proof of a MilestonePayloadEssence.

pub fn next_pow_score(&self) -> u32[src]

Returns the next proof of work score of a MilestonePayloadEssence.

pub fn next_pow_score_milestone_index(&self) -> u32[src]

Returns the newt proof of work index of a MilestonePayloadEssence.

pub fn public_keys(&self) -> &Vec<[u8; 32]>[src]

Returns the public keys of a MilestonePayloadEssence.

pub fn receipt(&self) -> Option<&Payload>[src]

Returns the optional receipt of a MilestonePayloadEssence.

pub fn hash(&self) -> [u8; 32][src]

Hashes the MilestonePayloadEssence to be signed.

Trait Implementations

impl Clone for MilestonePayloadEssence[src]

impl Debug for MilestonePayloadEssence[src]

impl Eq for MilestonePayloadEssence[src]

impl Packable for MilestonePayloadEssence[src]

type Error = Error

Associated error type.

impl PartialEq<MilestonePayloadEssence> for MilestonePayloadEssence[src]

impl StructuralEq for MilestonePayloadEssence[src]

impl StructuralPartialEq for MilestonePayloadEssence[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.