6.2 Batcher tests in enclave#144
Conversation
There was a problem hiding this comment.
This is mostly just reformatting according to nixfmt, the only real change is adding enclaver to the devShell.
|
Amazing! The test could pass on my ec2 machine. Let's add the test instructions also to the comment on top of the test. |
dailinsubjam
left a comment
There was a problem hiding this comment.
I haven't had a chance to review all the code yet, will continue later.
shenkeyao
left a comment
There was a problem hiding this comment.
Haven't tested this on an EC2 machine yet, but the changes look good!
| // TODO(AG): currently op-batcher calls `registerSigner` directly, | ||
| // which on the first run results in verifying the full certificate | ||
| // chain in a single transaction, which runs over gas limit. This is | ||
| // a workaround for the issue, real solution will invole verifying | ||
| // each cerficiate separately before calling `registerSigner` |
There was a problem hiding this comment.
Could you add the task link to the comment as well? https://app.asana.com/1/1208976916964769/project/1209392461754458/task/1210016054362985?focus=true (I think this is the corresponding task?).
@dailinsubjam Great indeed. Could you help @QuentinI document how to set up an EC2 instance with an enclave in the Espresso README.md, so that everyone can run the tests on her own? |
|
@philippecamacho Sure! Instruction on how to setup an enclave-enabled EC2 instance added in https://github.com/EspressoSystems/optimism-espresso-integration/pull/152/files. |
dailinsubjam
left a comment
There was a problem hiding this comment.
LGTM, there's just too much code for me to go through every detail lol.
9ff1b53 to
8bfdf54
Compare
|
I get this error |
Oh, this was an uncaught merge error after rebasing onto celo's updates. Fixed. |
|
I get this error now. Maybe I did not configure my EC2 instance correctly. |
6ffa2a2 to
0e10cfe
Compare
philippecamacho
left a comment
There was a problem hiding this comment.
All tests (enclave and no-enclave) passing.
LGTM
Closes #<ISSUE_NUMBER>
This PR:
espresso/environmentespresso/environment, which builds the batcher EIF, registers its PCR0 with attestation verifier and starts the EIF.TestE2eDevNetWithEspressoSimpleTransactions, just with batcher in enclaveThis PR does not:
Key places to review:
How to test this PR:
On a EC2 machine with enclave support:
cd kurtosis-devnet/just op-batcher-enclave-imagecd ../export ESPRESSO_RUN_ENCLAVE_TESTS=truego test ./espresso/enclave-tests/... -v -count 1