Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(prover-nitro-enclave): initial nitro prover impl #274

Open
wants to merge 64 commits into
base: main
Choose a base branch
from

Conversation

35359595
Copy link
Contributor

@35359595 35359595 commented May 30, 2024

Implement #221

This PR implements Nitro based prover guest using vsock crate and raiko-host feature-gated extension intended to reside on parent host and talking to enclave through VSocket.

Enclave ID and vsocket port are constant values for consistensy.

On-chain proof validation will be implemented in separate PR.

Example output:

  • proving block 2020
    {"data":{"output":null,"proof":"5b3133322c36382c3136312c312c35362c33342c3136302c38392c31372c36382c3136392c3130352c3130392c3131312c3130302c3131372c3130382c3130312c39352c3130352c3130302c3132302c33392c3130352c34352c34382c35362c39372c39382c3130312c34382c3130312c39382c3130312c35322c34392c3130322c3130312c39382c35302c3130302c39392c34352c3130312c3131302c39392c34382c34392c35372c34382c35352c35342c35322c34392c34382c3130322c35332c35362c3130322c3130302c35332c35322c3130322c3130302c3130352c3130332c3130312c3131352c3131362c3130322c38332c37322c36352c35312c35362c35322c3130352c3131362c3130352c3130392c3130312c3131352c3131362c39372c3130392c3131322c32372c302c302c312c3134342c3131382c3134362c3235322c3137362c3130302c3131322c39392c3131342c3131352c3137362c302c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c312c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c322c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c332c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c342c38382c34382c3136322c3232342c3138342c3130372c3235312c31362c3136302c3135352c3132382c33352c3130392c34322c3233382c3130352c37352c3133382c34322c3130322c3233392c3130362c3235322c3231302c3136332c36322c39392c3230372c3135352c3234382c33322c3234302c35382c3133392c3233332c3139372c3235322c35382c3137362c34332c3134312c382c3132362c35352c3231332c3137392c36362c3139342c38372c32302c352c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c362c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c372c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c382c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c392c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c30
    -------snip---------
    33322c3136365d","quote":null},"status":"ok"}

@35359595 35359595 temporarily deployed to test-environment May 30, 2024 04:31 — with GitHub Actions Inactive
@35359595 35359595 temporarily deployed to test-environment June 5, 2024 01:05 — with GitHub Actions Inactive
@35359595 35359595 temporarily deployed to test-environment June 6, 2024 00:20 — with GitHub Actions Inactive
@35359595 35359595 self-assigned this Jun 6, 2024
host/Dockerfile Outdated Show resolved Hide resolved
@35359595 35359595 marked this pull request as ready for review July 4, 2024 23:52
@35359595 35359595 temporarily deployed to test-environment July 8, 2024 19:08 — with GitHub Actions Inactive
@35359595 35359595 temporarily deployed to test-environment July 8, 2024 19:12 — with GitHub Actions Inactive
@35359595 35359595 had a problem deploying to test-environment July 8, 2024 19:25 — with GitHub Actions Failure
@35359595 35359595 marked this pull request as draft July 23, 2024 00:57
@35359595 35359595 marked this pull request as ready for review September 18, 2024 17:55
@smtmfft smtmfft requested a review from Brechtpd September 19, 2024 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants