A block header, which contains all the block's information except
the actual transactions
The protocol version. Should always be 1.
Reference to the previous block in the chain
The root hash of the merkle tree of transactions in the block
The timestamp of the block, as claimed by the miner
The target value below which the blockhash must lie, encoded as a
a float (with well-defined rounding, of course)
The nonce, selected to obtain a low enough blockhash
Computes the target [0, T] that a blockhash must land in to be valid
Computes the target value in float format from Uint256 format.
Compute the popular "difficulty" measure for mining
Performs an SPV validation of a block, which confirms that the proof-of-work
is correct, but does not verify that the transactions are valid or encoded
correctly.
Returns the total work of the block
Produces a Sha256dHash which can be used to refer to the object
Encode an object with a well-defined format, should only ever error if the underlying Encoder errors. Read more
Decode an object with a well-defined format
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
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