pub struct V2HashStages {
pub xor_key_hash: Digest32,
pub h1: Digest32,
pub h2: Digest32,
pub blake2b_1: Digest32,
pub blake2b_2: Digest32,
pub mask: Digest32,
pub asic_profile: u8,
pub hash: BlockHash,
}Expand description
Every intermediate of the v2 pipeline, for tests and debugging — the
kernel’s hashHeaderV2Detailed. Digests are in the byte order the
pipeline feeds them onward; hash is the display-order block hash.
Fields§
§xor_key_hash: Digest32tagged("Bitcoin block hash PoW XOR key", xor_key).
h1: Digest32Round one: the tagged hash over the committed fields.
h2: Digest32Round two: the merge-mining hook over h1.
blake2b_1: Digest32The first BLAKE2b-256, over 0 ‖ h2 ‖ extranonce.
blake2b_2: Digest32The second BLAKE2b-256, over the profile-dependent ASIC input.
mask: Digest32The XOR mask applied to blake2b_2 (zero when the key is zero).
asic_profile: u8flags & 3.
hash: BlockHashblake2b_2 XOR mask: the block hash.
Trait Implementations§
Source§impl Clone for V2HashStages
impl Clone for V2HashStages
impl Copy for V2HashStages
Source§impl Debug for V2HashStages
impl Debug for V2HashStages
impl Eq for V2HashStages
Source§impl PartialEq for V2HashStages
impl PartialEq for V2HashStages
impl StructuralPartialEq for V2HashStages
Auto Trait Implementations§
impl Freeze for V2HashStages
impl RefUnwindSafe for V2HashStages
impl Send for V2HashStages
impl Sync for V2HashStages
impl Unpin for V2HashStages
impl UnsafeUnpin for V2HashStages
impl UnwindSafe for V2HashStages
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.