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(verify-era-proof-attestation): added continuous mode with attestation policies #198

Merged
merged 1 commit into from
Sep 16, 2024

Commits on Sep 13, 2024

  1. feat(verify-era-proof-attestation): continuous mode with attestation …

    …policies
    
    This PR introduces TEE Prover continuous mode with attestation policies.
    
    Attestation policies are a set of criteria that determine whether an SGX
    attestation should be considered valid or invalid. In practice, this
    means checking against a specified set of mrsigners, mrenclaves, and TCB
    levels. If the attestation’s mrenclave/mrsigner/TCB levels matches those
    in the provided --sgx-mrenclaves/--sgx-mrsigners/--sgx-allowed-tcb-levels,
    we treat the attestation as successfully verified. Otherwise, the
    attestation is considered invalid.
    
    The --continuous mode for the TEE Prover allows it to run continuously,
    verifying new batches exposed by the node's RPC API in real-time.
    
    To try it out, run the following commands:
    
        $ nix build -L .#container-verify-era-proof-attestation-sgx
        $ export IMAGE_TAG=$(docker load -i result | grep -Po 'Loaded image.*: \K.*')
        $ docker run  -i --init --rm $IMAGE_TAG --continuous 11505 --rpc https://sepolia.era.zksync.dev --sgx-allowed-tcb-levels Ok,SwHardeningNeeded --log-level debug
        $ docker run  -i --init --rm $IMAGE_TAG --batch 11509 --rpc https://sepolia.era.zksync.dev --sgx-allowed-tcb-levels Ok,SwHardeningNeeded --log-level debug
    pbeza committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    4fcaaa7 View commit details
    Browse the repository at this point in the history