SHARENOTEProof of energy
Learn/1 of 5

What is a Sharenote?

A Sharenote is a small record that proves one identity spent a declared amount of computational work.

A proof of energy

Many apps want to treat effort as something real: rank a feed by it, gate an API with it, split a reward by it. They all need the same thing: a unit of work that anyone can check and nobody has to issue. A Sharenote is that unit.

A note is a compact binary record. It names an algorithm, an identity, a Z-bit and an optional binding, then a nonce. The minter changes only the nonce until the record's hash falls under the target for its Z-bit. Anyone can rehash the bytes and see that it does.

A called shot

Before searching, the minter commits to everything except the nonce. That has three effects:

  • It is worth exactly its Z-bit. A lucky hash far below the target earns no bonus.
  • Its credit cannot move. The identity is inside the hash. Claiming the work for another key changes the hash and needs new work.
  • It needs no signature. The work over the identity is the credential, so a provider can mine notes credited to you without your key.

The record

FieldExample
tag, versionSN4U, 1
algorithmsha256d
identityyour 32-byte Nostr public key
Z-bit20z00
bindingempty, or what the note is for
noncefound by mining

How notes travel

Notes ride on Nostr relays as kind:1723 events. The event is unsigned: its pubkey is the record's identity and its content is the record in hex. It carries only three tags, g, z and b, copied from the record so relays can filter.

A relay that supports Sharenotes stores a note only after it verifies. Readers verify again anyway. Each note gets one of three verdicts: ATTRIBUTED (valid, counted), REJECT (malformed or not enough work) or SKIP (unknown version or algorithm).

What a note is not

A note is evidence, not cash. The protocol does not stop it being shown many times, does not prove when it was made, and does not move money. Those are application choices. An app that wants single use binds notes to itself and remembers the proofs it has accepted. Everything about a note is public, so if you want your uses unlinkable, mint a fresh note for each one.

Try it
Mint a note

Mine a real sha256d note in your browser and inspect every byte of its SN4U record.

Open

Next: Z-bits →