Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to handle 4532 bytes length attestations #78

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
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
11 changes: 1 addition & 10 deletions contracts/periphery/AttestationVerifierZK.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,7 @@ contract AttestationVerifierZK is
(sha256(journal[:8]) == sha256(attestation[87:95])) && // Checking timestamp
(sha256(journal[8:56]) == sha256(attestation[104:152])) && // Checking PCR0
(sha256(journal[56:104]) == sha256(attestation[155:203])) && // Checking PCR1
(sha256(journal[104:152]) == sha256(attestation[206:254])) && // Checking PCR2
(
sha256(journal[152:249]) == sha256(attestation[1835:1932]) ||
sha256(journal[152:249]) == sha256(attestation[1836:1933])
) // Checking certificate root key
&&
(
sha256(journal[249:313]) == sha256(attestation[4353:4417]) ||
sha256(journal[249:313]) == sha256(attestation[4354:4418]) ||
sha256(journal[249:313]) == sha256(attestation[4356:4420])) // Checking enclave public key, but not proper
(sha256(journal[104:152]) == sha256(attestation[206:254])) // Checking PCR2
)
) revert AttestationVerifierAttestationTooOld();
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading