How immunefi-team/audit-comp-base-everest-nitro-validator works
This is a Solidity AWS Nitro Enclave attestation-verification library, with Node.js tooling that prepares hinted P-384 verification calldata. The main workflow caches a verified CA-to-leaf certificate chain, then validates each attestation document against the cached chain. Certificate revocation is an administrative capability driven by off-chain CRL monitoring. The contract implementation excerpts were not provided, so Solidity relationships below rely on README statements; tool relationships use the sampled source. The graph omits unverified internal call details.
Main entry points: CertManager.sol Certificate manager · NitroValidator.sol Nitro validator · P384Verifier.sol P-384 verifier · Asn1Decode.sol ASN.1 decoder
Components 16
Verification contracts
- Certificate manager
src/CertManager.sol - CA chain cache
src/CertManager.sol - Leaf certificate cache
src/CertManager.sol - Nitro validator
src/NitroValidator.sol
Parsing and cryptography
- ASN.1 decoder
src/Asn1Decode.sol - CBOR decoder
src/CborDecode.sol - P-384 verifier
src/P384Verifier.sol - P-384 curve math
src/ECDSA384Curve.sol - SHA-2 extensions
src/Sha2Ext.sol - Byte utilities
src/LibBytes.sol
Off-chain preparation
- Hinted call planner
tools/hinted_attestation_calls.js - P-384 hint generator
tools/p384_hints.js - Attestation input
tools/nitro_attestation_input.js
Other components
- Verifier caller
- Authorized revoker
- AWS CRLs
Connections 18
- Verifier caller → Certificate manager: caches certificates
README.md - Verifier caller → Nitro validator: submits attestation
README.md - Certificate manager → CA chain cache: caches CA chain
README.md - Certificate manager → Leaf certificate cache: caches leaf
README.md - Nitro validator → Certificate manager: checks cached chain
README.md - Authorized revoker → Certificate manager: revokes certificates
README.md - AWS CRLs → Authorized revoker: informs revocation
README.md - Hinted call planner → P-384 hint generator: collects hints
tools/hinted_attestation_calls.js - Hinted call planner → Attestation input: loads fixture
tools/hinted_attestation_calls.js - P-384 hint generator → ASN.1 decoder: parses certificates
- Nitro validator → CBOR decoder: decodes attestation
- Certificate manager → ASN.1 decoder: parses certificates
- Certificate manager → P-384 verifier: verifies certificates
README.md - Nitro validator → P-384 verifier: verifies signature
- P-384 verifier → P-384 curve math: uses curve math
- P-384 verifier → SHA-2 extensions: uses hashing
- ASN.1 decoder → Byte utilities: uses byte utilities
- CBOR decoder → Byte utilities: uses byte utilities