Skip to content

Implement kill switch cooldown and re-enable safety checks #333

@Baskarayelu

Description

@Baskarayelu

Description

Add cooldown and controlled re-enable checks to avoid rapid toggle abuse during emergency response.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Define minimum cooldown and reactivation prerequisites

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/emergency-killswitch-cooldown-safety
  • Implement changes
  • Write contract: emergency_killswitch/src/lib.rs
  • Write comprehensive tests: emergency_killswitch/tests/test_killswitch.rs
  • Add documentation: THREAT_MODEL.md
  • Include NatSpec-style comments
  • Validate security assumptions

Test and commit

  • Run tests: cargo test -p emergency_killswitch
  • Cover edge cases
  • Include test output and security notes

Example commit message

feat: add cooldown and re-enable safety checks to kill switch

Guidelines

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea:emergency-killswitchRemitWise contracts labelcontractsRemitWise contracts labelemergencyRemitWise contracts labelpriority:mediumRemitWise contracts labelsecurityRemitWise contracts labeltype:featureRemitWise contracts label

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions