[−][src]Struct bitcoin::blockdata::block::BaseHeader
A legacy header without auxpow
Fields
version: u32
The protocol version. Should always be 1.
prev_blockhash: Hash
Reference to the previous block in the chain
merkle_root: Hash
The root hash of the merkle tree of transactions in the block
time: u32
The timestamp of the block, as claimed by the miner
bits: u32
The target value below which the blockhash must lie, encoded as a a float (with well-defined rounding, of course)
nonce: u32
The nonce, selected to obtain a low enough blockhash
Trait Implementations
impl<S: Encoder> Encodable<S> for BaseHeader
[src]
impl<D: Decoder> Decodable<D> for BaseHeader
[src]
fn consensus_decode(d: &mut D) -> Result<BaseHeader, Error>
[src]
impl BitcoinHash for BaseHeader
[src]
fn bitcoin_hash(&self) -> Hash
[src]
impl Eq for BaseHeader
[src]
impl Clone for BaseHeader
[src]
fn clone(&self) -> BaseHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<BaseHeader> for BaseHeader
[src]
fn eq(&self, other: &BaseHeader) -> bool
[src]
fn ne(&self, other: &BaseHeader) -> bool
[src]
impl<'_> From<&'_ BlockHeader> for BaseHeader
[src]
fn from(item: &BlockHeader) -> Self
[src]
impl Debug for BaseHeader
[src]
Auto Trait Implementations
impl Send for BaseHeader
impl Sync for BaseHeader
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,