UnlistedDocs

Start

Introduction

Unlisted gives you a number that is safe to publish and impossible to look up. Every payer turns it into a different Solana address, and only you can tell those addresses are yours.

What it is

A normal wallet address is a listed number. Hand it out and everyone who has it can read your whole history, and everyone who pays you can see everyone else who did. An Unlisted number is two public keys. A payer's browser combines them with a secret it invents on the spot and gets a fresh address, used once. The technique is usually called stealth addresses; this is a small, readable version of it on the ed25519 curve that Solana uses.

  • No pool and no mixer. Money goes from the payer straight to a plain address and waits there.
  • No custody. The key of each address can only be computed in the recipient's browser.
  • No account. A number is random bytes made in your tab.

This is the browser edition

WARNING

There is no Unlisted program deployed on Solana and no registry of numbers or notes. Everything on this site runs in your tab: the maths is real, the addresses are real Solana addresses, the balances are read live from mainnet. The site never sends a payment and has no button that moves money out of a one-time address.

That has two practical consequences, and both are spelled out on their own pages:

  • The payer hands the note to the recipient themselves, as a link or a line of text. Nothing announces it on-chain.
  • Spending from a one-time address means signing with a raw scalar. Wallet apps do not import those, so picking up is done with the library, in code.

What is in the box

PieceWhereWhat it does
Sendhome pageNumber in, fresh address and note out. Another one on every press.
Get a numberhome pageMakes your keys, shows the number, the pay link and the backup line.
Inboxhome pageScans notes with your key, reads live balances of what it finds.
Librarylib/unlisted.jsAll of the maths, one file, no dependencies.
Engraverlib/rosette.jsDraws the rosette of any 32 bytes.

Start

Quick start

Three calls: make a number, cut an address for it, find that address again from the note.

Import the library

It is an ES module served by this site. Import it by URL in a page, or download the file for Node 18 or newer.

import * as U from '{{SITE}}lib/unlisted.js';

// recipient, once
const secret = U.createSecret();             // 32 random bytes: keep these
const keys   = U.keysFromSecret(secret);
const number = U.encodeNumber(keys);         // "unl…" safe to publish

// payer, for every payment
const cut = U.derive(number);
console.log(cut.address);                    // pay this from any wallet
console.log(cut.note);                       // "nt0…" send this to the recipient

// recipient, later
const mine = U.match(keys, cut.note);
console.log(mine.address === cut.address);   // true
console.log(await U.getBalance(mine.address)); // lamports, live
LinkOpens
{{SITE}}#to=<number>The send form with the number filled in and a fresh address already cut.
{{SITE}}#note=<note>The inbox with the note added, ready to scan.
NOTE

Both values ride in the URL fragment, the part after #. Browsers do not send fragments to servers, so neither the number nor the note shows up in anyone's logs.

Run the test vectors

The repository carries test/vectors.mjs. It checks the home-made SHA-512 against Node's, the curve against RFC 8032, both sides of the derivation against each other forty times, and signatures against Node's own Ed25519.

shell
node test/vectors.mjs          # offline
LIVE=1 node test/vectors.mjs   # also asks mainnet to check a signature and a balance

Start

Try it

The same three calls, live in this page. Nothing leaves the tab except one balance question to mainnet.

Bench

Number
Press 1
One-time address
—
Note
—
Recipient's check
—

The number on this bench is thrown away when you leave the page. To keep one, make it on the home page, where it is stored in your browser with a backup line.

What it costs

Arithmetic is plain BigInt. On a laptop one scalar multiplication takes a few milliseconds, so cutting an address is three of those and checking a note is one. A thousand notes scan in a few seconds.

Mechanics

How it works

Two key pairs, one throwaway secret, one hash. The whole scheme fits in six lines of algebra.

The algebra

Write G for the base point of ed25519 and L for the order of its prime subgroup. The recipient holds two scalars: a scan key a and a spend key b. The number is their public halves A = a·G and B = b·G.

payer
r  = random scalar                 // thrown away afterwards
R  = r·G                           // the ephemeral key, goes into the note
S  = 8·r·A                         // shared secret, cofactor cleared
h  = H("unlisted/tweak/v1" ‖ S) mod L
P  = B + h·G                       // the one-time address
t  = H("unlisted/tag/v1" ‖ S)[0]   // the view tag, one byte
recipient
S  = 8·a·R                         // the same point: a·(r·G) = r·(a·G)
t' = H("unlisted/tag/v1" ‖ S)[0]   // differs from t? not mine, stop here
h  = H("unlisted/tweak/v1" ‖ S) mod L
p  = (b + h) mod L                 // private scalar of P, because p·G = B + h·G

