genome
The genome is 32 bytes that every transaction rewrites. It is the only source of chance in the embryo. Nobody holds a key to it and nobody can set it. This page shows the bytes as they are now, how a transaction changes them, and which bytes are read for which decision.
bits
256 bits, byte 0 at the left, high bit at the top
fold
one fold per transaction, in the order the chain gives
g(0) = SHA-256( contract address ) g(n) = SHA-256( hex(g(n − 1)) + signature(n) )
A fold happens for every transaction that references the coin's mint, whether it succeeded or failed. The signature is used as the text you see on an explorer, and the old genome is used as 64 lowercase hex characters. The two are joined with nothing between them and hashed.
To push the genome toward a result you would have to know the signature of your own transaction before sending it and land it at an exact position in the chain's order, and then nobody else may land one after it before the read. The next transaction, yours or anyone's, rewrites all 32 bytes.
reads
| bytes | read as | decides | now |
|---|---|---|---|
| 0 and 1 | 16 bit number, modulo sealed cells | which sealed cell divides next | |
| 2 | modulo 3 | fate of the new cell | |
| 4 and 5 | 16 bit number, modulo sealed cells | which cell a candling opens | |
| 6 and 7 | 16 bit number, modulo sealed cells | which cell a resorption opens | |
| hash of genome, colon, j | first two bytes, scaled to 25 to 75 percent | the split of division j, at the moment it resolves |
The picks in the last column move with every transaction. They only become real at the transaction that triggers the event: the one that completes 12 more units, the one that doubles the cell count, or the one that breaks the band.
tail
| transaction | slot | result |
|---|