You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit-Reveal Juror Voting to Prevent Vote Copying & Bribery #38
This issue aims to address the implementation of Commit-Reveal Juror Voting to Prevent Vote Copying & Bribery.
The core objective is to: Replace direct voting with a two-phase commit-reveal scheme so jurors cannot observe or copy others' votes before the reveal window closes.
By completing this feature, we will ensure that the TrustFlow protocol maintains its high standards for security, usability, and decentralized logic. This issue requires careful attention to the Smart Contracts architecture and adherence to the existing project conventions.
When picking up this issue, please ensure you document any new dependencies or architectural decisions made during development.
Verify soroban contract build successfully compiles to WASM without bloating size
Acceptance Criteria
Feature accurately implements the objective: Replace direct voting with a two-phase commit-reveal scheme so jurors cannot observe or copy others' votes before the reveal window closes.
Any PR that introduces Rust errors is automatically blocked
CI pipeline runs in under 3 minutes per PR
Code is properly reviewed and approved by codeowners
I would like to take on this issue.
Understanding
I understand the goal is to replace the current direct voting mechanism with a two-phase commit-reveal scheme so that jurors cannot see or copy other votes before the reveal window closes, thereby mitigating vote copying and bribery risks while preserving the protocol’s security and decentralization properties.
Approach
Review the existing Soroban architecture and voting-related contracts.
Design and implement a clean commit phase (hash of vote + salt) and reveal phase with proper timing windows and validation.
Emit clear events for both commit and reveal actions to support indexing.
Write comprehensive unit tests covering happy paths, edge cases (late reveals, invalid commits, double commits, etc.), and access control.
Ensure the contract builds cleanly to WASM, stays within size limits, and passes cargo fmt + cargo clippy.
I have solid experience with Rust smart contracts (including Soroban), commit-reveal patterns, and writing production-grade unit tests. I will document any new dependencies or architectural decisions in the PR.
Happy to start immediately and keep the PR focused and reviewable.
Looking forward to contributing.
Activity
Godbrand0 commentedon Jul 23, 2026
I would like to take on this issue.
Understanding
I understand the goal is to replace the current direct voting mechanism with a two-phase commit-reveal scheme so that jurors cannot see or copy other votes before the reveal window closes, thereby mitigating vote copying and bribery risks while preserving the protocol’s security and decentralization properties.
Approach
Review the existing Soroban architecture and voting-related contracts.
Design and implement a clean commit phase (hash of vote + salt) and reveal phase with proper timing windows and validation.
Emit clear events for both commit and reveal actions to support indexing.
Write comprehensive unit tests covering happy paths, edge cases (late reveals, invalid commits, double commits, etc.), and access control.
Ensure the contract builds cleanly to WASM, stays within size limits, and passes cargo fmt + cargo clippy.
I have solid experience with Rust smart contracts (including Soroban), commit-reveal patterns, and writing production-grade unit tests. I will document any new dependencies or architectural decisions in the PR.
Happy to start immediately and keep the PR focused and reviewable.
Looking forward to contributing.
grantfox-oss commentedon Jul 23, 2026
🦊 GrantFox — @Godbrand0 has been assigned to this issue as part of the Official Campaign | FWC26 campaign!
Next steps:
Closes #38)Good luck! Track your progress on GrantFox.
grantfox-oss commentedon Jul 23, 2026
🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign | FWC26 campaign!
@Godbrand0's PR #52 was approved and merged by @meshackyaro.
🏆 @Godbrand0: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (341 total points). Track your full progress on GrantFox.
👏 Great work, @Godbrand0! Keep contributing to trustflow-protocol.
feat(dispute): commit-reveal juror voting to prevent vote copying & b…