Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat(backend): Python gateway client that fetches by CID and verifies content

Aperta
#73 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
57/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start by reading dependency issue #59 and locating the Python content layer and its pytest setup; the payload does not name specific files. Implement a gateway read client that fetches /ipfs/<cid> with timeouts and size limits, recomputes raw or JSON CIDs, and raises distinct unavailable and mismatch errors. Add mocked response tests for matching and tampered content, plus an outage test; done means valid bytes are returned and each failure has the specified error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement kubo storage tier-2

Summary

A read-side client so the coordinator and workers can fetch content (for example a circuit by CID) over HTTP and check the hash.

Estimated size: S

Motivation

The cheapest bridge between the Python compute plane and IPFS, with no libp2p interop needed.

Proposal

  • Fetch /ipfs/<cid> from the configured gateway with timeouts and size limits.
  • Recompute the CID of the received bytes (raw and JSON codecs first) and reject mismatches.
  • Typed errors: unavailable vs mismatch.

Acceptance criteria

  • A matching fetch returns bytes; a tampered response raises a mismatch error.
  • Gateway outage raises unavailable, not mismatch.

Out of scope

  • Writing content (see the Kubo RPC client).

Dependencies

  • #59

Testing plan

  • pytest with mocked gateway responses including tampered bytes.

Part of #43. Ground rules for the content layer: no secrets in the repo, content-layer failures must never block or discard quantum execution, and tests and docs ship with every PR.

Lingua principale
Python
Stelle
2
Fork
4
Merge medio
6h 54m
PR unite (30g)
7

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di QMeshPy/distributed-quantum

Tutte le issue di QMeshPy/distributed-quantum

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.