filecoin-project / rust-fil-proofs

Proofs for Filecoin in Rust
Other
492 stars 314 forks source link

Method to generate sector key #1666

Closed magik6k closed 1 year ago

magik6k commented 1 year ago

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)

magik6k commented 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

vmx commented 1 year ago

This is about getting the same bytes as TreeR, but without building TreeD or PC2. Only the layer building is needed.

vmx commented 1 year ago

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.