MCPcopy Create free account
hub / github.com/PacktPublishing/Rust-for-Blockchain-Application-Development / ProofOfWork

Class ProofOfWork

chapter 3/block.rs:105–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103use std::ops::ShlAssign;
104
105pub struct ProofOfWork {
106 block: Block,
107 target: BigInt,
108}
109
110
111const TARGET_BITS: i32 = 8;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected