Ark

Documentation · protocol ark:v1

The Ark registry.

Ark is an append-only, on-chain registry on Solana that binds a wallet’s ed25519 address to a post-quantum public key. If ed25519 is ever broken, the record of which PQ key the real owner committed to — and when — is already on-chain, signed by the original key, before anyone could forge it.

How it works

  1. 1Your browser generates a PQ key from 32 bytes of fresh randomness. It is never derived from a wallet signature: whoever breaks ed25519 would then get the PQ key too.
  2. 2The PQ key signs the statement ark:v1:bind\nwallet:<address>\nscheme:<id> (context ark/v1). That is the post-quantum half of the proof.
  3. 3Your wallet signs a Solana transaction carrying the memo ark:v1:<scheme>:<sha256(pq key)>. That is the ed25519 half, fixed at a slot.
  4. 4Records are append-only. A new binding gets the next sequence number; old ones are never erased. Consumers take the latest record at or before the slot they care about — so a post-Q-Day forger can add records, but can’t rewrite history before that day.

On-chain format

Each binding is one Solana mainnet transaction, signed by the wallet being bound:

Fee payer & signer
the wallet
Instruction
System transfer, 0.3 SOL → Ark vault 6nwzxkvTs9K182DK5ApxLYHxnNhmSTJdxM2udLYTyAYS
Instruction
SPL Memo (MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr), wallet as signer
Memo
ark:v1:<scheme>:<64 hex chars of sha256(public key)>
Schemes
ml-dsa-44 · ml-dsa-65 · slh-dsa-sha2-128s

The full key does not fit: ML-DSA-44 is a 1,312-byte key and a 2,420-byte signature, a Solana transaction is 1,232 bytes. The chain holds the 32-byte commitment; the key and the counter-signature are served by the API and pinned to IPFS. Anyone can hash the key and compare. SHA-256 preimages are not something quantum computers break.

Keys & backup

The backup is the 32 random bytes, shown as 24 BIP-39 words. The signing key is HKDF-SHA256(entropy, info = "ark/v1/keygen/<scheme>") fed into the NIST key generation of the chosen scheme (via @noble/post-quantum). The encrypted file is the same 32 bytes under AES-256-GCM with a PBKDF2-SHA256 key (600,000 rounds). The private key never leaves your browser.

Verify by hand

Don’t trust us. For any record:

  1. 1Fetch the transaction from any Solana RPC node and read the memo. Check the wallet signed it and the transaction succeeded.
  2. 2Take publicKey from the API (or IPFS), base64-decode, SHA-256 it. It must equal the commitment in the memo.
  3. 3Verify proof over the statement with that public key and context ark/v1.

Or run the script, which does all three and reads the chain directly:

curl -O https://arkpq.app/ark-verify.mjs
npm i @noble/post-quantum @noble/hashes
node ark-verify.mjs <wallet> --api https://arkpq.app

ark-verify.mjs →

API

Open, no key, CORS enabled.

GET/api/registry/<wallet>Latest record and full history. Add ?slot=N for the latest record at or before slot N.
{
  "protocol": "ark:v1",
  "wallet": "…",
  "bound": true,
  "current": {
    "seq": 1, "scheme": "ml-dsa-44",
    "commitment": "<sha256 hex>",
    "slot": 389012345, "signature": "<tx>",
    "memo": "ark:v1:ml-dsa-44:<sha256 hex>",
    "statement": "ark:v1:bind\nwallet:…\nscheme:ml-dsa-44",
    "publicKey": "<base64>", "proof": "<base64>",
    "ipfs": "ipfs://…"
  },
  "history": [ … ]
}
GET/api/statsWallets and records aboard, latest bindings.
GET/api/rootMerkle root of the whole registry.
GET/api/badge/<wallet>SVG badge for READMEs and profiles.

Registry root

/api/root returns a Merkle root over every record in insertion order. Leaf: sha256("ark:v1:leaf|wallet|seq|scheme|commitment|slot|signature"); parent: sha256(left ‖ right); an odd node is carried up unchanged. Any snapshot of the registry can be checked against it.

FAQ

Why 0.3 SOL?

It pays for the inscription and the infrastructure that serves and pins every key. Network fees on top are a fraction of a cent.

Can I rotate my key?

Yes. Register again: you get record #2, #1 stays in history. Consumers decide which slot they trust up to.

Lattices or hashes?

ML-DSA (lattices) is the NIST default and small. If you’d rather rely on hash functions only, pick SLH-DSA — bigger signatures, same registry.

What if Ark disappears?

The memos stay on Solana forever. The key material is on IPFS and in every copy of the API anyone made. The verify script needs only an RPC node and the key.