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

  1. Only the exact 38 byte script 6a 24 46555a5a <32 byte key> counts.
  2. The key must be a valid x-only point on secp256k1, else the output does not count.
  3. Exactly one output with the Fuzz script names the patron. Two or more void it.
  4. Other OP_RETURN outputs are ignored.
  5. The value of the output with the Fuzz script is ignored.
  6. 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

KindEvent
39741Authorship, a Mark III draft value
39740Patronage, a Mark III draft value
3740Address 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.

VectorRulesPatronDecided by
one-script
One output with the Fuzz script names its key as the patron.
1, 3npub10xl…vqpkge6dRule 3
two-scripts
Two outputs with the Fuzz script void the attribution; the payment still counts.
3Rule 3
off-curve-key
The Fuzz layout with a key off the curve is not a Fuzz script.
2Rule 2
off-curve-beside-valid
An off-curve output does not count toward rule 3, so the valid one names the patron.
2, 3npub10xl…vqpkge6dRule 3
uppercase-memo
An uppercase memo taken as text writes 72 ASCII characters, not 36 bytes.
1Rule 1
foreign-op-return
A foreign OP_RETURN beside a valid Fuzz script is ignored.
3, 4npub10xl…vqpkge6dRule 3
push-of-37
A push of 37 bytes holding the payload and one more byte is not a Fuzz script.
1Rule 1
valued-script
A Fuzz script output that carries sats still names the patron.
5npub10xl…vqpkge6dRule 5
funded-by-author
A payer funding from the author's own wallet still names the key in the script.
3, 6npub1ccz…js38mnydRule 3
no-script
A payment with no OP_RETURN names no patron.
3Rule 3
same-key-twice
Two outputs with the Fuzz script void the attribution even when they name the same key.
3Rule 3
pushdata1
The payload pushed with PUSHDATA1, 6a 4c 24, is not the exact layout of the Fuzz script.
1Rule 1
script-position-first
The Fuzz script at index 0, before the payment, names its key as the patron.
1, 3npub10xl…vqpkge6dRule 3
script-position-last
The Fuzz script at the last index, after the change, names the same key.
1, 3npub10xl…vqpkge6dRule 3
x-at-p
A key field equal to p, the field prime, is no x of a point, so the script is off-curve.
2Rule 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