Skip to content

core: implement multi-sig admin for critical operations #15

@EmeditWeb

Description

@EmeditWeb

Problem

All 5 contracts have a single admin key. If the
deployer private key is compromised, the entire
protocol can be drained. Critical operations like
setting parameters and upgrading contracts have
no multi-signature protection.

What To Build

  1. Add multi-sig support to parameters-contract
  2. Implement proposal system for critical ops
  3. Apply to critical operations only

Files To Touch

  • contracts/parameters-contract/src/lib.rs
  • contracts/parameters-contract/src/types.rs
  • All contract upgrade() functions

Acceptance Criteria

  • Critical ops require 2-of-N signatures
  • Proposals expire after 7 days
  • Duplicate signatures rejected
  • Non-critical ops unaffected
  • Tests cover approval flow end to end

Mandatory Checks Before PR

  • cargo build passes
  • All tests pass
  • PR references this issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions