Skip to content

Allow Backend to Submit Merkle Root of Reputations #10

@dDevAhmed

Description

@dDevAhmed

📚 Overview

Reputation scores are computed off-chain and must be periodically committed on-chain as a Merkle root to ensure integrity and auditability.


🎯 Objectives

  • Allow trusted backend to submit new reputation roots
  • Ensure roots are immutable once committed
  • Support epoch-based updates

🧠 Technical Scope

  • Add function: submitReputationRoot(bytes32 root, uint256 epoch)
  • Prevent duplicate epoch submissions
  • Validate caller authorization

✅ Acceptance Criteria

  • Backend can submit reputation root
  • Duplicate epoch updates rejected
  • Root stored correctly
  • Events emitted

⏳ Complexity & Effort

Complexity: Low
Estimated Effort: ~0.25–0.5 day


🏷️ Labels

  • contracts
  • oracle
  • reputation
  • drips-wave

Metadata

Metadata

Assignees

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