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

[confidential-transfers] Use direct constructors for the ElGamal pod types with agave 2.1 #7186

Open
samkim-crypto opened this issue Aug 26, 2024 · 0 comments

Comments

@samkim-crypto
Copy link
Contributor

The zk-sdk that ships with agave 2.0 does not provide an easy way to directly construct pod types like PodElGamalPubkey or PodElGamalCiphertext from bytes. As a workaround, in token-2022 and in the confidential transfer ciphertext arithmetic crates, the bytes are converted to strings and then the strings are converted to these pod types (using the fact that the pod types implement FromStr).

Proper constructors for the pod types in the agave repo has been merged (anza-xyz/agave#2711). Once agave 2.1 is released, remove the FromStr workaround and directly use the provided constructors.

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

No branches or pull requests

1 participant