Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/NitroValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ contract NitroValidator {
cabundle[i] = attestationTbs.slice(ptrs.cabundle[i]);
}

ICertManager.VerifiedCert memory leafCert = verifyCachedCertBundle(cert, cabundle);
ICertManager.VerifiedCert memory leafCert = _verifyCachedCertBundle(cert, cabundle);
bytes memory hash = Sha2Ext.sha384(attestationTbs, 0, attestationTbs.length);
require(
p384Verifier.verifyP384SignatureWithHints(hash, signature, leafCert.pubKey, attestationSigHints),
Expand All @@ -175,7 +175,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)
{
Expand Down
Loading