H is SHA-512. Every hash input starts with its own label so that a value computed for one purpose can never be replayed for another.

Why nobody else can link it

An observer sees R and P. To tie P to the number they would need S, and computing S from R and A without r or a is the Diffie-Hellman problem on this curve. The payer does know S, so the payer can always recognise their own payment. They still cannot spend it: that takes b.

Why two keys

Scanning needs only a and the public B. You can give that pair to a second device and it will find your payments and read balances without being able to move a lamport. The library calls this watch().

Mechanics

Numbers

A number is what you publish. It is 66 bytes behind a three-letter prefix.

Making one

The home page calls createSecret() for 32 bytes from crypto.getRandomValues and derives both scalars from them:

JS
import { createSecret, keysFromSecret, encodeNumber, encodeSecret } from '{{SITE}}lib/unlisted.js';

const secret = createSecret();
const keys   = keysFromSecret(secret);   // { scanPriv, spendPriv, scanPub, spendPub }
encodeNumber(keys);                      // "unl…"  publish
encodeSecret(secret);                    // "key0…" back up, never share
ValueRule
scan scalar aSHA-512("unlisted/scan/v1" ‖ secret) mod L
spend scalar bSHA-512("unlisted/spend/v1" ‖ secret) mod L
number"unl" + base58(A ‖ B ‖ check), check = first 2 bytes of SHA-512("unlisted/check/v1" ‖ A ‖ B)

Where the secret lives

In localStorage under unlisted.secret, as the backup line. It is not encrypted, not synced and not sent anywhere.

WARNING

Whoever reads the backup line can find and spend everything ever paid to the number. A browser extension with access to this site can read it. Clearing site data erases it. Write it down before you share the number, and restore it with "Restore from a backup line" on another device.

What decoding refuses

decodeNumber() throws on a wrong prefix, a non-base58 character, a wrong length, check bytes that do not match (one mistyped character is caught 65535 times in 65536), and on keys that are not points of the curve or are one of its eight small-order points.

The sample number

"Use a sample number" loads sampleNumber(). Its secret is SHA-512("unlisted/sample/v1"), which is to say public.

WARNING

Never pay an address cut for the sample number. Anyone who reads this page can compute its key.

Mechanics

One-time addresses

What the payer's browser does when you press "Cut a fresh address", and what "Another one" changes.

derive()

JS
import { derive } from '{{SITE}}lib/unlisted.js';

const d = derive('unl…');   // or derive({ scanPub, spendPub })
d.address        // base58, a normal Solana address
d.addressBytes   // the same 32 bytes: the rosette is drawn from these
d.ephemeral      // R, 32 bytes
d.viewTag        // 0…255
d.note           // "nt0…" = R + tag, ready to send

Each call draws 64 fresh random bytes for r, so each call returns a different address for the same number. Nothing is stored: if the payer closes the tab before copying the note, that address is simply never used.

These are real addresses

The output is a 32-byte ed25519 point in the prime-order subgroup, base58-encoded: exactly what Solana calls a system account address. Any wallet can pay it. Before the first payment the account does not exist on-chain, and the home page shows that by asking mainnet for its balance.

NOTE

A transfer to a brand-new address must leave it rent-exempt. For a plain system account that is about 0.00089 SOL; smaller first payments are rejected by the network, not by this site.

Paying it

Copy the address into whatever wallet you use and send SOL as you would to anyone. Then give the recipient the note. Without it they have an address they cannot find; see Notes.

Tokens

The address can own token accounts like any other, but this edition only reads SOL balances and only knows how to sign a SOL transfer.

Mechanics

Notes

A note is the one thing the recipient needs in order to find a payment: the payer's ephemeral key and a tag byte.

Why there is a note at all

The recipient cannot scan every address on Solana. They can only test candidates, and a candidate is an ephemeral key R. In designs with an on-chain program, the payer's transaction posts R in a public announcement and recipients read the list. This edition has no program, so the payer delivers R directly.

Format

BytesFieldMeaning
0 – 31ephemeralR = r·G, compressed ed25519 point
32view tagfirst byte of SHA-512("unlisted/tag/v1" ‖ S)
33checkfirst byte of SHA-512("unlisted/check/v1" ‖ R ‖ tag)

Encoded as "nt0" + base58(34 bytes), about 49 characters. As a link: {{SITE}}#note=nt0…

