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

[zk-sdk] Expose sigma proof types for wasm target #4315

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

samkim-crypto
Copy link

@samkim-crypto samkim-crypto commented Jan 7, 2025

Problem

Not all types and functions are exposed for wasm target in the zk-sdk.

Summary of Changes

This is a follow-up to #4171. In this PR, the focus is on exposing the sigma proof types.

a20506c: I exported the Pedersen opening and grouped ElGamal ciphertext types for wasm as they are used to define parameters for certain sigma proof types. Unfortunately, I could not export the GroupedElGamalCiphertext<N> directly since it has a generic constant parameter which wasm-bindgen does not seem to support. So I created two wrapper types specifically for GroupedElGamalCiphertext<2> and GroupedElGamalCiphertext<3>.

5b55e8e: Exported some pod number types as they are going to be used as parameters for certain sigma proof types.

Fixes #

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.

1 participant