Skip to content

feat: add whitelist mode for subject attestation control#241

Merged
Haroldwonder merged 2 commits intoHaroldwonder:mainfrom
Mirabliss:feat/subject-whitelist
Mar 27, 2026
Merged

feat: add whitelist mode for subject attestation control#241
Haroldwonder merged 2 commits intoHaroldwonder:mainfrom
Mirabliss:feat/subject-whitelist

Conversation

@Mirabliss
Copy link
Copy Markdown
Contributor

Description
Some issuers need to restrict which subjects they can attest to (e.g., only pre-registered users).

Tasks
Add SubjectWhitelist(Address) storage key per issuer
Add add_to_whitelist(env, issuer, subject) function
Add remove_from_whitelist(env, issuer, subject) function
Add whitelist_enabled: bool per issuer config
Check whitelist in create_attestation if enabled
Add unit tests
Acceptance Criteria
Whitelist disabled by default
When enabled, non-whitelisted subjects are rejected
Issuer controls their own whitelist
Whitelist check happens before storage writes
closes #33

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@Mirabliss Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Haroldwonder Haroldwonder merged commit d74bfbe into Haroldwonder:main Mar 27, 2026
0 of 3 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.

Feature: Add whitelist mode (only specific subjects can receive attestations)

2 participants