2021-08-27 19:25:43 +00:00
|
|
|
//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)
|
|
|
|
}
|