Every decision, on the record
Each decision the engine takes is a leaf: the exact JSON of its inputs and action, hashed with keccak256. Every UTC minute with a decision, the leaves are sorted into a Merkle tree and its root is sealed on Elysium by the record contract. Nobody, the operator included, can change a decision after its minute. The demo book’s decisions are paper fills, labelled demo; a live position’s are labelled live and carry their Hyperliquid client order ids.
See the live engine, checked now: its mode and heartbeat, the latest minute against Elysium, a fresh Hyperliquid read and the exact order it would place, all in the page’s HTML.
OptivaRecord is not deployed yet. Roots are built every minute now; sealing on Elysium starts once the contract is live.
Verify any leaf
Paste a leaf hash from any position page. Your browser hashes its JSON, folds the proof to the minute’s root, then asks the contract on Elysium.
How a leaf is checked
- 1
Hash the JSON
leaf = keccak256("optiva.leaf.v1" ‖ canonical JSON). Keys sorted, no spaces; whole numbers stay numbers and every other number is written as a decimal string. Hash the JSON exactly as served.
- 2
Fold the proof
Each sibling is hashed with the running node in sorted order, keccak256(min ‖ max), up to the minute’s root. An odd node is carried up unchanged.
- 3
Ask the contract
OptivaRecord.roots(minute) returns the sealed root, keyed by the minute in Unix seconds; verify(minute, leaf, proof) does the fold on chain, on Elysium (chain 99901). Minutes recorded before sealing began keep their root in the record, with no seal.
- 4
Replay the decision
On a position page, the replay recomputes each decision from its recorded inputs with the published method.
