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

GET `/slice/:blake3_hash/:slice_index/:slice_range` HTTP route

Aperta
#18 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@rustchain64 ci sta già lavorando.

Dal 7/3/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

This allows storage clients to request a minimal subset of storage data.

This can optimize by the fact that slices are always 1KB, and segments are always 1MB, so only the specific segments needed will be verifiable.

Use this method for retrieving the slice: https://docs.rs/carbonado/latest/carbonado/fn.extract_slice.html

For now, let's only support a slice range of 1, since extract_slice only returns 1KB at a time.

The test for this should then take this slice data and run it through this method:
https://docs.rs/carbonado/latest/carbonado/fn.verify_slice.html

It will need to verify against the bao hash, not the blake hash, which corresponds to the segment. So, the catalog file will first be needed, which can be parsed using read_catalog, and then the bao hash corresponding to the slice index can be found.

Except for the last file, there should be 1024 slices to a segment, divide by 1024, the result should be the segment, and the remainder is the index within that segment.

The error for requesting a slice range other than one also will need to be handled.

Lingua principale
Rust
Stelle
3
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 bitmask-stack/carbonado-node

Tutte le issue di bitmask-stack/carbonado-node

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.