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.
The sum of the unspent outputs.
Write the data held by this Writeable to the provided writer
Reads the data necessary to this Readable from the provided reader
Returns the "default value" for a type. Read more
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Obtain the hash of the object
Hash the object together with another writeable object
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)
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
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, | |