Skip to content

feat: confidential transfers helper functions#1096

Open
catmcgee wants to merge 3 commits intosolana-program:mainfrom
catmcgee:main
Open

feat: confidential transfers helper functions#1096
catmcgee wants to merge 3 commits intosolana-program:mainfrom
catmcgee:main

Conversation

@catmcgee
Copy link
Copy Markdown

@catmcgee catmcgee commented Apr 10, 2026

Adds helper functions for

  • creating conf balance accounts (getCreateConfidentialTransferAccountInstructions, returns array of 4 instructions
  • applying a pending balance (getApplyConfidentialPendingBalanceInstructionFromToken)
  • doing a conf transfer (getConfidentialTransferInstructions, returns instruction plan, proofs too large for one tx)
  • withdrawing confidential (getConfidentialWithdrawInstructions, similar to above)

FYI this manually constructs proof program instructions instead of using the WASM clients. zk-elgamal-proof isn't published to npm yet and doesn't have build artifacts in git

@catmcgee catmcgee marked this pull request as ready for review April 10, 2026 10:40
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

Successfully merging this pull request may close these issues.

1 participant