Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

[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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant