P2EP2E.STMainnetDevnet

The record key: Opens at launch

How to check the gold record

In plain words

Every time a character's gold changes, the game writes a line into the gold record: when it happened, how much changed, how much gold the character had afterwards, and why (looted, sold, a quest, a trade, a swap...).

Each realm has its own gold record. Every line says which realm it belongs to, and so does every fingerprint we put on Solana, with the realm's name, so one realm's record can never be passed off as another's.

A Trade balance (gold kept for a player on the website, from a character they sold or tokens they sent in) has its own place in the record, like one more character with its own code: its lines show the gold coming in and going out, and its last balance is what it holds. Trade balances are all kept in the first realm's record. The economy page shows their total as "Waiting in Trade balances", beside the gold in the realm.

Characters aren't named in the record. Each one appears under a code, like 715d84498af5042b. Nobody can tell from the codes which characters belong to the same player. You can see your own characters' codes on your Swaps page.

Each line is locked to the line before it with a fingerprint. Change one old line, even by a single copper, and every fingerprint after it stops matching. Every 10 minutes we put the latest fingerprint on Solana, signed by one key that does nothing else (the record key, at the top of this page), where nobody, not even us, can change or remove it afterwards. You read those fingerprints from Solana yourself, all of them, not from a list we give you. So if we ever rewrote the past, the fingerprints already on Solana would stop matching, and anyone checking would see it.

You don't need to trust us or use any tool of ours. The steps below are everything you need to check it yourself.

What you can download

If our site asks you to wait (it answers a limited number of pages to each address in an hour), wait and ask again.

The check, step by step

sha256 is the standard SHA-256 hash. Text is turned into bytes as UTF-8. || means "followed by". Hex is lowercase.

1. Every line, in order: the fingerprints must chain.

   previous = 32 zero bytes
   for each line, in order of idx (1, 2, 3, ... with no gaps):
       if its realm is not the realm you are checking:   PROBLEM
       text = "v3|" + realm + "|" + seq + "|" + at + "|" + who + "|" + delta + "|" + balance + "|" + source + "|" + hidden
       fingerprint = sha256(previous || text)
       if hex(fingerprint) is not the line's hash:   PROBLEM: this line, or one before it, was changed
       previous = fingerprint

2. Every summary the record key ever put on Solana: rebuild it from the lines it covers.

   for each transaction signed by the record key, from Solana (not from our list):
       skip it if it failed, or if its memo isn't "p2e.st gold ledger v4 realm ..." or "... v3 realm ..."
       skip it if its realm is another realm's (that realm's record is checked on its own)
       if a restore notice of this realm comes after it on Solana, with "from" at or below this summary's to:
           it describes lines lost in that restore: count it, don't check it
       if to is past the last line you downloaded: it is newer than your download (download again to include it)
       fingerprints = the fingerprints of lines from..to (from step 1)
       if the last of them is not head:              PROBLEM: lines were changed after this summary was posted
       if root(fingerprints) is not root:            PROBLEM: lines were changed after this summary was posted
                                                     (root for a v4 summary, rootV3 for a v3 one)
       if the transaction's time is before line to's time (more than a few minutes):   PROBLEM
       if it is more than an hour after line to's time:   worth a look (we were down, or the line is backdated)

   root(list):                                       (v4 summaries)
       replace each entry e with sha256(0x00 || e)       (0x00, 0x01: one byte of that value)
       while the list has more than one entry:
           pair the entries up in order; an entry left alone at the end goes up as it is
           replace each pair (a, b) with sha256(0x01 || a || b)
       return the one entry left

   rootV3(list):                                     (v3 summaries, before 13 November 2026)
       while the list has more than one entry:
           pair the entries up in order (an entry left alone is paired with itself)
           replace each pair (a, b) with sha256(a || b)
       return the one entry left

3. Our own list hides nothing: every summary on it must be one of the record key's summaries from step 2.
       otherwise:                                    PROBLEM

4. Every character's gold adds up.

   for each line, in order:
       last balance of this who + delta must equal balance
       if it doesn't, and this who had a line before:   PROBLEM: a line of this character is missing or changed
       if it is this who's first line:   worth a look (a character may start with gold it already had)

If steps 1 to 4 pass, the record you downloaded matches every summary we ever put on Solana, line for line, and nothing in it was changed after it was published. Because you read the summaries from Solana yourself, this holds even if we tried to hide one. Lines newer than the last summary are checked once their summary is posted, a few minutes later (at most 10).

Checking again later

You don't have to start from the first line every time. After a check that passed, keep three things: the last line of the newest summary you checked (its idx and fingerprint), every code's balance at that line, and the newest transaction of the record key you read. Next time, start step 1 from the line after it with previous set to that fingerprint and the balances you kept; ask Solana only for the record key's transactions newer than the one you kept (until in getSignaturesForAddress). If a new summary covers a line at or before where you stopped, or a restore notice reaches back past it, start again from the first line.

Checking one line

To check a single line without downloading the record, ask for its proof (above) and read its summary's transaction from Solana yourself:

the transaction must be signed by the record key, and its memo must be a summary (step 2) whose from and to are
the proof's, with the line's realm, and from <= idx <= to
fingerprint = sha256(prev || text of the line)              (text as in step 1)
if hex(fingerprint) is not the line's hash:                 PROBLEM
v4 summary:  h = sha256(0x00 || fingerprint)
             for each step of path, in order:  h = sha256(0x01 || step || h) if step.left, else sha256(0x01 || h || step)
v3 summary:  h = fingerprint
             for each step of path, in order:  h = sha256(step || h) if step.left, else sha256(h || step)
if hex(h) is not the summary's root:                        PROBLEM

If it passes, that line is in the record exactly as it was when the summary was put on Solana. It doesn't check the lines around it: for that, check the whole record.

Checking your own lines

Some details of each line are kept private: which account and character it belongs to, who was on the other side of a trade, the mail it came from, and where in the world it happened. They're still locked into the line, inside hidden. Your proof file holds those details, plus a random salt, for each of your character's lines, so you can open them:

for each entry in your proof:
    line = the record's line with the same idx
    line.who must be your character's code
    expected = sha256("v3-hidden|" + salt + "|" + account + "|" + character + "|" + ref + "|" + place)
               (a detail that is empty is written as nothing between the bars)
    if hex(expected) is not line.hidden:             PROBLEM

every line under your code, up to the last one in your proof, must be in your proof

Keep your proof file to yourself: anyone holding it can tell which code is your character.

If we ever restore a backup

A restore is our last resort after something went badly wrong: everything after the backup is undone in the game. The chain can't be undone, so we say so on it: a restore notice, signed by the record key like every summary, with the time of the backup and the first line written anew. Summaries posted before the notice that cover those lines described the lines that were lost; they stay on Solana for anyone to see, and a checker lists them as lost in that restore rather than hiding them. Tokens already made from gold that the restore gave back are on record again, and that gold can't be swapped a second time.

Staff corrections

If a character's gold ever doesn't match its record, two different members of our staff have to agree on the fix, and it goes into the record like any other change, as its own kind of line (manual_adjustment). Gold is never added this way. If a character has more gold than its record, the extra is taken back (you'll see it appear and leave again); if it has less, the record is brought down to match.

What this proves, and what it doesn't