Ledger¶
The ledger is a CometBFT chain whose application enforces all rules. Four validators tolerate one that is faulty.
Transactions¶
| Type | Signed by | Effect |
|---|---|---|
entity.upsert |
registry | Add, activate or deactivate an entity |
epoch.open |
VRF system | Propose an epoch |
vrf.submit |
candidate | Submit a proof |
epoch.finalize |
VRF system | Elect the quorum |
leader.rotate |
VRF system | Next leader |
action.propose |
leader | Propose a task |
verification.result |
quorum member | Vote |
action.result |
leader | Publish a result |
task.finalize |
auditor | Confirm a result |
evidence.submit |
auditor | Accuse |
evidence.vote |
auditor | Vote on evidence |
A transaction carries chain, type, payload, key, time, nonce and signature.
Events¶
epoch.opened, epoch.seeded, epoch.finalized, leader.rotated, entity.updated, entity.revoked, action.proposed, verification.recorded, task.approved, task.rejected, action.result, task.finalized, evidence.submitted, evidence.vote_recorded, evidence.upheld, evidence.rejected.
Delivery¶
The ledger watcher delivers events to the targets in events.json:
{
"action.proposed": {"targets": ["quorum"]},
"action.result": {"targets": ["type:auditor"]},
"entity.revoked": {"targets": ["service:registry"]}
}
| Target | Receivers |
|---|---|
quorum |
Members of the epoch's quorum |
type:<type> |
Active entities of a type |
service:<name> |
registry, lease or evidence |
Receivers verify signatures and state on the ledger. A faulty watcher can delay, but not deceive.
Timing¶
| Rule | Value |
|---|---|
| Block interval | 1 second (BLOCK_INTERVAL_MS) |
| Result after the end of a term | 10 seconds |
| Automatic finalization | 5 seconds after the window |
| Abort of an unfinished epoch | 15 seconds after the window |