[][src]Struct grin_core::core::block_sums::BlockSums

pub struct BlockSums {
    pub utxo_sum: Commitment,
    pub kernel_sum: Commitment,
}

The output_sum and kernel_sum for a given block. This is used to validate the next block being processed by applying the inputs, outputs, kernels and kernel_offset from the new block and checking everything sums correctly.

Fields

The sum of the unspent outputs.

The sum of all kernels.

Trait Implementations

impl Writeable for BlockSums
[src]

impl Readable for BlockSums
[src]

impl Clone for BlockSums
[src]

Performs copy-assignment from source. Read more

impl Default for BlockSums
[src]

impl Debug for BlockSums
[src]

Auto Trait Implementations

impl Send for BlockSums

impl Sync for BlockSums

Blanket Implementations

impl<W> Hashed for W where
    W: Writeable
[src]

impl<H> ShortIdentifiable for H where
    H: Hashed
[src]

Generate a short_id via the following -

  • extract k0/k1 from block_hash hashed with the nonce (first two u64 values) * initialize a siphasher24 with k0/k1
    • self.hash() passing in the siphasher24 instance
    • drop the 2 most significant bytes (to return a 6 byte short_id)

impl<T> PMMRIndexHashable for T where
    T: Writeable
[src]

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> Erased for T

impl<T> Same for T

Should always be Self