mock

package
v1.28.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verifier storiface.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

MockCommR 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