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

OracleAttestation validation and follow spec #242

Merged

Conversation

bennyhodl
Copy link
Contributor

Adds validation to OracleAttestation and adds event_id to the messaging to follow spec.

Closes #239
Closes #181

@bennyhodl bennyhodl force-pushed the oracle-attestation-validation branch from b13f7d3 to d8cbe9b Compare October 29, 2024 21:20
@bennyhodl
Copy link
Contributor Author

I think the failing tests in sled are because the sled files do not have the event_id in the attestation?

@bennyhodl bennyhodl force-pushed the oracle-attestation-validation branch from d8cbe9b to d928e67 Compare October 30, 2024 02:16
@Tibo-lg
Copy link
Contributor

Tibo-lg commented Oct 31, 2024

I think the failing tests in sled are because the sled files do not have the event_id in the attestation?

Yeah you should be able to solve this by running the generate_serialized_contract_files.sh script.

@bennyhodl bennyhodl force-pushed the oracle-attestation-validation branch from d928e67 to 5b1f7f1 Compare October 31, 2024 19:44
@bennyhodl
Copy link
Contributor Author

I added attestation validation in line with the spec

Add two test of a valid attestation and an invalid attestation where signature does not match the nonce.

Copy link
Contributor

@Tibo-lg Tibo-lg left a comment

Choose a reason for hiding this comment

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

Thanks!

@Tibo-lg Tibo-lg merged commit 1f3fdae into p2pderivatives:master Oct 31, 2024
73 checks passed
@bennyhodl bennyhodl mentioned this pull request Dec 10, 2024
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.

spec: Oracle Attestation Add validate to OracleAttestation
2 participants