Migration guide
From 0.7.x
Decryption Oracle
function myCustomCallback(uint256 requestId, bytes memory cleartexts, bytes memory decryptionProof) public returns (bool) {
/// @dev This check is used to verify that the request id is the expected one.
require(requestId == latestRequestId, "Invalid requestId");
FHE.checkSignatures(requestId, cleartexts, decryptionProof);
(bool decryptedInput) = abi.decode(cleartexts, (bool));
yBool = decryptedInput;
isDecryptionPending = false;
return yBool;
}
} CoprocessorConfig({
ACLAddress: 0x687820221192C5B662b25367F70076A37bc79b6c,
CoprocessorAddress: 0x848B0066793BcC60346Da1F49049357399B8D595,
DecryptionOracleAddress: 0xa02Cda4Ca3a71D7C46997716F4283aa851C28812,
KMSVerifierAddress: 0x1364cBBf2cDF5032C47d8226a6f6FBD2AFCDacAC
});From 0.6.x
Package and library
Configuration
Decryption Oracle
Deprecation of ebytes
Block gas limit
Last updated