Versions in this module Expand all Collapse all v0 v0.2.1 Sep 24, 2025 Changes in this version type Config + GenesisTime int64 v0.2.0 Jan 8, 2025 Changes in this version + var ErrInvalidConfig = fmt.Errorf("invalid beacon configuration") + type Beacon interface + GetLatestRound func(ctx context.Context) (*Round, error) + GetRound func(ctx context.Context, round uint64) (*Round, error) + Start func(ctx context.Context, interval time.Duration) error + Stop func() error + Subscribe func() (<-chan *Round, error) + func NewBeacon(cfg Config) (Beacon, error) + type Config struct + ChainHash []byte + Period time.Duration + PublicKey []byte + URL string + type Round struct + Number uint64 + Randomness []byte + Signature []byte + Timestamp time.Time