storage: Support C1 directly from sector storage

This commit is contained in:
Łukasz Magiera
2024-01-11 16:46:47 +01:00
parent d9e903fa82
commit fe7558368a
4 changed files with 133 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package paths
import (
"context"
"github.com/ipfs/go-cid"
"io"
"github.com/filecoin-project/go-state-types/abi"
@ -48,4 +49,5 @@ type Store interface {
Reserve(ctx context.Context, sid storiface.SectorRef, ft storiface.SectorFileType, storageIDs storiface.SectorPaths, overheadTab map[storiface.SectorFileType]int) (func(), error)
GenerateSingleVanillaProof(ctx context.Context, minerID abi.ActorID, si storiface.PostSectorChallenge, ppt abi.RegisteredPoStProof) ([]byte, error)
GenetartePoRepVanillaProof(ctx context.Context, sr storiface.SectorRef, sealed, unsealed cid.Cid, ticket abi.SealRandomness, seed abi.InteractiveSealRandomness) ([]byte, error)
}