[root@mining-node] ~$
CryptoMine::Math::Cracker
Explorateur et simulateur avancés de l'équation de minage par preuve de travail Bitcoin
// Bitcoin Proof-of-Work Core Condition
SHA256( SHA256( BlockHeader ) ) < Target
H( H( version || prevHash || merkleRoot || timestamp || bits || nonce ) ) < 2(256-difficulty)
4 bytes — Block version (currently 0x20000000 for BIP9)
32 bytes — SHA-256d hash of previous block header
32 bytes — Merkle tree root of all transactions in block
4 bytes — Unix epoch time (must be > median of last 11 blocks)
4 bytes — Compact encoding of target threshold (nBits)
4 bytes — The value miners iterate (0 to 2³²−1)
// BLOCK HEADER LAYOUT (80 bytes)
// TARGET DERIVATION FROM nBits
target = coefficient × 2(8 × (exponent − 3))
where: exponent = bits[0], coefficient = bits[1..3]
Example: nBits = 0x1703a30c
exponent = 0x17 = 23 → coefficient = 0x03a30c → target = 0x03a30c × 2(8×20)
// SINGLE HASH SUCCESS PROBABILITY
P(success) = target / 2²⁵⁶ = 1 / difficulty
Expected hashes to find a block:
E[hashes] = 2²⁵⁶ / target = difficulty × 2³²
Expected time (at hashrate H):
E[time] = difficulty × 2³² / H (seconds)
// SHA-256 HASH OUTPUT
// BINARY REPRESENTATION (first 64 bits)
// HASH ANALYSIS
// HASH PIXEL MAP (8×8 nibble grid)
// HASH STRENGTH
// AVALANCHE EFFECT — Flip one bit, see the chaos
// BLOCK HEADER FIELDS
// CURRENT TARGET
Hash must have at least 16 leading zero bits
// NONCE COUNTER
NONCE
0
HASHES
0
HASHRATE
0 H/s
ELAPSED
0.0s
// HASHRATE OVER TIME
// LIVE HASH FEED
Waiting to mine...
⚡ BLOCK FOUND!
Current mainnet nBits examples: 1703a30c, 1801539e, 1903a30c
EXPONENT
—
Byte length of target
COEFFICIENT
—
Significant 3 bytes
DIFFICULTY
—
Relative to genesis
LEADING ZERO BITS
—
Required prefix
// FULL 256-BIT TARGET
// DIFFICULTY COMPARISON ACROSS ERAS
// PROBABILITY ANALYSIS
// EXPECTED TIME TO FIND BLOCK
// BLOCK REWARD FUNCTION
R(n) = 50 × 108 / 2⌊n / 210000⌋ (satoshis)
Total Supply: S = Σ (R(i) × 210000) for i = 0 to 32 = 20999999.9769 BTC
// QUICK HEIGHT SLIDER
CURRENT ERA
—
CURRENT REWARD
—
TOTAL MINED
—
// HALVING SCHEDULE
// SUPPLY CURVE (CUMULATIVE BTC)
// REWARD DECAY & CUMULATIVE SUPPLY
