Skip to content

Commit

Permalink
forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Nov 30, 2024
1 parent 3376fe4 commit 4523a0b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/NitroValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ contract NitroValidator {
certManager = _certManager;
}

function validateAttestation(bytes memory attestationTbs, bytes memory signature)
external
returns (Ptrs memory)
{
function validateAttestation(bytes memory attestationTbs, bytes memory signature) external returns (Ptrs memory) {
Ptrs memory ptrs = _parseAttestation(attestationTbs);

require(ptrs.moduleID.length() > 0, "no module id");
Expand All @@ -91,7 +88,8 @@ contract NitroValidator {
bytes memory cert = attestationTbs.slice(ptrs.cert.content(), ptrs.cert.content() + ptrs.cert.length());
bytes[] memory cabundle = new bytes[](ptrs.cabundle.length);
for (uint256 i = 0; i < ptrs.cabundle.length; i++) {
cabundle[i] = attestationTbs.slice(ptrs.cabundle[i].content(), ptrs.cabundle[i].content() + ptrs.cabundle[i].length());
cabundle[i] =
attestationTbs.slice(ptrs.cabundle[i].content(), ptrs.cabundle[i].content() + ptrs.cabundle[i].length());
}

CertManager.CachedCert memory parent = certManager.verifyCertBundle(cert, cabundle);
Expand Down

0 comments on commit 4523a0b

Please sign in to comment.