coprocessor/docs/fundamentals/gateway/decryption.md
Everything in FHEVM is encrypted, at some point one could need to decrypt some values. Let's give as illustration a blind auction application. After reaching the end of the auction, one need to discover (only) the winner, here is where a asynchronous decrypt could appear.
:warning: Decryption is public: It means everyone will be able to see the value. If this is a personal information see Reencryption
The Gateway acts as an oracle service: it will listen to decryption request events and return the decrypted value through a callback function. The responsibilities of the Gateway are:
h that corresponds to a ciphertext CP to attest h (i.e. C) is decryptableh as keyKMS BCdecyptionResponse (containing the plaitext and a few signatures from KMS to attest the integrity of the palintext) event from KMS BCdecyptionResponse through the callback functionWe allow explicit decryption requests for any encrypted type. The values are decrypted with the network private key.