Skip to content

Add schema deactivation by original issuer #25

Description

@michaelvic123

Description

Schemas cannot be deactivated once registered. If an issuer retires a credential type, they should mark the schema inactive to prevent new credentials being issued under it.

Tasks

  • Add deactivate_schema(env, issuer, schema_id)
  • Validate: caller is original schema owner
  • Set schema.active = false
  • Emit schema_deactivated event
  • Verify issue_credential rejects inactive schemas
  • Add test: deactivate then issue — should panic

Acceptance Criteria

  • Non-owner cannot deactivate
  • Issuing against inactive schema panics
  • Existing credentials remain valid after deactivation

Complexity: Medium (150 pts)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions