LogoLogo
LeaderboardToolsGithubCommunity
  • XenBlocks PoW
  • Usecases
    • X1 Fiat on-ramp
  • Mining
    • Mining XNM with XenBlocks
    • How to mine XenBlocks
    • XNM
    • Add network
      • Address migration
    • Mining statistics
  • TECHNICALS
    • Hashing
      • Merged mining
      • Self-custodial hashing
    • Fixed total hashrate
    • Argon2
      • Argon2 relating to memory and difficulty
      • Why not ASIC mining?
      • Argon2 and energy consumption
    • Difficulty
      • Difficulty adjustment mechanism
      • Difficulty consensus
      • XenBlocks/Bitcoin difficulty comparison
    • Mined hash X1 injection
    • Decentralised hash verification
Powered by GitBook
On this page
  • What is decentralised hash verification?
  • How does verification work?
  • Benefits of hash verification
  • Why not have X1 validators run verification?
  1. TECHNICALS

Decentralised hash verification

CPU lightnode verification on X1 blockchain.

PreviousMined hash X1 injection

Last updated 6 months ago

What is decentralised hash verification?

When miners discover hashes, their legitimacy needs to be verified in a decentralized manner. XenBlock miners attempt to mint tokens from mining, and verifiers grant permission for this through the Distributed Controller smart contract.

XenBlock miners submit their hashes to the X1 Blockchain ledger, where they remain in an unverified state. The X1 database records which miner submitted each hash and tracks whether it has been verified.

Anyone with a phone or laptop can participate in verifying hashes and submitting votes. Verification is performed using the verifier's CPU by sending queries to the Distributed Controller smart contract, which then provides sets of hashes to verify.

The Distributed Controller smart contract is operated by X1 validators. This immutable program collects votes from CPU verifiers, and once a sufficient number of votes for a hash are submitted, it rewards the CPU verifier with XN (the native gas coin on X1) and grants XNM (the mining reward token) to the XenBlock miner.

How does verification work?

Lightnode is a simple webpage accessible through any browser (phone/laptop). A verifier can connect to it, register a SOL address to receive XN verification rewards, and opt-in with their CPU resources to start verifying hashes.

Verifying involves fetching incoming hashes and checking if they match the target, then casting a vote. Verifiers don't perform any hashing themselves; they are given the hashes to verify.

Benefits of hash verification

Verification is an inexpensive task, making it accessible to anyone. By eliminating the need to run an X1 node, barriers to verification are removed, significantly enhancing decentralization. The system is entirely decentralized, preventing any party from censoring transactions. Verification is permissionless, allowing anyone with spare CPU capacity to opt-in and earn XN rewards. This decentralized hash verification encourages greater adoption of X1, XenBlock, and cryptocurrency in general, providing an easy entry point into crypto by simply utilizing spare CPU resources.

Why not have X1 validators run verification?

X1 validators must be optimized and operating at full capacity for validating on-chain transactions and producing blocks. Removing verification reduces the load on the validators' CPU resources.