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

Add pcr0 hash adding support by owner into oracle contract. Add basic… #59

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

kristjanpeterson1
Copy link
Collaborator

… Solidity Standard JSON input file generation to enable easier verification of contracts, needed because of the viaIR flag used in compilation

… Solidity Standard JSON input file generation to enable easier verification of contracts, needed because of the viaIR flag used in compilation
@@ -245,6 +247,11 @@ contract ChatOracle {
latestAttestationOwner = msg.sender;
}

function addPcr0Hash(string memory pcr0Hash) public onlyOwner {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onlyOwner is correct here yep?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes!

how can we read the pcr0Hashes on the browser/client side?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the mapping and "latestPcr0HashOwner" are public, so we can query latestPcr0HashOwner and then pcr0Hashes[latestPcr0HashOwner]

@kristjanpeterson1 kristjanpeterson1 merged commit c12079f into main Apr 3, 2024
4 checks passed
@kristjanpeterson1 kristjanpeterson1 deleted the pcr0-hashes-in-oracle branch April 3, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants