Description
Build reveal preconditions so only active committed games can be revealed with valid commitment material.
Motivation
This functionality is a required building block for the Tossd game flow. Without it, dependent features cannot be built or tested correctly.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
- Primary files:
Tossd-contract/src/lib.rs
Proposed Solution
Complete the following in a focused PR off feature/reveal-validation:
- Implement
reveal guard clauses
- Verify current phase and active game presence
- Document reveal preconditions
Technical Implementation
Files to modify:
coinflip-contract/src/lib.rs
Implementation steps:
- Implement
reveal guard clauses
- Verify current phase and active game presence
- Document reveal preconditions
Branch: feature/reveal-validation
Example commit message
feat: implement reveal validation and phase checks
Acceptance Criteria
Guidelines
- Assignment required before starting
- PR description must include:
Closes #116
Description
Build reveal preconditions so only active committed games can be revealed with valid commitment material.
Motivation
This functionality is a required building block for the Tossd game flow. Without it, dependent features cannot be built or tested correctly.
Requirements and context
Tossd-contract/src/lib.rsProposed Solution
Complete the following in a focused PR off
feature/reveal-validation:revealguard clausesTechnical Implementation
Files to modify:
coinflip-contract/src/lib.rsImplementation steps:
revealguard clausesBranch:
feature/reveal-validationExample commit message
Acceptance Criteria
Guidelines
Closes #116