Closed magik6k closed 1 year ago
This is needed to enable https://github.com/filecoin-project/lotus/issues/10316, and also to properly fix snapdeals unsealing in lotus
This is about getting the same bytes as TreeR, but without building TreeD or PC2. Only the layer building is needed.
There is now an API to run SDR only. It's exposed in the FFI at https://github.com/filecoin-project/filecoin-ffi/pull/402.
There seems to be no good way to generate a sector key today - which is needed for snapdeals unsealing, and possibly for future unsealing service-type things.
One could call Precommit1 and Precommit2 with null bytes (PC1 alone doesn't generate the sector key - https://github.com/filecoin-project/rust-fil-proofs/issues/1665)