Documentation FCC extension
FCC extension
Some inputs to a lending decision are private: leases, customer names, how much of the hardware is under contract. A Flare Confidential Compute extension checks such an input on a registered machine and publishes only pass or fail. This page says what its role is going forward, and then describes the extension as it ran in the v1 demo.
Limit. The demo runs on a test machine with no enclave. Whoever runs it can read the coverage file and holds the machine's 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. Flare Confidential Compute is not on Flare mainnet, and Flare has published no date.
Its role going forward#
The signed record is the base fact. It needs no chain and no machine: the inspector signs it, and a lender can check it alone. Flare Confidential Compute carries a second fact on top of it.
- What the second fact is. A check of private inputs, such as how much of the scheduled hardware is under contract, done by code on a registered machine. Only the answer leaves the machine.
- What it is bound to. The digest of one signed record. The coverage file must name that digest, so an answer cannot be moved to another record.
- Where the vault reads it.
LoanVaultV2has a lender-set place for a second-fact contract. When one is named, the vault asks itholds(facilityKey, recordDigest)for the record it is reading, and refuses the draw withSECOND_FACT_MISSINGunless the answer is true. See Contracts. - What the machine will check first. The design has the machine recompute the record digest and recover the inspector's signer before any coverage check, and answer FAIL with a new reason,
SIGNATURE_INVALID, when the signature does not belong to the named signer.
Not built. Bringing the extension onto the signed record is a later package. Today nothing implements the second-fact interface except test mocks, the vault's place for it is empty in every run, and the machine checks no inspector signature. Until that package is built, the check below stands as a dated earlier demo against registry v1.
Three things stay true whatever is built:
- The second fact adds to the signed record. It does not replace the inspector's signature. That signature shows who issued the record and that it was not changed. It does not show that the facts are true, and neither does the second fact.
- Confidentiality depends on a real Trusted Execution Environment. A test machine gives none.
- Everything here is for Flare's Coston2 testnet.
Registry v1, the earlier demo shown on Coston2#
The rest of this page describes the extension as it was registered and run on Coston2 on 22 and 23 November 2026. In that demo the extension's contract was the only submitter of registry v1, so the machine's signature, not an inspector's, stood behind every record.
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 with the machine’s key.
- Anyone fetches the 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 registry v1. That 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 machine's signature is checked#
This is the signature of the machine over its result, not an inspector's signature. 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#
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#
Flare's own pages: FCC overview, getting started, instruction fees.