lotus/storage/sealer/ffiwrapper/prover_cgo.go

20 lines
437 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"
2021-05-19 13:20:23 +00:00
)
var ProofProver = proofProver{}
var _ Prover = ProofProver
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)
}