Expand description
Monero definitions needed for merge mining
Re-exports§
pub use merkle_tree_parameters::MerkleTreeParameters;
Modules§
Structs§
- Monero
PowData - This struct represents all the Proof of Work information required for merge mining.
Functions§
- create_
ordered_ tx_ hashes_ from_ block - Create a set of ordered transaction hashes from a Monero block
- extract_
aux_ merkle_ root - Extract the Monero block hash from the coinbase transaction’s extra field
- extract_
aux_ merkle_ root_ from_ block - Extract the Monero block hash from the coinbase transaction’s extra field
- insert_
aux_ chain_ mr_ and_ info_ into_ block - Inserts aux chain merkle root and info into a Monero block
- monero_
block_ deserialize - Try to decode a
monero::Blockgiven a hex blob - parse_
extra_ 🔒field_ truncate_ on_ error - Parsing an extra field from bytes will always return an extra field with subfields that could be read even if it does not represent the original As per Monero consensus rules, an error here will not represent failure to deserialize a block, so no need to error here.