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

feat: serializing output for solidity #8

Merged
merged 1 commit into from
Jan 16, 2025
Merged

feat: serializing output for solidity #8

merged 1 commit into from
Jan 16, 2025

Conversation

shreyas-londhe
Copy link
Member

This PR adds nifty functions for serializing public outputs received from ZkVM proofs.

This is the output structure which can be decoded in the solidity smart contract.

    struct SolEmailVerifierOutput {
        bytes32 from_domain_hash;
        bytes32 public_key_hash;
        bool verified;
    }

    struct SolEmailWithRegexVerifierOutput {
        SolEmailVerifierOutput email;
        bool header_regex_verified;
        bool body_regex_verified;
        string[] header_regex_matches;
        string[] body_regex_matches;
    }

@Bisht13 Bisht13 merged commit 28c2858 into main Jan 16, 2025
2 checks passed
@Bisht13 Bisht13 deleted the feat/solidity-io branch January 16, 2025 13:36
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