Skip to content

[program] Add cpi guard logic in confidential extensions#819

Merged
joncinque merged 1 commit intosolana-program:mainfrom
samkim-crypto:confidential-transfer-cpi
Nov 3, 2025
Merged

[program] Add cpi guard logic in confidential extensions#819
joncinque merged 1 commit intosolana-program:mainfrom
samkim-crypto:confidential-transfer-cpi

Conversation

@samkim-crypto
Copy link
Copy Markdown
Contributor

@samkim-crypto samkim-crypto commented Nov 3, 2025

Problem

The confidential transfer logic does not check for CPI guard. Although there is actually no way for another program to generate a ZKP to instigate a valid confidential transfer, it would be more complete to check and consistent to check for an active CPI guard in the confidential transfer logic as well.

Summary of Changes

Added CPI guard check on confidential transfers and confidential mints.

@samkim-crypto samkim-crypto force-pushed the confidential-transfer-cpi branch from 2cf53ae to ef44ec7 Compare November 3, 2025 07:42
@samkim-crypto samkim-crypto marked this pull request as ready for review November 3, 2025 10:37
@samkim-crypto
Copy link
Copy Markdown
Contributor Author

@joncinque I think the CI seems to pass, but there seems to be some hanging in the workflow. This should be a pretty simple PR, so it would be nice if you can double check 🙏

Copy link
Copy Markdown
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! We've been having issues with that cache for a while, I wonder if we should start disabling debug info on our test builds to reduce disk space usage... let me investigate

@joncinque joncinque merged commit da39e89 into solana-program:main Nov 3, 2025
69 of 71 checks passed
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.

2 participants