Skip to content

[confidential-transfer-proof-generation] Double encryption of mint, burn, and transfer amounts #329

Description

@samkim-crypto

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions