Ledgerlock architecture: two books, read by one contract
Base Sepolia Locked logs and Unichain Sepolia Minted logs reach one LedgerlockReactive contract on Reactive Lasna, which matches each mint to its lock; a mint with nothing locked makes one react() request two pause callbacks, one to the gate on each chain, and a lock that lands inside the 60-second window sends two resume callbacks. Shown for route A, the fixture bridge.
LEDGERLOCK · ARCHITECTURE · ROUTE A · TESTNET
TWO BOOKS, READ BY
ONE CONTRACT
REACTIVE LASNA
5318007
Reactive Omni · the guard
BASE SEPOLIA
84532
1301
UNICHAIN SEPOLIA
LedgerlockReactive
react()
reads both books and every gate ack
BASE BOOK
Locked(nonce, to, amount)
UNICHAIN BOOK
Minted(nonce, to, amount)
2
matched by
nonce, amount, to
IN ORDER
Locked, then its Minted:
matched. No callback.
0 callbacks
FORGED MINT
3
Minted, nothing locked:
one
react()
pauses both.
requestCallbackV_1_0 ×2
latched until
resolve()
LOCK ARRIVES LATE
5
Its Locked lands inside
W = 60 s: both reopen.
lf-104 · paused 5.1 s
no human action
4
4
5
5
1
1
Locked
via
subscribe
Minted
via
subscribe
8.245 s
both gates shut, p95
100 testnet attacks
LockBox
bridge · lock side
lock()
→
Locked
releases check Gate B
Gate B
pause()
resume()
via callback proxy
freezes releases
Gate U
pause()
resume()
via callback proxy
stops mints
Minter
bridge · mint side
mint()
→
Minted
mints check Gate U
THE BRIDGE'S OWN PATH: LOCK → MINT · LEDGERLOCK IS NOT IN IT