Fuzz
Fuzz is a proposed protocol for permissionless patronage, and Pi is one Fuzz client. These rules follow Mark III, a draft.
The Fuzz script
6a 24 46555a5a <32 byte x-only public key>
OP_RETURN, a push of 36 bytes: the ASCII prefix FUZZ and the patron's 32 byte x-only key; the script is 38 bytes. All OP_RETURN data in one payment stays within 42 bytes.
The payload is written as 72 lowercase hex characters. A wallet that takes an uppercase memo as text writes 72 ASCII characters, not 36 bytes, and no reader counts it.
Decoder rules
- Only the exact 38 byte script 6a 24 46555a5a <32 byte key> counts.
- The key must be a valid x-only point on secp256k1, else the output does not count.
- Exactly one output with the Fuzz script names the patron. Two or more void it.
- Other OP_RETURN outputs are ignored.
- The value of the output with the Fuzz script is ignored.
- Inputs and source addresses play no part.
A reader names the rule that decided each output. The outcomes are:
fuzz- A counted Fuzz script, the only one in the transaction.
void- A counted Fuzz script, in a transaction with two or more.
off-curve- The Fuzz layout with a key that is no point on the curve.
near-miss- An OP_RETURN holding the FUZZ prefix, but not the exact layout.
other-op-return- Any other OP_RETURN.
plain- An output that is no OP_RETURN.
The chain shows the payment and the key it names, not who paid.
Kinds
| Kind | Event |
|---|---|
| 39741 | Authorship, a Mark III draft value |
| 39740 | Patronage, a Mark III draft value |
| 3740 | Address record, a Mark III draft value |
Shapes
Every kind, tag and name Pi reads or writes, and the NIP, BUD or text that owns it, is on Shapes.
Vectors
Every reader is tested against vectors.json: 15 real regtest transactions, each with its raw hex and the verdict the rules give. A changed vector is a protocol change.
| Vector | Rules | Patron | Decided by |
|---|---|---|---|
one-scriptOne output with the Fuzz script names its key as the patron. | 1, 3 | npub10xl…vqpkge6d | Rule 3 |
two-scriptsTwo outputs with the Fuzz script void the attribution; the payment still counts. | 3 | Rule 3 | |
off-curve-keyThe Fuzz layout with a key off the curve is not a Fuzz script. | 2 | Rule 2 | |
off-curve-beside-validAn off-curve output does not count toward rule 3, so the valid one names the patron. | 2, 3 | npub10xl…vqpkge6d | Rule 3 |
uppercase-memoAn uppercase memo taken as text writes 72 ASCII characters, not 36 bytes. | 1 | Rule 1 | |
foreign-op-returnA foreign OP_RETURN beside a valid Fuzz script is ignored. | 3, 4 | npub10xl…vqpkge6d | Rule 3 |
push-of-37A push of 37 bytes holding the payload and one more byte is not a Fuzz script. | 1 | Rule 1 | |
valued-scriptA Fuzz script output that carries sats still names the patron. | 5 | npub10xl…vqpkge6d | Rule 5 |
funded-by-authorA payer funding from the author's own wallet still names the key in the script. | 3, 6 | npub1ccz…js38mnyd | Rule 3 |
no-scriptA payment with no OP_RETURN names no patron. | 3 | Rule 3 | |
same-key-twiceTwo outputs with the Fuzz script void the attribution even when they name the same key. | 3 | Rule 3 | |
pushdata1The payload pushed with PUSHDATA1, 6a 4c 24, is not the exact layout of the Fuzz script. | 1 | Rule 1 | |
script-position-firstThe Fuzz script at index 0, before the payment, names its key as the patron. | 1, 3 | npub10xl…vqpkge6d | Rule 3 |
script-position-lastThe Fuzz script at the last index, after the change, names the same key. | 1, 3 | npub10xl…vqpkge6d | Rule 3 |
x-at-pA key field equal to p, the field prime, is no x of a point, so the script is off-curve. | 2 | Rule 2 |
The fuzz command line checks a transaction with no Pi:
uv run fuzz inspect <txid> --esplora <Esplora URL> uv run fuzz record <address> --esplora <Esplora URL> --json