From 02eaa7beca194fafcd0fe9394476fa7260266309 Mon Sep 17 00:00:00 2001 From: Leopold Joy Date: Fri, 24 Jul 2026 19:49:20 +0100 Subject: [PATCH] refactor: name attestation signing certificate Co-authored-by: OpenCode --- src/NitroValidator.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NitroValidator.sol b/src/NitroValidator.sol index bbb691f..503f825 100644 --- a/src/NitroValidator.sol +++ b/src/NitroValidator.sol @@ -147,10 +147,10 @@ contract NitroValidator { cabundle[i] = attestationTbs.slice(ptrs.cabundle[i]); } - ICertManager.VerifiedCert memory parent = verifyCachedCertBundle(cert, cabundle); + ICertManager.VerifiedCert memory leafCert = verifyCachedCertBundle(cert, cabundle); bytes memory hash = Sha2Ext.sha384(attestationTbs, 0, attestationTbs.length); require( - p384Verifier.verifyP384SignatureWithHints(hash, signature, parent.pubKey, attestationSigHints), + p384Verifier.verifyP384SignatureWithHints(hash, signature, leafCert.pubKey, attestationSigHints), "invalid sig" );