Documentation ¶
Index ¶
- type Beacon
- type Oracle
- func (o *Oracle) Eligible(ctx context.Context, layer types.LayerID, round int32, committeeSize int, ...) (bool, error)
- func (o *Oracle) IsIdentityActiveOnConsensusView(ctx context.Context, edID string, layer types.LayerID) (bool, error)
- func (o *Oracle) Proof(ctx context.Context, layer types.LayerID, round int32) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beacon ¶ added in v0.1.11
Beacon provides the value that is under consensus as defined by the hare.
type Oracle ¶
Oracle is the hare eligibility oracle
func New ¶
func New(beacon valueProvider, activeSetFunc activeSetFunc, vrfVerifier verifierFunc, vrfSigner signer, layersPerEpoch uint16, genesisActiveSet int, goodBlocksProvider goodBlocksProvider, cfg eCfg.Config, log log.Log) *Oracle
New returns a new eligibility oracle instance.
func (*Oracle) Eligible ¶
func (o *Oracle) Eligible(ctx context.Context, layer types.LayerID, round int32, committeeSize int, id types.NodeID, sig []byte) (bool, error)
Eligible checks if ID is eligible on the given Layer where msg is the VRF message, sig is the role proof and assuming commSize as the expected committee size
func (*Oracle) IsIdentityActiveOnConsensusView ¶
func (o *Oracle) IsIdentityActiveOnConsensusView(ctx context.Context, edID string, layer types.LayerID) (bool, error)
IsIdentityActiveOnConsensusView returns true if the provided identity is active on the consensus view derived from the specified layer, false otherwise.
Click to show internal directories.
Click to hide internal directories.