Getting it to them

Any channel works: a message, an email, a QR code, the memo line of an invoice. The home page gives the payer a "Copy link" button; opening the link drops the note into the recipient's inbox box.

What a note gives away

On its own, nothing about the recipient: R is a random point and the tag is one byte of a hash. A note does not contain the address. But the channel you send it through knows who talked to whom, so a note posted in a public chat next to a visible payment tells readers that the two are related. Send it the way you would send an invoice.

NOTE

Losing the note does not lose the money for ever if the payer still has it or can re-send it. Without any copy of R, the address cannot be found again by anyone.

Mechanics

Scanning the inbox

One multiplication per note, one byte compared, and almost every stranger's note is gone.

scan() and match()

JS
import { scan, match, getBalance, sol } from '{{SITE}}lib/unlisted.js';

for (const r of scan(keys, notes)) {
  // r.status: 'mine' | 'miss' | 'bad'
  if (r.status === 'mine') console.log(r.address, sol(await getBalance(r.address)), 'SOL');
}

match(keys, note);   // { address, addressBytes, scalar } or null
StatusMeaning
mineThe tag matched and the address and its scalar were computed.
missThe tag byte differs. Dropped after one multiplication and one hash.
tagOnly when you pass the expected address as a third argument: the tag matched by luck, the address did not.
badNot a readable note: wrong prefix, length, check byte or point.

The view tag

A stranger's note passes the tag by chance once in 256. When that happens with a bare note, the library still returns mine with an address, because a note does not carry the address to compare against. It is harmless: that address is one nobody paid, and its balance reads 0. If the payer also tells you the address, pass it as the third argument and false hits are rejected outright.

Live balances

For each address found, the page calls getBalance on https://solana-rpc.publicnode.com with commitment confirmed. That request shows the RPC provider your IP address and the address you asked about. If that matters, call getBalance(address, yourRpcUrl) against a node you run.

The dry run

"Load sample notes" calls sampleNotes(keys, { count: 16, mine: 3 }): it cuts three addresses for your number and thirteen for throwaway numbers, shuffles them and scans. Nobody paid any of them, so the three it finds truthfully report 0 SOL.

Mechanics

Picking up

A one-time address is controlled by a scalar, not by a seed phrase. Here is what that means when you want the money out.

A raw scalar

Wallet apps keep a 32-byte seed and hash it into a scalar before signing. The key of a one-time address is (b + h) mod L, a scalar with no seed behind it, so it cannot be imported into Phantom, Solflare or a hardware wallet. Signing has to be done by code that accepts a scalar directly.

WARNING

This edition has no pick-up button. Treat real payments to one-time addresses as something you will collect with the snippet below, or leave the feature for a dry run. "Show its key" in the inbox prints the scalar; anyone who sees it can spend that address.

signWithScalar()

Produces a standard Ed25519 signature that any verifier accepts, Solana's included. The nonce is derived from the scalar and the message, never from a random source.

JS
import { match, signWithScalar, verify } from '{{SITE}}lib/unlisted.js';

const m   = match(keys, note);
const msg = new TextEncoder().encode('hello');
const sig = signWithScalar(m.scalar, msg);
verify(sig, msg, m.addressBytes);   // true

transferTx()

Builds and signs a legacy transaction with a single System Program transfer from the one-time address. It returns base64 you can hand to any RPC node's sendTransaction. The library builds it; sending is your decision and your call.

JS
import { match, transferTx, getBalance, rpc } from '{{SITE}}lib/unlisted.js';

const m        = match(keys, note);
const balance  = await getBalance(m.address);
const fee      = 5000n;                                  // one signature
const { value } = await rpc('getLatestBlockhash');
const tx = transferTx({ scalar: m.scalar, to: 'YourFreshWallet…', lamports: balance - fee, blockhash: value.blockhash });

// check it first: the node verifies the signature and simulates
await rpc('simulateTransaction', [tx.base64, { encoding: 'base64', sigVerify: true }]);
// then, when you mean it:
// await rpc('sendTransaction', [tx.base64, { encoding: 'base64' }]);
NOTE

Taking the whole balance minus the fee closes the account, which is allowed. Leaving a remainder below the rent-exempt minimum is not; the network rejects that transfer.

Where to send it

The transfer out is public. Send to your main wallet and the one-time address is tied to it from that block on. A fresh wallet per pick-up keeps the payments apart; an exchange deposit address ties them to your exchange account instead.

Reference

Rosettes

