lotus/storage/sealer/ffiwrapper/prover_cgo.go

21 lines
509 B
Go
Raw Normal View History

//go:build cgo
// +build cgo
2021-05-19 13:20:23 +00:00
package ffiwrapper
import (
ffi "github.com/filecoin-project/filecoin-ffi"
2022-04-20 21:34:28 +00:00
"github.com/filecoin-project/go-state-types/proof"
2022-06-17 11:52:19 +00:00
"github.com/filecoin-project/lotus/storage/sealer/storiface"
2021-05-19 13:20:23 +00:00
)
var ProofProver = proofProver{}
2022-06-17 11:52:19 +00:00
var _ storiface.Prover = ProofProver
2021-05-19 13:20:23 +00:00
type proofProver struct{}
2022-04-20 21:34:28 +00:00
func (v proofProver) AggregateSealProofs(aggregateInfo proof.AggregateSealVerifyProofAndInfos, proofs [][]byte) ([]byte, error) {
2021-05-19 13:20:23 +00:00
return ffi.AggregateSealProofs(aggregateInfo, proofs)
}