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

[token-cli] Reduce number of transactions for confidential transfer withdraw #5685

Open
samkim-crypto opened this issue Oct 27, 2023 · 0 comments

Comments

@samkim-crypto
Copy link
Contributor

Problem

The withdraw-confidential-tokens command is currently executed in a sequence of 4 transactions:

  1. system instruction to create the proof context account
  2. verify and store the proof context account
  3. execute the withdraw
  4. close the proof context account

Due to the transaction size limit, steps 1 and 2 must be independent transactions. However, steps 3 and 4 can still be executed in a single transaction.

Proposed solution

Update the token-client to merge the instructions in steps 3 and 4. This change should also be applied for other instructions that uses proof context such as ConfigureAccount.

buffalojoec added a commit that referenced this issue Nov 14, 2023
This PR adds support for the `AccountData` seed from the
`spl-tlv-account-resolution` library and Token2022.

This addresses point number 2 in #5685.
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