mock

package
v1.16.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2022 License: Apache-2.0, MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verifier ffiwrapper.Verifier = mockVerifier{}

Functions

func MockAggregateSealProof

func MockAggregateSealProof(proofType abi.RegisteredSealProof, minerAddr address.Address, count int) ([]byte, error)

MockAggregateSealProof generates a mock "seal" aggregate proof tied to the specified proof type, the given miner, and the number of proven sectors.

func MockCommR

func MockCommR(minerAddr address.Address, sno abi.SectorNumber) cid.Cid

makeCommR generates a "fake" but valid CommR for a sector. It is unique for the given sector/miner.

func MockSealProof

func MockSealProof(proofType abi.RegisteredSealProof, minerAddr address.Address) ([]byte, error)

MockSealProof generates a mock "seal" proof tied to the specified proof type and the given miner.

func MockWindowPoStProof

func MockWindowPoStProof(proofType abi.RegisteredPoStProof, minerAddr address.Address) ([]byte, error)

MockWindowPoStProof generates a mock "window post" proof tied to the specified proof type, and the given miner.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL