Skip to content

feat: implement multi-admin and multisig support for governance #329

@greatest0fallt1me

Description

@greatest0fallt1me

Description:

Support multiple admin addresses and optional threshold (multisig) so that sensitive operations require M-of-N admin signatures.

Requirements and Context:

  • Must be secure, tested, and documented
  • Should allow adding/removing admins (by existing admin or current multisig)
  • Should allow setting threshold (e.g., 2 of 3) for admin actions
  • Should require threshold to be met for pause, fee withdrawal, upgrade, etc.
  • Should emit events for admin and threshold changes
  • Must not break single-admin deployment (1 admin, threshold 1)
  • Should document multisig flow and Soroban auth patterns

Suggested Execution:

  1. Fork the repo and create a branch

    git checkout -b feature/multi-admin-multisig
  2. Implement changes

    • Write contract: admin set, threshold, and auth checks in admin functions
    • Add admin module: src/admin.rs (multi-admin and threshold logic)
    • Update storage and events; add documentation and NatSpec-style comments
  3. Test and commit

    • Run tests; cover single admin, multi-admin, threshold enforcement
    • Include test output and security notes

Example Commit Message:

feat: implement multi-admin and multisig support for governance

Guidelines:

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions