Expand description
SQLite-backed ExecutionNonceStore.
Durable replay-prevention for execution nonces so a kernel that
crashes and restarts cannot be tricked into accepting a nonce that was
already consumed by the previous process. Expiry is enforced by
storing the nonce’s expires_at alongside the consumed marker;
reserve refuses to recycle a slot until the nonce is past its
expiry.
The schema is:
CREATE TABLE chio_execution_nonces (
nonce_id TEXT PRIMARY KEY,
consumed_at INTEGER NOT NULL,
expires_at INTEGER NOT NULL
);
CREATE INDEX idx_chio_execution_nonces_expires_at
ON chio_execution_nonces(expires_at);Structs§
- Sqlite
Execution Nonce Store - SQLite-backed replay-prevention store for execution nonces.
- Sqlite
Execution Nonce Store Error - Opaque error type returned by the SQLite nonce store.