SHARENOTEProof of energy
Learn/4 of 5

Merged notes

A miner securing a SHA-256d or scrypt chain can turn every share into a Sharenote with no extra hashing.

Reusing work that is already done

Miners already hash parent chain headers all day. Almost none of those hashes become blocks, but many clear a much easier target. SNP-02 makes each of those shares an attributed note. The parent chain needs no change.

How it fits in the coinbase

The miner builds a z-chain header: an ordinary note record with an empty nonce, naming the algorithm (sha256d-aux or scrypt-aux), the identity, the Z-bit and the binding. Its double SHA-256 is the z-chain hash.

That hash becomes a leaf of an aux merkle tree, at the slot computed from chain id 0x534E ("SN"). The tree's root goes into the coinbase after the marker FA BE 6D 6D, together with the tree size and a merkle nonce. Other merged chains can fill the other leaves.

The proof

When a header's hash clears the note's target, the miner fills the note's nonce with the proof: the 80-byte header, the coinbase, the branch from the coinbase to the header's merkle root, the branch from the leaf to the aux root, and a side mask. A verifier climbs both branches and compares the header's hash with the target.

Header hash clearsResult
the note's target onlya share: a valid note, not a block
the parent target tooa share and a block
the parent target onlya block, no note (possible on regtest)

One header, one note

Three locks stop the same work being credited twice: the marker occurs exactly once, the tree size must match the branch length, and the side mask must equal the z-chain's slot. Changing the identity, Z-bit or binding changes the z-chain hash, which the coinbase no longer commits. So a share cannot be re-claimed or pointed at another offer.

Where templates come from

A solo miner builds the commitment from its own node. Others take templates from a Node Service Provider (SNP-07), which streams them over gRPC. The client fills in its own commitment, the coinbase pays the client, and the NSP keeps at most its announced fee. Every block goes back to the NSP to submit.

Public hashrate

Every share is a public note, so anyone watching the parent chain can estimate a miner's hashrate: add 2^256 / T for each share since a known block and divide by the seconds elapsed. With 100 shares the estimate is good to about ±10 %. Withholding shares only lowers it.

Try it
Merged mining

Follow one template from coinbase to share or block, with the z-chain slot.

Open

Next: Paying with work →