From 527bea6deaeabfc14f348f15860e190da8b2e52d Mon Sep 17 00:00:00 2001 From: Leopold Joy Date: Fri, 24 Jul 2026 19:50:20 +0100 Subject: [PATCH] style: prefix cached bundle helper 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..72ed1ad 100644 --- a/src/NitroValidator.sol +++ b/src/NitroValidator.sol @@ -147,7 +147,7 @@ contract NitroValidator { cabundle[i] = attestationTbs.slice(ptrs.cabundle[i]); } - ICertManager.VerifiedCert memory parent = verifyCachedCertBundle(cert, cabundle); + ICertManager.VerifiedCert memory parent = _verifyCachedCertBundle(cert, cabundle); bytes memory hash = Sha2Ext.sha384(attestationTbs, 0, attestationTbs.length); require( p384Verifier.verifyP384SignatureWithHints(hash, signature, parent.pubKey, attestationSigHints), @@ -162,7 +162,7 @@ contract NitroValidator { /// record without re-checking the signature (and so needs no hints). If a cert is NOT /// cached, signature verification is attempted against an empty hint stream and reverts /// with "inverse hint underflow". Callers must therefore pre-cache the whole bundle first. - function verifyCachedCertBundle(bytes memory certificate, bytes[] memory cabundle) + function _verifyCachedCertBundle(bytes memory certificate, bytes[] memory cabundle) internal returns (ICertManager.VerifiedCert memory) {