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

fix: debug deserialization for SP1ProofWithIO. Test. #249

Merged
merged 1 commit into from Feb 16, 2024

Conversation

preston-evans98
Copy link
Collaborator

Previously, the type Proof implemented a custom serializer which hex encoded the proof data but did not implement a corresponding deserializer. This caused roundtrip deserialization to fail.

This PR makes two improvements. First, it adds a custom deserializer for the Proof type. Second, it adds hex encoding only when the target serialization format is human-readable - eliminating overhead in binary formats. This PR also adds tests on roundtrip encoding for the SP1ProofWithIO type, which contains Proof.

Fixes #247

@preston-evans98 preston-evans98 merged commit a9b77ce into main Feb 16, 2024
6 checks passed
@preston-evans98 preston-evans98 deleted the preston/fix-serde branch February 16, 2024 17:35
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.

Proof serialization/deserialization doesn't seem to be symmetric
2 participants