Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
103
use std::ops::ShlAssign;
104
105
pub struct ProofOfWork {
106
block: Block,
107
target: BigInt,
108
}
109
110
111
const TARGET_BITS: i32 = 8;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected