The six-branch geometric mark of BNB CortexBNB Cortex BNB Smart Chain Testnet
BNB Smart Chain TestnetBrain contract Treasury contract Benchmark data
z01234567897athe 64 weights of neuron 7bbias, and the sum zcsoftmax over the ten sumsdthe update, when it learnsit reads a 7 z01234567897athe 64 weights of neuron 7bbias, and the sum zcsoftmax over the ten sumsdthe update, when it learnsit reads a 7
Plate VI · the anatomy of one output neuron · BSC Testnetthe main model, version 301

How itworks.

What the contract does with a digit, what it keeps, what it costs, and who can do what.

1 · the arithmetic

Each of the 10 neurons sums its 64 weights times the 4-bit pixels, an integer softmax turns the sums into probabilities, and a lesson moves every weight a pixel touches; if the network still reads the digit wrong it takes another step, 2 at most, all in 16-bit integers with no floating point.

z[o]  = sum(w[i][o] × x[i]) + 16 × b[o]
p     = softmax2(z)
        scale 65,536
E[o]  = (o = label ? 65,536 : 0) - p[o]
w    += (E × x + 512) >> 10
b    += (E + 32) >> 6

2 · what is stored where

65 storage slots hold a model's 650 numbers; every lesson adds a row (sample, label, teacher, block) and the hash of the 1,300 bytes of weights it made, all readable with a plain call.

one row per lesson · one hash per version

3 · gas, measured

operationgasat today's gas pricewhat it is
teach401,882—one lesson, the mean of 3,000
teachBatch161,052—per lesson, 32 in one transaction
fork1,566,346—copy any past version
forkHead1,679,802—copy the head
predict122,731freea read-only call
evaluate2,185,450freethe score on all 200 benchmark digits, read-only

Gas measured on a local chain running the deployed bytecode; the cost column is the gas times the gas price BSC Testnet reports now, and read-only calls cost nothing.

4 · why anyone can replay it

Every version comes from the genesis seed (or a forked version) and the lessons in order, and the contract stored each version's hash: your browser reads the lessons with modelInfo, lessonsRange and hashesRange, runs the same arithmetic and compares hash after hash. Replay a model to watch it happen.

seed3v0# storedv1# storedv301# storedlessonreplayed in your browser: the same hash at every version

5 · the benchmark and its limits

200 handwritten digits from the test set of the UCI data, 20 of each, stored as the code of a data contract; the benchmark is public, so a score is a yardstick, not a proof, and nothing pays out on it.

The 200 benchmark digits stored on chain, one row per digit from 0 to 9, 20 of each (block 136,274,299).

6 · bad lessons, and forks

Anyone who may teach the main model can teach it a wrong label, and a run of them pulls its score down; nothing is deleted, any earlier version can be forked, and the owner can make such a fork the main model.

wrong labelsfork from hereevery lesson stays on record

7 · the holder gate

Teaching the main model can be limited to holders of the token: the contract checks the teacher's balance at the moment of the lesson, and nothing more.

a lessonholds the minimumat that momentmaina forkgas onlyany model
gate token
—
minimum balance
—

8 · the token and the treasury

The token is a tax token: its buys and sells pay a trading tax, which the launchpad's tax processor forwards to the treasury contract. Trading tax goes to the project's treasury contract; the developer wallet can withdraw its BNB.

buy, selltaxprocessortreasuryreceived so far—
received so far
—
owner
—

9 · the contracts

Brainmodels · lessons · hashesreadsbenchmark200 digitsTreasurythe tax
network
BNB Smart Chain Testnet, chain 97
main model
1, genesis seed 3

colophon

The plates are drawn by code from the network's own weights and lessons at block 136,274,299, and redrawn in your browser from the chain as it is now; the digits come from the Optical Recognition of Handwritten Digits data set by E. Alpaydin and C. Kaynak (UCI Machine Learning Repository, 1998, CC BY 4.0); the type is Newsreader by Production Type and IBM Plex Mono by IBM, both under the SIL Open Font License.

Teach a digit