hazync

Contribute

Hazync is a public good, and the chain is long. Every proven block is one fewer that a new node has to take on trust. Pick whichever fits you.

Join the proof party

The shared effort to prove the whole chain, one block at a time.

There is no allocation and nothing to apply for. Start a worker with ./hazync run and it claims the next open block by itself, proves it and submits it. The coordinator re-checks every proof, joins accepted ones into the proof from genesis, and puts your name against the blocks you proved.

Folding counts too. Joining neighbouring proofs into one wider proof is credited on the leaderboard separately from blocks proven.

Nobody has to trust the coordinator. Every proof it holds can be downloaded and checked independently, and the explorer lets you do that in your browser.

Prove blocks

You need an NVIDIA GPU, on Linux or on Windows through WSL2. A 24 GB gaming card is enough; cloud GPUs work well.

You prove blocks on your own machine, sign them with your own key, and submit them. The coordinator checks every proof before it counts, and your name goes on the board next to the blocks you proved.

  1. Download the prover and the contributor tool from the latest release. No build and no CUDA toolkit: the NVIDIA driver is all the prover needs.
    base=https://github.com/hazync/hazync/releases/latest/download
    curl -fLO $base/SHA256SUMS.txt
    curl -fLO $base/hazync-host-x86_64-linux-gnu-cuda   # 390 MB: GitHub can take a while
    curl -fLO $base/hazync-worker
    curl -fLO $base/hazync-run-workers.sh
    
    # check what arrived before running it — this must print OK three times
    grep -E ' (hazync-host-x86_64-linux-gnu-cuda|hazync-worker|hazync-run-workers.sh)$' SHA256SUMS.txt | sha256sum -c -
    
    chmod +x hazync-host-x86_64-linux-gnu-cuda hazync-worker hazync-run-workers.sh
    ln -sf hazync-worker hazync
    ln -sf hazync-run-workers.sh run-workers.sh
    sudo apt install -y python3-cryptography   # Debian/Ubuntu — see below for other systems
    Why the checksum matters

    The prover is a 390 MB binary that will drive your GPU unattended for hours, and the release publishes SHA256SUMS.txt so you never have to take it on trust. If the check does not print OK for every file, stop and do not run them. SHA256SUMS.txt.asc signs that list with the maintainer's key, for the stronger check.

    No sudo, or not Debian/Ubuntu?

    cryptography is the library the worker signs your claims with, and the only thing here that wants root. Without sudo, use pip install --user cryptography. On Debian 12, Ubuntu 24.04 and newer, pip will not touch the system Python, so use python3 -m venv ~/.hazync-venv && ~/.hazync-venv/bin/pip install cryptography and run the worker with ~/.hazync-venv/bin/python3. The worker tells you which it needs.

  2. On Windows? The same steps should run inside WSL2 — the Linux binaries, the worker, the lot. NVIDIA's driver passes your GPU through, so there is no second CUDA install and nothing to build. That is NVIDIA's documented route, but nobody has reported a Hazync block proved through it yet: the self-test below tells you before you start.
    wsl --install -d Ubuntu-22.04    # in PowerShell, as administrator; reboot when asked
    wsl                              # then follow the steps above, inside it
    nvidia-smi                       # should list your card — if it does, the GPU is through
    Windows requirements

    Windows 11, or Windows 10 21H2 or newer, and a current NVIDIA driver on the Windows side. Do not install a driver inside WSL2: that breaks the passthrough. If nvidia-smi lists your card, the prover will find it.

    The release also ships a native Windows prover (hazync-host-x86_64-windows-cuda.zip), which proves blocks without WSL2, and a Windows app that runs it against the board without a terminal. macOS cannot prove.

  3. Choose a name. This creates your signing key in ~/.hazync.
    ./hazync id yourname
  4. Back up ~/.hazync now. The key is the only thing that ties your blocks to your name. One prover has already lost theirs with a deleted machine, and the blocks they proved can no longer be signed for. Moving to another machine means copying that folder across; one key can prove from several machines at once.
  5. Get a push on your phone when a worker stops or keeps failing, instead of finding out from its log. This makes a private ntfy topic and sends a test push; install the ntfy app and subscribe to the topic it prints. The topic is the only secret, so keep the generated one.
    ./hazync notify new
  6. Check your setup, then prove one block. run claims the next open block, proves it, submits it and exits.
    ./hazync selftest
    ./hazync run
  7. Keep proving. run-workers.sh keeps workers going and restarts them, and refuses to start if your GPU cannot prove block 1. Give it the full path to the prover. Four is the most one name can keep busy.
    HAZYNC_HOST=$PWD/hazync-host-x86_64-linux-gnu-cuda ./run-workers.sh 2   # logs in ~/hazync-workers
    ./run-workers.sh 2 --stop
    Stopping without leaving blocks stuck

    --stop stops at once, so the blocks your workers were proving stay claimed in your name for up to an hour, and if one of them was the next block of the chain, everyone waits on it. Prove those straight away with ./hazync run <block>; the worker logs in ~/hazync-workers name them. The next release adds --drain, which lets each worker finish its block first.

No GPU? The CPU build (hazync-host-x86_64-linux-gnu) proves early blocks too, more slowly. Big modern blocks want 64 GB of RAM or more. The full guide covers several boxes on one name, folding proofs together, and the fixes for common driver errors.

Try to break it

You know Bitcoin's internals, cryptography, or how build systems go wrong.

The most valuable find is a case where a Hazync proof says valid and Bitcoin Core would say otherwise. There has been no commissioned audit yet, so outside eyes matter more than anything. In order of where an hour is worth most:

  1. Reproduce the build. Rebuild the prover on a clean machine and check you get the published program ID. Nobody outside the project has done this yet.
    docker build -f reproduce/libzync.Dockerfile .
  2. Hazync's own bookkeeping: the coin log, the counting trie and the batch signature check. It is the code that is not Core's, and the most likely home of any remaining bug.
  3. The prep pass that prepares each block's inputs for the prover.
  4. The node adoption code that decides what a node skips on the strength of a proof.
  5. The coordinator, assuming the coordinator itself is hostile.

The review guide says where to start on each. File findings as GitHub issues. For anything you would rather not publish first, encrypt it to the maintainer's key:

777F E81F 8CC0 77FD 3D08 055E 852C 2B31 90F5 B928