Problem
Currently, the spl-token-confidential-transfer-proof-generation build fails to compile for wasm target due to a recent update with zk-sdk v2.2 (#293). #298 fixes the issue, but adding logic that encrypts the mint, burn, and transfer amounts the second time. This redundancy in the logic is necessary unless a more flexible interface is added upstream in the zk-sdk.
Solution
Add a more flexible interface when working with GroupedElGamalCiphertext in the zk-sdk for wasm target. Remove the redundant encryption when token22 upgrades to the next version of zk-sdk.
Problem
Currently, the
spl-token-confidential-transfer-proof-generationbuild fails to compile for wasm target due to a recent update with zk-sdk v2.2 (#293). #298 fixes the issue, but adding logic that encrypts the mint, burn, and transfer amounts the second time. This redundancy in the logic is necessary unless a more flexible interface is added upstream in the zk-sdk.Solution
Add a more flexible interface when working with
GroupedElGamalCiphertextin the zk-sdk for wasm target. Remove the redundant encryption when token22 upgrades to the next version of zk-sdk.