Documentation FCC extension
FCC extension
Some inputs to a lending decision are private: leases, customer names, how much of the hardware is under contract. The extension checks such an input on a registered machine and publishes only pass or fail.
Limit. The demo runs on a test machine with no enclave. Whoever runs it can read the coverage file and holds the signing key. The demo shows the flow and the gate. It does not show confidentiality, and it must not be described as confidential until it runs on a real Trusted Execution Environment.
What it checks#
The inspector's proof record says how many units were scheduled and matched. The borrower's coverage file says how many of those units are under a rental or service contract. The machine compares the two against a threshold and answers.
| Setting | Value in the demo |
|---|---|
| Extension id | 67452 |
| Coverage threshold | 80 % (8,000 basis points) |
| Maximum age of a result | 1 day |
| Fee per check | 1,000 wei of test funds |
The same flow in words
- The provisioner sends the coverage file to the machine as a direct action, encrypted to the machine’s key and signed.
- The inspector calls
requestVerificationwith the proof record and pays the fee. - Flare’s data providers relay the instruction. It reaches the machine only above 50 % of signing weight.
- The machine compares the record with the coverage file against the threshold (80 % in the demo) and signs the result.
- Anyone fetches the signed result from the machine’s proxy and calls
submitResult. - The contract recovers the signer and asks FlareTeeManager whether it is a machine of this extension in production.
- If so, the record goes to the registry. The registry takes records from this contract and from nobody else.
The three parts of an extension#
- A contract on chain,
InstructionSender. It is the only address allowed to send work to the extension's machines, and it decides who may ask. - Code that runs on the machine and signs its result with the machine's own key. A code version is identified by the hash of a reproducible image.
- Registered machines. A machine registers with Flare, passes an availability check, and is then in production.
Operations#
| Operation | How it is sent | What it does |
|---|---|---|
SET_PROVISIONER | Instruction, by the contract's owner | Tells the machine which address may send coverage files |
PROVISION_COVERAGE | Direct action to the machine's proxy, no transaction and no fee | Delivers the coverage file, encrypted to the machine's key and signed by the provisioner |
VERIFY_COVERAGE | Instruction, through requestVerification | Asks for the check. The machine signs the answer |
The machine's answer#
| Reason | Meaning |
|---|---|
| 0, OK | The record's own result stands |
| 1, RECORD_FAIL | The record itself says FAIL |
| 2, NO_COVERAGE_FILE | The machine holds no coverage file for the facility |
| 3, DIGEST_MISMATCH | The coverage file is for another record |
| 4, COVERAGE_BELOW_THRESHOLD | Coverage is under the threshold |
| 5, RECORD_INVALID | The record fails the machine's sanity check |
Any reason but 0 turns the result into FAIL.
How the signature is checked#
There is no single verify call. The contract composes the check:
- It rebuilds the digest of the result, which includes a domain tag and the instruction id.
- It recovers the signer from the signature.
- It asks FlareTeeManager whether the extension is paused, whether the signer belongs to this extension, and whether the signer's machine is in production.
- The signer must be the machine the request was sent to.
- The result must arrive within the maximum age, and the request is deleted after use so it cannot be replayed.
Refusal of submitResult | Meaning |
|---|---|
UnknownRequest | No request with that instruction id, or it was already used |
TooLate | The result came after the maximum age |
RecordMismatch | The result is not an answer to the record that was sent |
WrongTee | Signed by another machine than the one asked |
Expired | A PASS whose record is already past its valid-until date |
What an outside developer can do on Coston2 today#
Checked on 22 November 2026: an outside developer can register an extension and a test machine on Coston2 with no approval from Flare. Flare governs an allowlist of extension owners, and on that day it was set to allow everyone. Flare can change that. A real machine in Google Cloud Confidential Space is documented for Coston2 but was not tried by this project.
Flare's own pages: FCC overview, getting started, instruction fees.