Skip to content

Identity Registry Key Rotation #39

@Bosun-Josh121

Description

@Bosun-Josh121

Target Contract: identity-registry-contract
Labels: phase-2-registry, security

Description: Allow transferring Admin rights to a new wallet or DAO multisig.

Tasks:

  • src/contract.rs: Implement transfer_admin(env, new_admin). Require current admin auth. Overwrite DataKey::Admin.
  • src/lib.rs: Expose pub fn transfer_admin(env: Env, new_admin: Address) -> Result<(), RegistryError> in #[contractimpl].
  • src/events.rs: Emit admin_transferred.
  • src/test.rs: Transfer admin from A to B. A trying to call verify_expert fails.

Acceptance Criteria:

  • SuperAdmin privileges can be safely migrated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions