You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(nitro-verifier): add expiry-aware intermediate certificate caching
Change trustedIntermediateCerts mapping from bytes32=>bool to
bytes32=>uint64, where the value is the certificate's notAfter timestamp
in seconds (0 = not cached). Cached certs are now automatically treated
as untrusted once block.timestamp exceeds their expiry, closing a
security gap where cached entries could outlive their X.509 validity.
Changes:
- INitroEnclaveVerifier.sol: Add certExpiries field to VerifierJournal
- NitroEnclaveVerifier.sol: uint64 mapping, expiry checks in
_verifyJournal, checkTrustedIntermediateCerts, _cacheNewCert,
revokeCert; constructor accepts parallel expiries array
- DeployRiscZeroStack.s.sol: Pass empty expiries array to constructor
- Tests: 6 new tests for expiry semantics, all existing tests updated
- Semver: 0.1.0 -> 0.2.0
CHAIN-3889
* refactor(nitro-verifier): remove redundant expiry == 0 checks since block.timestamp is always positive
* chore: regenerate semver-lock after expiry check simplification
0 commit comments