← Back
Home › Systems › Blockchain and web3

mining-pool

proof-of-work mining pool: Stratum V1/V2 job distribution, share validation and difficulty, block template building, PPS/FPPS payout accounting, ASIC fleet monitoring

Foundry USA, AntPool, ViaBTC, Ocean

SystemTechniques · 21Primitives · 83 mining-pool Deterministic simulation testingdistributed · medium: Run the whole system in one thread under a seeded scheduler with simulated network, disk and clock, so every failure replays from its seed.›Durable job queuedistributed · medium: Persisted tasks that workers lease for a visibility timeout, ack on success and retry with backoff; at-least-once execution that survives worker and queue crashes.›Nakamoto consensusdistributed · medium: Proof-of-work longest-chain consensus: difficulty adjustment, orphan handling, confirmationsPrimary-backup replicationdistributed · medium: One node orders all writes and ships them to standbys; the acknowledgement rule (none, one, all) sets what a crash loses, and an external arbiter decides who takes over.›Pub/sub fan-outdistributed · medium: Deliver one published message to every subscriber of a topic by sharing one encoded payload and giving each connection a bounded queue with an explicit slow-consumer policy.›Coverage-guided fuzzingsecurity · medium: Mutate inputs, run an instrumented target, and keep any input that reaches a new code edge; feedback turns blind guessing into incremental search.›Point-in-time recoverystorage · medium: Periodic base backups plus a continuously archived change log let you rebuild the state as of any instant, then branch from there.›Idempotency keysfinance · low: Client-chosen unique key per logical operation, stored with a request fingerprint and the final response, so retries replay the first result instead of acting twice.›Merkle treedata-structures · low: Hash tree for verifying and diffing large datasets with logarithmic proofsCryptographic hashes (SHA-2, BLAKE3)security · low: Collision-resistant fingerprints of data; SHA-256 for interoperability, BLAKE3 for speed, HMAC/HKDF for keyed uses.›ECDSA signaturessecurity · low: The elliptic-curve signature standardised in FIPS 186-5 (P-256) and used by secp256k1 ledgers; 64-byte signatures, but a repeated or biased nonce leaks the private key.›Backpressuresystems · low: Bound every queue and make a full queue push back on the producer by blocking, dropping, rejecting or withholding credit.›Hdr histogramdata-structures · low: Log-linear bucketed histograms with bounded relative error for latency percentilesBlock template constructiondistributed · low: Assemble a candidate block from a mempool by fee density under size limits; compute coinbase and Merkle rootShare difficulty adjustmentdistributed · low: Per-worker variable difficulty targeting a share rate, with hash-rate estimates from share countsPool payout schemeseconomics · low: PPS, PPLNS and FPPS share-accounting payout rules with fee, window and variance handlingDouble-entry ledgerfinance · low: Append-only journal of transactions whose postings sum to zero per currency; balances are derived, so money can only move, never appear or vanish.›Process supervisionhardware-os · low: A parent process starts services, reaps their exits and restarts them under a delay and burst-limit policy, then stops them with SIGTERM before SIGKILL.›Json rpcnetworking · low: JSON-RPC 2.0 requests, notifications and batchingStratum job distributionnetworking · low: Stratum job and share protocol: job broadcast, extranonce splitting and share submissionMutual TLSsecurity · low: TLS where the client also proves a certificate key, so every connection carries a verified, rotatable machine identity.›Noise protocolsecurity · low: Noise framework handshakes (IK, XX): DH patterns, chaining keys, transport ciphersProof of work challengesecurity · low: Client puzzles (hashcash-style) that cost a client CPU to raise abuse cost, with adjustable difficulty+ 14 more techniques+ 67 more primitives

Similar systems

Share the most building blocks with this one.