boost icon indicating copy to clipboard operation
boost copied to clipboard

Allow retrieving sealed sectors with boost-http

Open rjan90 opened this issue 1 year ago • 5 comments

This is part of the Enabling clients to unseal data enhancement: https://github.com/filecoin-project/lotus/issues/10355.

Clients can't trust that what the SP has sent is data that contains the CID, so we can enable them to retrieve the whole piece, or with the retrieval specify what offsets of the sealed file the client wants. From the Boost side there we can potentially be an extension of http retrieval that allows clients to pull out the sealed data from the SP.

rjan90 avatar Feb 27 '23 21:02 rjan90

@willscott , with the new deal inclusion work, would it be possible to pull just a requested CID still sealed based on ranges (rather than the whole sealed piece)? is unsealing faster then since it is a smaller amount of data?

LaurenSpiegel avatar Feb 27 '23 21:02 LaurenSpiegel

nope - doing partial unsealings at faster speed will take a change in the proof system, which is a larger effort that isn't part of the deal inclusion work

willscott avatar Feb 27 '23 22:02 willscott

nope - doing partial unsealings at faster speed will take a change in the proof system, which is a larger effort that isn't part of the deal inclusion work

forget the faster part -- can you at least pull out the smaller portion of data?

LaurenSpiegel avatar Feb 27 '23 22:02 LaurenSpiegel

@kubuxu is probably the authority here

willscott avatar Feb 27 '23 22:02 willscott

Per Kubuxu, can transfer a subset of sealed bytes and have that portion unsealed but the compute will be about the same as if you unsealed the whole sector. Unsealing 32 bytes is roughly 90% of the work of unsealing all bytes

https://filecoinproject.slack.com/archives/C042H9KUQLD/p1677540000317949

LaurenSpiegel avatar Feb 28 '23 03:02 LaurenSpiegel