Decryption Request Flow
The process of requesting decryption through Smart Contracts starts the same as every other FHE Operation Request πsteps 1-4
Here we'll continue from FheOS server handling such request as follows:
Flow Diagramβ
The following diagram illustrates the complete flow of an FHE Decryption request in the CoFHE ecosystem:
Figure 1: End-to-end flow of an FHE Decryption request through the CoFHE system components
π Step 1-4β
π Step 5: FheOS server - Decryption Executionβ
The FheOS server handles decryption requests:
-
Create execution thread on the fheOS server
-
FheOS server calls the threshold network with:
- The ciphertext to be decrypted
- Transaction hash from the host chain
- Original operation handle
π Step 6: Threshold network security protocolβ
- Verify the host chain requested the desired decryption
- Retrieve the actual ciphertext hash from private storage
- Validate ciphertext hash integrity
- Perform secure decryption
π Step 7: FheOS Notifies the Aggregator with the decrypt resultβ
- Call appropriate callback function on the Aggregator
- The Aggregator calls the TaskManager with relevant result
π Step 8: TaskManager emit event with decryption resultβ
- Provide decrypted result by emitting an event
DecryptionResult
- The event consists of
ciphertext handle
,result
,requestor
(of that decrypt operation)