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] Add to_bytes and from_bytes functions for proof context types for wasm target #4645

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

Conversation

samkim-crypto
Copy link

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

Problem

Currently, there is on-going work to create client-side JS code for interacting with the ZK ElGamal proof program (e.g. solana-program/zk-elgamal-proof#1). There has been a sequence of PRs to expose specific functionality in the zk-sdk for wasm build using wasm-bindgen.

Summary of Changes

In this PR, I added functionality to encode and decode zk proof data and context types as bytes.

  • ab6cf77: I first added the encryption_with_u64 function for grouped ciphertexts to wasm build as I missed adding it in the previous PR (ab6cf77).
  • 41a4907: I added the to_bytes and from_bytes functions for the proof data and context types.

Fixes #

@vadorovsky vadorovsky self-requested a review January 27, 2025 16:27
@samkim-crypto samkim-crypto marked this pull request as ready for review January 28, 2025 07:49
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