Documentation ¶
Index ¶
- Variables
- func MockAggregateSealProof(proofType abi.RegisteredSealProof, minerAddr address.Address, count int) ([]byte, error)
- func MockCommR(minerAddr address.Address, sno abi.SectorNumber) cid.Cid
- func MockSealProof(proofType abi.RegisteredSealProof, minerAddr address.Address) ([]byte, error)
- func MockWindowPoStProof(proofType abi.RegisteredPoStProof, minerAddr address.Address) ([]byte, error)
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.
Click to show internal directories.
Click to hide internal directories.