Skip to content

Commit

Permalink
Merge pull request #42 from gnosisguild:auryn/emit-seed-and-params
Browse files Browse the repository at this point in the history
feat: emit seed and params
  • Loading branch information
auryn-macmillan authored Sep 4, 2024
2 parents b8f9658 + bb08876 commit d253bc5
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 90 deletions.
4 changes: 3 additions & 1 deletion packages/evm/contracts/Enclave.sol
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,15 @@ contract Enclave is IEnclave, OwnableUpgradeable {
);

e3 = E3({
seed: keccak256(abi.encode(block.prevrandao, e3Id)),
threshold: threshold,
startWindow: startWindow,
duration: duration,
expiration: 0,
e3Program: e3Program,
computeProvider: computeProvider,
e3ProgramParams: e3ProgramParams,
inputValidator: inputValidator,
computeProvider: computeProvider,
decryptionVerifier: decryptionVerifier,
committeePublicKey: hex"",
ciphertextOutput: hex"",
Expand Down
4 changes: 3 additions & 1 deletion packages/evm/contracts/interfaces/IE3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ import { IDecryptionVerifier } from "./IDecryptionVerifier.sol";
/// @param ciphertextOutput Encrypted output data.
/// @param plaintextOutput Decrypted output data.
struct E3 {
bytes32 seed;
uint32[2] threshold;
uint256[2] startWindow;
uint256 duration;
uint256 expiration;
IE3Program e3Program;
IComputeProvider computeProvider;
bytes e3ProgramParams;
IInputValidator inputValidator;
IComputeProvider computeProvider;
IDecryptionVerifier decryptionVerifier;
bytes committeePublicKey;
bytes ciphertextOutput;
Expand Down
Loading

0 comments on commit d253bc5

Please sign in to comment.