Protocol
Reference code for every moving part
The paper specifies its objects and procedures at the level a reference implementation needs. These modules implement them in TypeScript, with tests that check each security property. The Bitcoin pieces are checked against real mainnet headers and a real bitcoind on regtest; the Council's threshold signatures come from the Zcash Foundation's FROST implementation, not from new cryptography.
- packages/protocol/src/fgmLicense state machineThe guarantee module's states, permitted rates and transitions, with property-based tests.
- packages/protocol/src/beaconBitcoin time beaconHeader-chain verification against real mainnet headers, difficulty floors, most-work tips and outage evidence.
- packages/protocol/src/ledgerEpoch ledgerSorted Merkle trees with inclusion and non-membership proofs, chained epochs and Bitcoin anchors.
- packages/protocol/src/bondBond treeThe Taproot bond output, its script leaves and the pre-signed notice, release and slash transactions.
- packages/protocol/src/frost, roastCouncil signingThreshold signatures with the Zcash Foundation's FROST, wrapped in ROAST so disruptive signers cannot stall the Council.
- packages/protocol/src/bountyBounty claimsThe whistleblower claim flow: an anchored commitment, threshold decryption and two-tranche payout.
- packages/protocol/src/manifestManifests and loop closureJob manifests, per-lineage cumulative accounting and the two-signature rule.
- packages/protocol/src/predicatesSlashing predicatesThe five cryptographic predicates and a model of optimistic verification.
The guarantee module
Six states, and a rate ceiling in each
- The cumulative work of the module's recorded chain tip never decreases.
- The module never runs the accelerator above the rate permitted by its current state.
Every transition is logged and signed, and every state other than Licensed permits at most inference above the Tier 0 rate.
| State | Rate | Entered when | Left when |
|---|---|---|---|
| Unlicensed or expired | At most | Enrollment completes; the license budget is spent; units of local time pass; the header chain passes ; the two oscillators diverge beyond tolerance (clock anomaly); an outage ends. | A valid license arrives whose block hash is newer than the module's recorded tip, whose headers meet , and whose site matches the location proof. |
| Licensed | Full rate , within budget and for jobs with valid manifests | A valid license is accepted. | Budget, local duration or height window exhausted; tamper; clock anomaly; inspection hold; positive evidence of a regime outage. |
| Grace | Inference only, at most , for chips registered to critical services | A critical-service chip's license expires without renewal. | Renewal (to Licensed), or the grace period ends (to Unlicensed or expired). |
| Outage grace | Inference only, at most , for every chip | The module is shown every full block of the outage window, each checked against its header's Merkle root, with no valid anchored root among them. | A valid anchored root appears (to Unlicensed or expired, pending renewal). |
| Hold | At most for the chip set the hold names | An adjudicated inspection hold, signed under the Council threshold. | The hold lapses after its fixed period unless a finding confirms it, or the dispute panel lifts it. |
| Tampered | At most ; keys destroyed | A tamper sensor fires; the module signs an alarm if it can, then destroys its keys. | Re-enrollment at an accredited facility. |
From the paper's license state machine table (Appendix B). See the implementation and its property tests.