Suppose there is a smart contract with a bidding function, and the bidder can send the bid price to the smart contract after encrypting it. When the auction is over, a trusted third party sends the decryption key to the smart contract, which uses the key to decrypt the cipher text and announce the results. My questions are:
- how to guarantee that the execution environment of the smart contract is secure, i.e., that the decryption key is not exposed during execution.
- how to guarantee the security of the decryption key during transmission, i.e., the decryption key will not be obtained by anyone except the smart contract and the trusted third parity.