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"
|
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)
|
|
|
|
}
|