Skip to content

Fix/wallet discriminator check#29

Merged
onspeedhp merged 2 commits into
mainfrom
fix/wallet-discriminator-check
Feb 6, 2026
Merged

Fix/wallet discriminator check#29
onspeedhp merged 2 commits into
mainfrom
fix/wallet-discriminator-check

Conversation

@onspeedhp
Copy link
Copy Markdown
Member

No description provided.

- validate wallet discriminator (must be 1) in create_session.rs
- validate wallet discriminator in manage_authority.rs (add/remove)
- validate wallet discriminator in execute.rs
- validate wallet discriminator in transfer_ownership.rs
- Add new test case in failures.rs that attempts to use an Authority PDA (valid owner, wrong discriminator) as a Wallet PDA
- Verify that the transaction is rejected with InvalidAccountData
@onspeedhp onspeedhp merged commit c57edcc into main Feb 6, 2026
2 checks passed
@onspeedhp onspeedhp deleted the fix/wallet-discriminator-check branch February 9, 2026 09:11
onspeedhp added a commit that referenced this pull request Apr 7, 2026
onspeedhp added a commit that referenced this pull request Apr 7, 2026
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