SOURCE / PINNED RELEASE
Made of little things.
Proof of Work is dead
- Release
- 89cac09188df…
- Author-recorded commit
- 8ef34170172d…
- License
- LICENSE
- Author’s source reference
- nostr://npub1eg5pfnws6tg6rtp33tugpppqtv5u05crmf983qp438cdycwzngys0gxzcs/wss%3A%2F%2Fgit.napplet.soy%2F/n-abb751b60a6
Archive hash verified: 2e3eb06f34235090…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Proof of Membership</title>
<meta name="description" content="Proof of work is dead for notes. Watch your device burn hashes for nothing, then sign as one of 250 keys with a real ring signature and see who can check it and who can tell which key signed." />
</head>
<body>
<main id="app" class="app">
<section class="beat furnace" id="burn" aria-labelledby="burnTitle">
<h1 id="burnTitle" class="melt" aria-label="Proof of work is dead">
<span aria-hidden="true"><span class="word">PROOF</span></span>
<span aria-hidden="true"><span class="word">OF</span> <span class="word">WORK</span></span>
<span aria-hidden="true"><span class="word">IS</span> <span class="word">DEAD</span></span>
</h1>
<div class="meter">
<p class="meter-count">
<output id="burnCount" class="meter-number">0</output>
<span id="burnUnit">hashes burned by this device since the page opened</span>
</p>
<p id="burnLine" class="meter-line">Mining a 20-bit stamp for one note, the way NIP-13 asks.</p>
</div>
<p class="aside">For notes, that is. Bitcoin, keep mining.</p>
</section>
<section class="beat ash" id="why" aria-labelledby="whyTitle">
<h2 id="whyTitle">You bring a phone. Spammers bring GPUs.</h2>
<div class="race" role="group" aria-label="Note ids per second">
<p class="race-who">This device, one browser thread</p>
<div class="race-track"><span class="race-bar race-bar-you" id="barYou"></span></div>
<p class="race-rate" id="rateYou">still measuring</p>
<p class="race-who">One gaming GPU</p>
<div class="race-track" id="trackGpu"><span class="race-bar race-bar-gpu"></span></div>
<p class="race-rate" id="rateGpu">about 11 billion note ids per second</p>
</div>
<p class="lead" id="raceLine">The numbers arrive as soon as the furnace on the first page has run for a moment.</p>
<p class="body">
Work proves that somebody paid for electricity. It never said who they are, and the
people who send spam for a living pay less per hash than your phone does.
</p>
</section>
<section class="beat ring" id="demo" aria-labelledby="demoTitle">
<h2 id="demoTitle">Stop proving you burned. Prove you belong.</h2>
<div class="ring-stage">
<canvas id="ringCanvas" aria-label="A ring of public keys"></canvas>
<div class="ring-core" id="ringCore" aria-live="polite">
<strong id="coreBig">250</strong>
<span id="coreSmall">keys in the ring</span>
</div>
</div>
<div class="ring-side">
<p class="lead" id="ringStory">
Alice follows 250 people. One of them is about to tell her something, and she will
never find out which one.
</p>
<div id="noteForm" class="note-form">
<label for="noteText" id="noteLabel">The note to Alice</label>
<textarea id="noteText" rows="2" maxlength="140">Your last hot take was wrong. Signed, someone you trust.</textarea>
<button type="button" id="signButton" class="act" disabled>Making the keys</button>
</div>
<div id="result" class="result" hidden>
<article class="note" id="noteCard" data-napplet-select="text">
<p class="note-from" id="noteFrom"></p>
<p class="note-text" id="noteBody"></p>
<p class="note-proof" id="noteProof" aria-live="polite"></p>
</article>
<dl class="who">
<div class="who-item">
<dt>Who can check that it is from a member?</dt>
<dd id="whoChecks"></dd>
</div>
<div class="who-item">
<dt>Who can tell which member?</dt>
<dd id="whoKnows"></dd>
</div>
</dl>
</div>
<p class="fine" id="ringNote">
250 keys made by this page for the demo. The signature and the check are the real
thing: secp256k1, the curve your nostr key already lives on.
</p>
</div>
<button type="button" id="anotherButton" class="act act-quiet" hidden>Sign another note</button>
</section>
<section class="beat unlocks" id="unlocks" aria-labelledby="unlocksTitle">
<h2 id="unlocksTitle">Proof of membership switches four things on.</h2>
<ul class="unlock-list">
<li>
<h3>Relays without the furnace</h3>
<p>
A relay takes notes from keys it has never seen, as long as they prove membership
in a list it trusts. No grinding, no captcha, no paywall.
</p>
</li>
<li>
<h3>Anonymous and still inside your web of trust</h3>
<p>
A throwaway key lands outside the trust filter most clients apply, so hardly
anyone reads it. With a ring proof it lands inside, and there is still no name on it.
</p>
</li>
<li>
<h3>Speak as a group</h3>
<p>
Derek keeps a list of client developers. Any of them can post as "a client
developer", and readers follow the list like an account.
</p>
</li>
<li>
<h3>One member, one vote</h3>
<p>
This one takes the linkable cousin of the signature in the demo: every vote a member
casts in one poll carries the same tag. Each member counts once and nobody learns
who voted how.
</p>
</li>
</ul>
</section>
<section class="beat paper" id="how" aria-labelledby="howTitle">
<h2 id="howTitle">Three steps. The other 249 do nothing.</h2>
<ol class="steps">
<li>
<span class="step-number" aria-hidden="true">1</span>
<p><strong>Make a throwaway key.</strong> It will be the author of your notes.</p>
</li>
<li>
<span class="step-number" aria-hidden="true">2</span>
<p>
<strong>Ring-sign it against a list that already exists.</strong> A follow list, a
curated set, the members of a group. The people on it do nothing and install nothing.
</p>
</li>
<li>
<span class="step-number" aria-hidden="true">3</span>
<p>
<strong>Post like anyone else.</strong> Ordinary notes on ordinary relays. Clients
that check the proof show "one of Alice's follows" next to them.
</p>
</li>
</ol>
<p class="body">
The proof is paid once per throwaway key and not per note. For 250 keys that is 8,032
bytes. Keep the key for a thread and you are one voice in it; take a fresh one and
nobody can link the two.
</p>
</section>
<section class="beat paper fineprint" id="fine" aria-labelledby="fineTitle">
<h2 id="fineTitle" class="fine-title">The fine print, in full size</h2>
<ul class="fine-list" data-napplet-select="text">
<li>
The ring signature on this page is real (the AOS scheme, also called SAG) and ran in
your browser, on keys the page made up. The code is a demo and nobody has audited it.
</li>
<li>
Browser extensions and remote signers only make standard signatures today. Ring
signing needs the raw key or a new signer method.
</li>
<li>
You are hidden among the ring at best. Timing, your IP address and the way you write
can narrow it down.
</li>
<li>
People are put in a ring without being asked, and with the signature shown here
none of them can prove they did not write a note. With the linkable kind they can,
which also means they can be pressured to.
</li>
<li>
One member can make many throwaway keys, and a relay cannot tell which member to
ban. The linkable kind caps that, at the price of linking that member's keys to
each other inside one thread or one day.
</li>
<li>
A proof is tied to one exact version of the list. Follow lists change, so the proof
names the version it was made for, somebody has to keep that version around, and a
member who was removed still holds a proof for the old one.
</li>
<li>
The proof grows by 32 bytes per key. Proofs that grow with the logarithm of the list
exist and would fit thousands of keys into one to three kilobytes. Nobody has shipped
them for nostr.
</li>
<li id="gpuNote">
GPU figure: the hashcat SHA-256 benchmark for one RTX 4090, about 22 billion
one-block hashes per second, divided by the two blocks of the note mined here. A
miner that caches the first block is about twice as fast again, so the comparison
flatters your device.
</li>
<li>
Earlier work to build on: nostringer by AbdelStark, and pull request 1894 in the
nostr NIPs repository.
</li>
</ul>
</section>
<section class="beat call" id="call" aria-labelledby="callTitle">
<h2 id="callTitle" class="call-title">WANT IT?</h2>
<p class="lead">
Like this page, so the people who build clients see that somebody is waiting. Then
send it to the one who builds yours.
</p>
<button type="button" id="againButton" class="act act-dark">Close the ring again</button>
</section>
</main>
<nav class="pager" aria-label="Pages">
<button type="button" id="pageUp" aria-label="Previous page" disabled>
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 16l8-8 8 8" /></svg>
</button>
<button type="button" id="pageDown" aria-label="Next page">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8l8 8 8-8" /></svg>
</button>
</nav>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
