GET `/slice/:blake3_hash/:slice_index/:slice_range` HTTP route
@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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bitmask-stack/carbonado-node
-
Production Node EpicAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
-
Refactor RoutesForse di nuovo libera @cryptoquick l’ha presa 1241 giorni fa e non c’è nessuna pull request aperta. Aperta
bitmask-stack/carbonado-node#49 · 1 assegnatario ·
-
LDK integrationAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
File expirationAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Versioned catalogsForse di nuovo libera @rustchain64 l’ha presa 1046 giorni fa e non c’è nessuna pull request aperta. Aperta
bitmask-stack/carbonado-node#46 · 1 assegnatario ·
Tutte le issue di bitmask-stack/carbonado-node
Issue simili
-
area/infra good first issue type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
cristim/AztecCraft#92 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
charles-hood/DiagramCraft#51 ·
-
S: Untriaged T: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
libnyanpasu/clash-nyanpasu#5788 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
area:cli bug good first issue priority:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rtk-ai/rtk#4589 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno