ERC-8525 FHE Interaction Framework
Draft · Other · created 2026-11-28
It defines a framework in which multiple participants jointly compute on data encrypted with fully homomorphic encryption (FHE) without decrypting it, disclose the result only to a designated audience under fixed rules and permissions, and leave evidence of that disclosure.
Why it is needed
Fully homomorphic encryption (FHE) lets computation happen on ciphertext without decrypting the data, but every execution environment that uses it implements handles, access lists, and decryption services differently. As a result there is no common way to express which ciphertext belongs to which activity, who can advance that activity, what the activity's state is, or who can learn which parts of it. Existing standards cover only a single asset or transfer, like an encrypted balance or an encrypted message between two parties, and do not address interactions where multiple parties keep computing without anyone ever decrypting. Getting a ciphertext back also offers no guarantee that it is the correct result of the requested program, and if a role name like 'auditor' doesn't match who actually holds the keys, the protection becomes nominal only. Implementations also differ on whether disclosure should still proceed when membership changes, key rotation, or permission revocation occurs between the request and the release, and the risk is magnified because released information cannot be undone.
What to implement
function isAuthorized( bytes32 scopeId, uint64 policyVersion, address subject, bytes32 capability, bytes32 classId, bytes32 resource ) external view returns (bool);: Returns whether a given subject has a specified capability under a given scope and policy version.function requiredApprovals(bytes32 scopeId, uint64 policyVersion, bytes32 classId, bytes32 viewId, address audience) external view returns (uint256);: Returns how many approvals are required before disclosing to a given audience through a given view.function registerProfile(bytes32 descriptorHash, bytes32 evaluationClass, string calldata uri) external returns (bytes32 profileId);: Registers a crypto profile and derives a unique identifier from its descriptor and evaluation class.function createKeyContext( bytes32 salt, bytes32 profileId, bytes32 descriptorHash, string calldata uri, EpochInit calldata firstEpoch ) external returns (bytes32 keyContextId);: Creates a key context under the specified profile and opens its first key epoch.function openEpoch(bytes32 keyContextId, EpochInit calldata init, CarryOver carryOver) external returns (uint32 epoch);: Opens the next key epoch and transitions the previous epoch to RETIRED or REVOKED state.function revokeEpoch(bytes32 keyContextId, uint32 epoch) external;: Revokes an epoch in ACTIVE or RETIRED state so that nothing can proceed under that epoch anymore.function createScope( bytes32 salt, bytes32 descriptorHash, string calldata uri, bytes32 recordMode, PolicyInit calldata firstPolicy ) external returns (bytes32 scopeId);: Creates an activity scope together with its first policy version.function updatePolicy(bytes32 scopeId, PolicyInit calldata next) external returns (uint64 version);: Activates the scope's next policy version.function pauseScope(bytes32 scopeId) external;: Pauses the scope, halting operations and disclosures within it.function resumeScope(bytes32 scopeId) external;: Reactivates a paused scope.function closeScope(bytes32 scopeId) external;: Closes the scope. A closed scope cannot be reopened.function admitKeyContext(bytes32 scopeId, bytes32 keyContextId) external;: Allows the scope to accept objects from a specific key context.function defineView( bytes32 scopeId, bytes32 programHash, bytes32 outputHash, bytes32 keyContextId, bytes32[] calldata inputClasses ) external returns (bytes32 viewId);: Defines a disclosure view for the scope. The identifier is derived from all the arguments passed in.function retireView(bytes32 viewId) external;: Revokes a view. No further disclosure can proceed through a revoked view.function isHolder(bytes32 keyContextId, uint32 epoch, address account) external view returns (bool);: Returns whether that account is a holder able to contribute to a release in a given epoch.
In depth
Eight objects and two independent flows
FHE-IF defines eight objects: activity scope, crypto profile, key context with key epochs, protected object, policy version with an authorizer, operation, disclosure under a disclosure view, and evidence. The two flows are independent of each other. In the first flow, an operation is requested, an executor that needs no decryption capability performs that operation on ciphertext, and once the result is accepted, the output becomes an object, still encrypted, that can be used in subsequent operations. In the second flow, a request comes in to disclose a single object through a single view to one audience; once authorized, holders with decryption capability re-check permissions at the moment of release and carry out the disclosure. This framework does not fix the encryption scheme, parameters, key generation protocol, proof system, or where ciphertext is stored; these are declared by the profile and the key context.
Crypto profiles: three evaluation classes and distinguishing error sources
A profile is registered with a descriptor hash and an evaluation class, and cannot change after registration. There are three evaluation classes: fheif.evaluation.homomorphic (every operation is evaluated homomorphically), fheif.evaluation.mixed (some steps expose plaintext, and that step, who it is visible to, and what trust it relies on must be specified), and fheif.evaluation.test-only (for testing only, protects nothing, and must not be treated as confidential). The profile descriptor must describe seven items: data semantics, supported programs, correctness conditions, limitations, security, compatibility, and evidence. A backend must recognize unknown objects, keys, or requests as unknown and reject them, must not treat objects from a different profile, key context, or epoch as compatible without a declared conversion, and must report failure whenever it detects one. The profile must also distinguish and handle three sources of error separately: the gap between the original model and the program, error in the encrypted computation itself, and the gap between the model and the real world.
Key contexts and key epochs
A key context belongs to a single profile, has a controller, and is never identified by epoch number alone; it is always referenced as a (key context, epoch) pair. The descriptor must describe four properties, freely and independently combined: how the key is controlled, the decryption access structure, the custody/execution environment, and whether conversion is possible. Key material is divided into five kinds, signing key, public encryption key, evaluation material, decryption key/share, and transfer key, and holding one does not imply holding another. An epoch has three possible states: ACTIVE (new inputs, outputs, and disclosures are all allowed), RETIRED (no new inputs or outputs, but disclosure of existing objects and converted inputs are allowed), and REVOKED (nothing is allowed). When opening a new epoch, one of three CarryOver options must be declared: RETAIN (keep the previous epoch), CONVERT (allow operations that convert previous-epoch inputs into new-epoch outputs), or RESET (revoke the previous epoch); merely incrementing the number is not a rotation, so a new epoch must always have newly generated key material and a newly set holder list. Scope controller, key context controller, and holder are three distinct roles.
Scopes, policy versions, and eight capabilities
A scope has a controller, a descriptor, a record mode, a current policy version, and a state (ACTIVE/PAUSED/CLOSED), and once closed it cannot be reopened. A policy version consists of a policy document hash, an authorizer address, and a successorRight. An object is bound to the policy version in effect when it was accepted; if the previous version's successorRight is NARROW_ONLY, permission is granted only when both the previous and current version's authorizers agree, and the required number of approvals follows whichever is larger; if it is GOVERN, the current version decides alone. There are eight capabilities, fheif.capability.submit-input, request-operation, execute-operation, accept-result, request-disclosure, receive-view, approve-disclosure, and anchor-record, and none of them subsumes another. All of these questions are answered by the ledger querying isAuthorized and requiredApprovals on IFHEIFAuthorizer, and whether the answer is based on identity, eligibility, membership, or a group decision is entirely up to the authorizer.
Disclosure views: computed views and identity views
A disclosure view binds together the scope and policy version at the time of its definition, the range of input object classes, the program hash, the hash of the view output document containing the full output content, and the key context. Audience, conditions, and validity period do not belong to the view; they are instead bound separately to authorization and the disclosure request. 'Public' is not a form of output but simply one audience (which may include everyone), so the same view can be disclosed to a single person or to everyone alike. Views are realized in two ways: computed views (the operation specifies the view, the program and input class must match the view, and only an accepted output may be disclosed through that view) and identity views (the program is fheif.program.identity, so the object is disclosed as is). Because release discloses one entire object, a backend must not convey more content than the view reveals while expecting the interface to hide the rest, and if a single ciphertext holds multiple values, any positions outside the view's output scope must be erased or separated.
The lifecycle of an operation
An OperationRequest binds together the scope, policy version, key context, input and output epochs, program hash, view, output class, inputs, requester, executor (or 0 to allow anyone), nonce, and validity period. The ledger admits the request only if all seven of the following hold: the identifier is being used for the first time; the scope is ACTIVE and the policy version is current; the key context is accepted by the scope and the output epoch is ACTIVE; the input epoch equals the output epoch or leads to it through a next epoch opened with CONVERT; the designated view belongs to the scope and has not been revoked; all inputs are in an accepted state; and the requester holds the request-operation capability for all inputs. Otherwise it reverts. The state moves through ADMITTED, RESULT_SUBMITTED, ACCEPTED, REJECTED, FAILED, CANCELLED, and EXPIRED; the executor acts only on operations the ledger has admitted, must perform the requested program exactly on the requested objects, and must report failure if it cannot. The mere fact that a result was submitted does not imply correctness.
Disclosure requests and release
A disclosure request (DisclosureRequest) binds together scope, object, view, key context and epoch, policy version, audience, delivery key hash, requester, nonce, and the valid start and end times. A ledger whose disclosure record mode is open records the request only if all five of the following hold: the identifier is first-use; the scope is ACTIVE, the record mode is open, and the policy version is current; the object is in an accepted state with the same key context and epoch, and that epoch is ACTIVE or RETIRED; the view belongs to the scope and has not been revoked, and the object either carries that view or falls within the identity view's scope; and the requester holds request-disclosure while the audience holds receive-view. The state moves through REQUESTED, AUTHORIZED, RELEASED, REFUSED, and EXPIRED, and a holder must not contribute before the disclosure becomes RELEASED, that is, before the final attestation that completes the release quorum is included, nor contribute to a disclosure that is REFUSED or EXPIRED. If a withdrawal, expiration, view revocation, epoch cancellation, policy replacement, or scope termination intervenes after the request but before the quorum is completed, the release never occurs, but content that has already been released and disclosed is not reversed.
Signed requests and evidence records
If the requester signs with EIP-712, anyone can submit the request on their behalf. The domain name is 'FHE Interaction Framework', the version is '1', and the chain identifier and ledger address are included together. Since EIP-712 itself does not prevent replay, this framework uses the request's digest as its identifier so the ledger rejects an identifier that has already been used, binds the domain to a single chain and ledger, and gives the request its own validity period to prevent replay. If the requester is a contract, the signature is verified via ERC-1271, but a request that has not yet been admitted is verified against the signer's state at submission time, while a request that has already been admitted is established as a ledger record and its signature is not re-verified. Evidence is recorded against one of six propositions: input-well-formed, input-constraint, operation-correct, decryption-correct, disclosure-authorized, and business-accepted, and the mechanism is an open list including unspecified, self-attestation, re-execution, committee, zero-knowledge proof, TEE attestation, optimistic challenge, designated verifier, and ledger state, with no single unified 'verified' flag. This proposal is in Draft status, written on November 28, 2026, and has not yet been finalized; its content may still change or discussion may stall.