# How do you verify an AI crypto trading bot's results? We built a track record nobody can edit

> Source: <https://dev.to/jaysharma14/how-do-you-verify-an-ai-crypto-trading-bots-results-we-built-a-track-record-nobody-can-edit-4kjp>
> Published: 2026-11-24 05:41:22+00:00

**Recommendation:** Publish trade records as hash-chained, domain-signed, Bitcoin-timestamped seals in a public repo so anyone can verify results without trusting the operator.
More in the playbook "Verifying model output": <https://wpnews.pro/playbooks/output-verification>

Every trading bot is sold on a number. A percentage on the homepage, a rank on a leaderboard, a profit card. People pay a monthly fee or hand over their money because of it. Almost none of those pages can show that the number came from real trades or that nobody edited it later. A screenshot can be cropped. A spreadsheet can be rewritten. A database row can be changed at 3am and nobody would know.

I've seen everything from outright fraud to math that is technically true.

**1. Dashboards with no trades behind them.** In September 2026 the SEC charged two groups that sold investors on AI trading. One told investors they could earn guaranteed profits by renting AI trading bots. As alleged, "there were no AI trading bots" at all. At the other, "no trading took place" and the profits shown were fictitious ([SEC](https://www.sec.gov/newsroom/press-releases/2026-95-sec-charges-multiple-entities-fraud-schemes-totaling-least-15-million-used-whatsapp-other-platforms)). The CFTC describes a scheme that promised at least 10 percent a month and "created fake customer accounts and balances using MetaTrader demo accounts" ([CFTC](https://www.cftc.gov/LearnAndProtect/AdvisoriesAndArticles/AITradingBots.html)).

**2. Backtests sold as results.** A backtest shows what some rules would have done on old prices. Try enough settings and one of them will look brilliant. In the US, commodity trading advisers have to label simulated results with "these results do not represent actual trading" ([17 CFR 4.41](https://www.law.cornell.edu/cfr/text/17/4.41)). Check whether a bot's page labels its numbers that clearly. Backtests can also cheat by accident. Ours once used candles that hadn't closed yet at the moment of entry. When we fixed it, most of our setups dropped to our lowest grade.

**3. Percentages measured on the wrong thing.** Binance ranked its top 10 copy traders at +2,000% to +5,700% in 30 days. I tracked all ten every day for three weeks. Nine of the ten returns were their profit over the 30 days divided by exactly $500, while their accounts held $4,100 to $26,400. 7 of the 10 closed their portfolios within 12 days, down 55% to 99%. The trader in second place had copiers with up to $434,000 in. Those copiers lost $194,780 by Binance's own count.

In all three, the seller controls the number and the buyer has no way to check it. If the seller can edit the results page, it's marketing.

So how do you verify a trading bot's results? You can only trust them if the record is public and three things hold. Every update is chained by hash to the one before it. Each update is signed with a key published on the company's own domain. Each one is timestamped in Bitcoin, which nobody can backdate.

I build Botsfolio, an AI that trades crypto on people's own exchange accounts. When we started trading real money in October 2026, I built exactly that log so a stranger can check our record without trusting me. The rest of this post covers how it works (SHA-256, Ed25519 and OpenTimestamps), the Python to check it and what it still can't prove.

There are two kinds of rows:

A real row never has a size, an account, an order ID or a name. People trust us with their money. That doesn't mean they want their trades on GitHub with their name attached. So the log shows what was traded and at what price, never who or how much.

Rows are written into CSV files and pushed to a public GitHub repo: [botsfolio/trading-records](https://github.com/botsfolio/trading-records).

A job runs every hour. If there are new rows, it writes them to a CSV file and then writes a **seal**. That's a small JSON file listing the SHA-256 of each data file and the SHA-256 of the seal before it. Here is a real one, seal 120:

```
{
  "covers_earlier_trades": false,
  "files": [
    {
      "group": "battle",
      "path": "battle/2026/11/20/000120.csv",
      "published": true,
      "sha256": "b65610402e95c70c91554f84ca23363a5e6227af8e70af586c438e45f270c276"
    }
  ],
  "format": 1,
  "previous_seal_sha256": "0744bfab1b71135b8850f51112a968640daad35c07ee363a82f66b3e4a03f460",
  "public_key": "https://botsfolio.com/.well-known/botsfolio-records.json",
  "sealed_at": "2026-11-20T01:20:00Z",
  "seq": 120,
  "signer": "758189603fa8abd5"
}
```

(Trimmed to one file. The real seal lists three.)

Because each seal includes the hash of the one before it, changing any old file changes its hash, which breaks the seal that lists it, which breaks every seal after that. You can't quietly fix one row in the middle.

One detail that bit us early: hashes are over exact bytes, while git likes to rewrite line endings on Windows. The repo has a `.gitattributes` of `* -text` so a checkout on any machine gives back the bytes that were sealed.

A hash chain proves nothing changed. It doesn't prove who wrote it. So each seal is signed with **Ed25519** over the exact bytes of the seal file. The signature sits next to it as `000120.json.sig`.

The public key is published in three places:

`https://botsfolio.com/.well-known/botsfolio-records.json`
`nslookup -type=TXT _botsfolio-records.botsfolio.com`
`public-key.pem`
Only whoever controls botsfolio.com can change the first two. If someone forked the repo and signed everything again with their own key, it wouldn't match the key on our domain.

Checking the newest seal takes a few lines:

``` python
import base64, json, urllib.request
from cryptography.hazmat.primitives.serialization import load_pem_public_key

get = lambda url: urllib.request.urlopen(url).read()
raw = "https://raw.githubusercontent.com/botsfolio/trading-records/main/"
key = json.loads(get("https://botsfolio.com/.well-known/botsfolio-records.json"))["publicKeyPem"]
latest = json.loads(get(raw + "latest.json"))
seal, signature = get(raw + latest["seal"]), base64.b64decode(get(raw + latest["signature"]))
load_pem_public_key(key.encode()).verify(signature, seal)  # raises if it doesn't match
print("signed by the key on botsfolio.com:", latest["seal"])
```

A signature proves who signed. It doesn't prove when. Whoever holds the key could, in theory, rewrite the whole history and sign it again.

So every seal's hash also goes to [OpenTimestamps](https://opentimestamps.org) calendars (we use four), which put it into a Bitcoin transaction. Once that block is mined, the `.ots` proof file shows the seal existed no later than that block's time. Nobody can backdate a Bitcoin block.

Our first seal was made at 04:46 UTC on Oct 31 and landed in Bitcoin block 973,930, mined at 05:00 UTC, 14 minutes later. Across all our seals, the median gap from seal to block is about 30 minutes. The finished proof gets committed back to the repo a few hours later.

This is the part that changed how we work.

Besides real trades, we run some public experiments on paper money. One of them copies the top 10 traders on Binance, OKX and Hyperliquid and compares them with our AI. Those numbers come from the exchanges' own leaderboards. Exchanges revise their daily figures.

In early November we found a bug. We were filing OKX's days a day early, so a close kept changing after we'd shown it. We fixed it on Nov 11. In a normal app you'd just update the rows. Here, the old rows were already sealed, signed and in Bitcoin.

So the log never edits. When a value we already published changes, the next seal carries a **correction row** whose `corrects` field points at the row it replaces. The old row stays exactly where it was, still matching its seal.

The OKX copier's value at the Nov 3 close is a good example. It was first sealed at $50,651.91. It moved as OKX revised its numbers, then was corrected to $50,976.20 in seal 64, the first seal after the fix. Every earlier version is still in the repo, byte for byte. You can see exactly what we showed, when we showed it and when we changed our mind.

Honestly, it's a bit embarrassing to have our own mistake sitting in public for good. But if we could fix things quietly, the log wouldn't be worth much.

The repo includes `verify.py`, about 300 lines using the standard library and `cryptography`:

```
git clone https://github.com/botsfolio/trading-records
cd trading-records
pip install cryptography
python verify.py              # every seal: signature, chain, file hashes and Bitcoin proof
python verify.py --prices 25  # also the newest 25 paper prices against Coinbase
```

On Windows, run it as `python -X utf8 verify.py`. Some notes in the battle files have characters Windows reads wrong by default. We're fixing that.

It checks that:

`latest.csv` files match the sealed rows
With `--prices`, it also checks paper trade prices against Coinbase's own candles.

If you'd rather not trust our script, you can check the Bitcoin part yourself at opentimestamps.org.

You won't find a signed log on most bot sites. These five questions still sort a strong record from a weak one:

I wrote a longer guide with a worked example: [How to verify an AI crypto trading bot's track record](https://botsfolio.com/blog/verify-ai-crypto-trading-bot-track-record).

Here's what it can't do, before someone points it out in the comments:

`latest.json`, our site or anyone's earlier copy. If you care, clone the repo. Your copy becomes a witness.
What it does prove: once a row is sealed, we can't change it without anyone noticing. We also can't pretend it was written earlier than it was.

Almost nothing. An hourly job, a free set of OpenTimestamps calendars, a public GitHub repo and an Ed25519 key. The code was the easy part. Getting comfortable with publishing our own mistakes as correction rows took longer.

If you run anything with a results page (a bot, a fund, a leaderboard), this pattern is small enough to copy. The repo is CC BY 4.0, so feel free to borrow the structure.

There's also a walkthrough of the checks at [botsfolio.com/track-record/verify](https://botsfolio.com/track-record/verify).
