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

chore: add tests for eip55 cacaos #636

Merged
merged 4 commits into from
Jan 8, 2025
Merged

chore: add tests for eip55 cacaos #636

merged 4 commits into from
Jan 8, 2025

Conversation

dav1do
Copy link
Contributor

@dav1do dav1do commented Dec 20, 2024

Added tests using two events from the recent gitcoin signature failures. One is a full carfile parsed as an event, the second uses the envelope/cacao strings and parses them to demonstrate how one could swap in new envelope/cacao strings and make sure it passes (or fails).

Refactored a bit to make it easier to pass in data from a dag-json envelope downloaded from IPFS. I'd like to use the Signature type instead of passing protected/signature bytes directly, but I didn't get the deserialization right while testing. There might be an easy way I'm just missing, but for now this is just an internal wrapper.

@dav1do dav1do requested review from a team and nathanielc as code owners December 20, 2024 18:03
@dav1do dav1do requested review from smrz2001 and removed request for a team December 20, 2024 18:03
Copy link
Collaborator

@smrz2001 smrz2001 left a comment

Choose a reason for hiding this comment

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

:shipit:

@dav1do dav1do added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit 5c377f4 Jan 8, 2025
5 checks passed
@dav1do dav1do deleted the chore/cacao-test branch January 8, 2025 20:02
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