Skip to content

Solidity based prover for AWS Nitro enclave attestations

Notifications You must be signed in to change notification settings

taikoxyz/NitroProver

 
 

Repository files navigation

AWS Nitro Attestation Prover in Solidity

Nitro prover is a set of contracts in Solidity to verify attestations generated by AWS Nitro enclaves. The attestation verification is based on the attestation process specified in AWS docs. Nitro enclaves can use attestations to prove that a enclave image with specific measurements is running within the enclave. Measurements are sort of like hashes taken at various stages when enclave image is created. These can be used to uniquely identify the code running within an enclave. Attestation verification onchain helps enable usecases where compute can be performed offchain and the results can be proved onchain based on the attestation from the enclave.

Nitro prover verifies that the attestation document which contains the measurements of the code running along with other information about the enclave like the enclave key is signed with a certificate that originates from AWS Nitro root cerificate.

Setup

Foundry has to be installed to run the code in the repo.

Build

Compile contracts using the following

forge install
forge build --via-ir

Test

Run the tests using the following

forge test --via-ir

Deploy

Setup the .env similar to the fields mentioned in .env.example. The contracts can then be deployed using the following

forge script script/IncrementalNitroProver.s.sol:NitroProverScript --via-ir --rpc-url arbitrum-sepolia --broadcast --verify

About

Solidity based prover for AWS Nitro enclave attestations

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%