Every engraving on the site is a function of 32 bytes. Same bytes, same rosette, on any screen.

How bytes become lines

ByteSetsRange
0lobes, the symmetry of the whole figure5 – 12
1 + 6iring i: first wave count, lobes × (i + 1) or (i + 2)
2 + 6iring i: second wave count, first + lobes × 1…3
3 + 6iring i: amplitude5.5% – 14% of the radius
4 + 6iring i: blend between the two waves0.38 – 0.74
5 + 6iring i: radius offset± 2.5%
6 + 6iring i: twist of the strand family1 – 3
25 – 28phase of rings 0 – 30 – 2π
29, 30centre medallion: petals and depth3 – 8
31rotation of the whole figure0 – 2π

Four rings, each a family of 20 to 34 closed curves ρ(θ) = base + amp · (blend · sin(kθ + φ) + (1 − blend) · sin(mθ − twist·φ)) with φ stepping around the family. On the home page the big rosette is the current address, the left one is the number's scan key and the right one its spend key.

Draw one

<canvas id="c"></canvas>
<script type="module">
  import { unb58 } from '{{SITE}}lib/unlisted.js';
  import { rosette } from '{{SITE}}lib/rosette.js';
  rosette(c, unb58('11111111111111111111111111111112'), { size: 240 });
</script>

The re-cut

"Another one" interpolates every setting from the old address to the new one over 1.3 seconds. Wave counts pass through fractions on the way, which is why the lines visibly un-braid and re-braid. With reduced motion switched on in your system, the page jumps to the new engraving in one frame.

NOTE

A rosette is a picture of an address, not a checksum. Two addresses can look alike. Compare the characters.

Reference

Library reference

lib/unlisted.js, every export. Byte values are Uint8Array, scalars and lamports are BigInt. Everything is synchronous except the two network calls.

Keys and numbers

CallReturns
createSecret()32 random bytes
keysFromSecret(secret){ scanPriv, spendPriv, scanPub, spendPub }
encodeNumber(keys) / decodeNumber(str)"unl…" / { scanPub, spendPub }; decoding also accepts a pay link
isNumber(str)boolean
encodeSecret(secret) / decodeSecret(str)"key0…" / 32 bytes
sampleKeys(), sampleNumber()the public sample; never pay it

Paying and finding

CallReturns
derive(number, rand?){ address, addressBytes, ephemeral, viewTag, note }
encodeNote({ ephemeral, viewTag }) / decodeNote(str)"nt0…" / the two fields; decoding also accepts a note link
match(keys, note, expect?){ address, addressBytes, scalar } or null
check1(keys, note, expect?){ status, … } with the reason
scan(keys, notes)one check1 result per note
watch({ scanPriv, spendPub }, note){ address, addressBytes } or null; cannot spend
sampleNotes(number, { count, mine })a shuffled dry-run batch

Signing

CallReturns
publicOf(scalar)32-byte public key
signWithScalar(scalar, message)64-byte Ed25519 signature
verify(sig, message, pub)boolean
transferMessage({ from, to, lamports, blockhash })the unsigned legacy message
transferTx({ scalar, to, lamports, blockhash }){ base64, signature, message, from }

Utilities

CallReturns
b58(bytes) / unb58(str)base58 both ways
hex(bytes) / unhex(str), cat(...bytes)helpers
sha512(bytes)64 bytes
isOnCurve(bytes), validPoint(bytes), isPrimeOrder(bytes)boolean
seeded(label)a deterministic rand for fixtures
await getBalance(address, rpcUrl?)lamports
await rpc(method, params, rpcUrl?)the JSON-RPC result
sol(lamports)a decimal string

Errors

MessageThrown when
a number starts with unlthe text is not a number or pay link
a number carries 66 bytescharacters are missing or extra
the check bytes do not match: a character is offa typo
not a pair of public keysthe bytes are not acceptable curve points
a note starts with nt0, a note carries 34 bytes, the check byte does not matchthe note is damaged
small-order point, not on the curve, not canonicala key was crafted or corrupted
RPC answered …the node refused or rate-limited the request

Reference

Spec and formats

Everything another implementation needs in order to cut addresses this one will find, and the other way round.

Constants

NameValue
Curveedwards25519, −x² + y² = 1 + d·x²·y² over 2²⁵⁵ − 19
L2²⁵² + 27742317777372353535851937790883648493
Cofactor8, cleared on the shared point by both sides
HashSHA-512
Scalars from hashes64 bytes read little-endian, reduced mod L, zero rejected
Points on the wire32 bytes, RFC 8032 compression
Text encodingbase58, Bitcoin alphabet, same as Solana addresses

