Skip to content

feat: Dispute Evidence Storage Backend (Issue #125)#1

Open
FaithOnuh wants to merge 1 commit into
mainfrom
feature/issue-125-dispute-evidence-storage
Open

feat: Dispute Evidence Storage Backend (Issue #125)#1
FaithOnuh wants to merge 1 commit into
mainfrom
feature/issue-125-dispute-evidence-storage

Conversation

@FaithOnuh
Copy link
Copy Markdown
Owner

Summary of Changes

  • Added migration 20260330000000_dispute_evidence.sql: dispute_evidence table + evidence_download_tokens table
  • New dispute_evidence_handlers.rs with:
    • POST /disputes/:id/evidence — multipart upload with participant/arbitrator access control
    • GET /disputes/:id/evidence — list evidence (participants only)
    • GET /disputes/:id/evidence/:eid/download-url — issues 15-min signed download token
    • GET /evidence/download/:token — redeems token and streams file
  • File size/MIME validation delegated to existing StorageService
  • DB helpers: check_dispute_participant, insert/list/get_dispute_evidence, create/consume_evidence_download_token

Closes Stellar-xcrow#125

- Add migration: dispute_evidence table + evidence_download_tokens table
- POST /disputes/:id/evidence — multipart upload with participant/arbitrator access control
- GET  /disputes/:id/evidence — list evidence (participants only)
- GET  /disputes/:id/evidence/:eid/download-url — issue 15-min signed token
- GET  /evidence/download/:token — redeem token and stream file
- File validation (size/MIME) delegated to existing StorageService
- DB helpers: check_dispute_participant, insert/list/get_dispute_evidence,
  create/consume_evidence_download_token

Closes Stellar-xcrow#125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant