The board

How pickthepunk checks a proof

Every CryptoPunk has a page at its number, such as 1234.pickthepunk.com. Its holder makes the page theirs by proving they control the wallet that holds the punk. There are two ways to prove it, and neither can move the punk. Everything below is public and can be checked by anyone.

Who holds a punk

Way 1: a signed message

The wallet signs a Sign-In with Ethereum message (EIP-4361), with personal_sign (EIP-191). It names the page's address, the punk, the wallet, a code used once, and when it stops counting (ten minutes after it was asked for):

1234.pickthepunk.com wants you to sign in with your Ethereum account:
0x…

Claim 1234.pickthepunk.com for CryptoPunk #1234. A signature only: no transaction, no gas, no approval.

URI: https://1234.pickthepunk.com/claim
Version: 1
Chain ID: 1
Nonce: …
Issued At: …
Expiration Time: …

We check that the signature comes from that wallet (the address its key recovers to; a contract wallet such as a Safe answers isValidSignature, EIP-1271, with 0x1626ba7e), that it arrived before the expiration time, and that the wallet holds the punk or is its delegate. The message is plain text: before signing, the wallet puts Ethereum Signed Message in front of it, and orders, permits and transactions are signed in other formats, so this signature can never be used as one of them. It costs nothing and needs no gas. We ask for this one signature and nothing else; a page with our name that asks for more is a fake.

Way 2: a test payment to goldcote.eth

For a holder who would rather connect nothing, the way exchanges check a wallet (a "Satoshi test"):

  1. We show an exact amount between 0.0000101 and 0.0000999 ETH, seven decimals, never ending in 0. The amount is the claim's code: no other open claim has it, and it counts for one hour.
  2. They send exactly that amount, as a plain transfer, to goldcote.eth: 0x0cD586c0117b7ceA016cf2B505B104C49a2a68Fa, the address of Goldcote Ltd, the company named in our Terms. It is one address for every claim.
  3. We read the blocks mined after the claim began. A transfer to that address of the code's amount, in a block mined before the hour is up, from the wallet that holds the punk or its delegate, is the proof. Its transaction hash is kept with the page.

Only whoever controls a wallet can send from it, and the amount was shown to that claim alone. The server only reads Ethereum: it holds no key. A wrong amount or a tip stays in the company wallet, and a mistake can be sent back.

After a proof

Check a proof yourself

Each claimed page also gives its proof as data, at /proof.json. Our check tool reads it and checks it again from public Ethereum data, without trusting us:

npx github:Goldcote/pickthepunk-claim 1234

It checks that the signed message is the claim message for that punk, word for word, and that the signature comes from the wallet it names (or that the transfer went from that wallet to goldcote.eth with the code's amount). Then it reads who holds the punk today. It asks a public Ethereum node; --rpc and an address of your own picks another.

The code

What the claim page asks your wallet for, the message, these checks and the check tool are public: https://github.com/Goldcote/pickthepunk-claim. pickthesite runs a released version of it, named at the foot of every claim page, and the script your browser runs on a claim page (/site/claim.js) is that version's browser/claim.js, byte for byte.

The same, in Markdown: how-we-check.md.