Domain labels

LabelHash input after the labelUsed for
unlisted/scan/v1secretscan scalar
unlisted/spend/v1secretspend scalar
unlisted/tweak/v1shared point Sthe tweak h
unlisted/tag/v1shared point Sview tag, byte 0
unlisted/check/v1the payloadtypo check of numbers and notes
unlisted/nonce/v1scalar, 32 bytes LEsignature nonce prefix

Strings

ThingLayoutLength
Numberunl + base58(scanPub 32 ‖ spendPub 32 ‖ check 2)about 93 characters
Notent0 + base58(ephemeral 32 ‖ tag 1 ‖ check 1)about 49
Backup linekey0 + base58(secret 32)about 48
Addressbase58(P 32)32 – 44

The prefixes use l and 0, two characters base58 leaves out, so a prefix can never be mistaken for payload.

A test vector

The sample number with rand = seeded('vector-1') must give exactly this. The values below are computed by the library in your browser right now:

vector-1
computing…

Browser storage

KeyHolds
unlisted.secretthe backup line of your number
unlisted.notesthe text of the inbox box

Trust

Limits and what you trust

The plain list. If one of these lines is a deal-breaker, this is the wrong tool and it is better to know now.

What stays public

FactVisible to
The payer's walleteveryone, it signs the transfer
The amount and the timeeveryone
The one-time address, its balance, every later moveeveryone
Where you pick the money up toeveryone; a main wallet there joins the dots
That the address belongs to your numberyou and the payer only
That two one-time addresses share an owneryou only, until you move both to the same place

Unlisted keeps your identity out of the payer's hands and your payers out of each other's sight. It does not hide amounts, it is not a mixer, and it does nothing for money that later travels to a known wallet.

What you are trusting

  • This site's code. The page that makes your keys could be changed to leak them. The library is one file you can read; for anything that matters, save a copy and run it from disk.
  • Your browser and its extensions. The secret sits in localStorage in the clear.
  • The payer. They know which address is yours and can prove they paid it. They cannot spend it.
  • The RPC node, for balances only. It sees your IP and the addresses you ask about. It cannot change what the maths says is yours.

What this edition does not do

  • No program on Solana, no registry, no on-chain announcements. Notes travel by hand.
  • No wallet connection and no sending. You pay from your own wallet.
  • No pick-up button. Moving money out takes a few lines of code.
  • No token transfers, only SOL balances.
  • No audit. The arithmetic is tested against Node's Ed25519 and RFC 8032, and it is not constant-time: do not run it where an attacker can time your CPU.
WARNING

If you lose the backup line, no one can recover the number or anything paid to it. There is no support desk holding a copy, because there is no copy.

Token

$UNLISTED

The one entry that is printed in the book.

Contract

$UNLISTED is a token on Solana. Its contract address appears here, on the home page and in the header buttons at the same moment, read from one settings block.

CAsoon

Buy $UNLISTED Chart X

What the token does

It is the coin of this project and nothing in the library checks for it: making a number, cutting addresses and scanning are free and work with an empty wallet. There are no fees taken by this site, so there is nothing routed to holders either.

Check before you buy

Copy the address from this page, not from a reply or a screenshot. The rosette in the Token section of the home page is drawn from the contract's own bytes, so a different address draws a different figure.

Trust

FAQ

Is this a mixer?

No. Nothing is pooled and nothing is swapped between users. Each payment is one transfer from the payer to one address.

Can the payer take the money back?

No. The payer can compute the address but not its private scalar, which needs your spend key.

Can I reuse a one-time address?

Technically yes, it is an ordinary address. But a second payment to it links the two payers to each other, which is the thing the scheme exists to avoid. Press "Another one".

I cleared my browser. Is my number gone?

From this browser, yes. Paste the backup line into "Restore from a backup line" and it is back, along with the ability to find everything paid to it, as long as you still have the notes.

Why does the fresh address show 0 SOL?

Because it has never existed before this moment. The page asks mainnet to show you that it is truly unused.

Do I need SOL to receive?

No. You need SOL only to pay the 0.000005 SOL fee when moving money out, and that comes from the one-time address's own balance.

Will there be an on-chain version?

This site makes no promise about one. The formats on the Spec page are stable under the v1 labels, so anything built later can read what was cut today.

Can I use the library in my own project?

Yes. It is one file with no imports. Pin a copy rather than hot-linking if your users' money depends on it.