Documentation ¶
Index ¶
- func CarWalkFunc(nd format.Node) (out []*format.Link, err error)
- func ComputeVRF(ctx context.Context, sign SignFunc, worker address.Address, sigInput []byte) ([]byte, error)
- func IsRoundWinner(ctx context.Context, ts *types.TipSet, round abi.ChainEpoch, ...) (*types.ElectionProof, error)
- func MinerCreateBlock(ctx context.Context, sm *stmgr.StateManager, w *wallet.Wallet, ...) (*types.FullBlock, error)
- func VerifyVRF(ctx context.Context, worker address.Address, vrfBase, vrfproof []byte) error
- type ChainGen
- func (cg *ChainGen) Banker() address.Address
- func (cg *ChainGen) ChainStore() *store.ChainStore
- func (cg *ChainGen) Genesis() *types.BlockHeader
- func (cg *ChainGen) GenesisCar() ([]byte, error)
- func (cg *ChainGen) NextTipSet() (*MinedTipSet, error)
- func (cg *ChainGen) NextTipSetFromMiners(base *types.TipSet, miners []address.Address) (*MinedTipSet, error)
- func (cg *ChainGen) ResyncBankerNonce(ts *types.TipSet) error
- func (cg *ChainGen) SetStateManager(sm *stmgr.StateManager)
- func (cg *ChainGen) Wallet() *wallet.Wallet
- func (cg *ChainGen) YieldRepo() (repo.Repo, error)
- type MinedTipSet
- type MiningCheckAPI
- type ProofInput
- type SignFunc
- type WinningPoStProver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeVRF ¶
func IsRoundWinner ¶
func IsRoundWinner(ctx context.Context, ts *types.TipSet, round abi.ChainEpoch, miner address.Address, brand types.BeaconEntry, mbi *api.MiningBaseInfo, a MiningCheckAPI) (*types.ElectionProof, error)
func MinerCreateBlock ¶
Types ¶
type ChainGen ¶
type ChainGen struct { CurTipset *store.FullTipSet Timestamper func(*types.TipSet, abi.ChainEpoch) uint64 GetMessages func(*ChainGen) ([]*types.SignedMessage, error) Miners []address.Address // contains filtered or unexported fields }
func NewGenerator ¶
func NewGeneratorWithSectors ¶ added in v0.3.0
func (*ChainGen) ChainStore ¶ added in v0.2.8
func (cg *ChainGen) ChainStore() *store.ChainStore
func (*ChainGen) Genesis ¶
func (cg *ChainGen) Genesis() *types.BlockHeader
func (*ChainGen) GenesisCar ¶
func (*ChainGen) NextTipSet ¶
func (cg *ChainGen) NextTipSet() (*MinedTipSet, error)
func (*ChainGen) NextTipSetFromMiners ¶
func (cg *ChainGen) NextTipSetFromMiners(base *types.TipSet, miners []address.Address) (*MinedTipSet, error)
func (*ChainGen) ResyncBankerNonce ¶
This function is awkward. It's used to deal with messages made when simulating forks
func (*ChainGen) SetStateManager ¶ added in v0.2.8
func (cg *ChainGen) SetStateManager(sm *stmgr.StateManager)
type MinedTipSet ¶
type MinedTipSet struct { TipSet *store.FullTipSet Messages []*types.SignedMessage }
type MiningCheckAPI ¶
type MiningCheckAPI interface { ChainGetRandomness(ctx context.Context, tsk types.TipSetKey, personalization crypto.DomainSeparationTag, randEpoch abi.ChainEpoch, entropy []byte) (abi.Randomness, error) MinerGetBaseInfo(context.Context, address.Address, abi.ChainEpoch, types.TipSetKey) (*api.MiningBaseInfo, error) WalletSign(context.Context, address.Address, []byte) (*crypto.Signature, error) }
type ProofInput ¶
type ProofInput struct {
// contains filtered or unexported fields
}
type WinningPoStProver ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.