implement sector commitments and proof verification

This commit is contained in:
whyrusleeping
2019-08-06 23:35:57 -07:00
parent e43ee3cdb9
commit b7c6333fef
12 changed files with 379 additions and 30 deletions
+9
View File
@@ -46,6 +46,12 @@ type BlockMessages struct {
SecpkMessages []*types.SignedMessage
}
type SectorInfo struct {
SectorID uint64
CommD []byte
CommR []byte
}
type Common interface {
// Auth
AuthVerify(ctx context.Context, token string) ([]string, error)
@@ -117,6 +123,9 @@ type FullNode interface {
ClientListImports(ctx context.Context) ([]Import, error)
//ClientListAsks() []Ask
StateMinerSectors(context.Context, address.Address) ([]*SectorInfo, error)
StateMinerProvingSet(context.Context, address.Address) ([]*SectorInfo, error)
}
// Full API is a low-level interface to the Filecoin network storage miner node