package
0.2501.0
Repository: https://github.com/oasisprotocol/oasis-core.git
Documentation: pkg.go.dev

# Functions

NewClient creates a new gRPC beacon client.
RegisterService registers a new beacon service with the given gRPC server.

# Constants

BackendInsecure is the name of the insecure backend.
BackendVRF is the name of the VRF backend.
BeaconSize is the size of the beacon in bytes.
~50 quadrillion years away.
EpochMax is the end of time.
GasOpVRFProve is the gas operation identifier for VRF proof submission.
ModuleName is a unique module name for the beacon module.

# Variables

DefaultVRFGasCosts are the default gas costs for VRF operations.
ErrBeaconNotAvailable is the error returned when a beacon is not available for the requested height for any reason.
ErrInvalidArgument is the error returned on malformed argument(s).
MethodVRFProve is the method name for a VRF proof.

# Structs

BeaconEvent is the beacon event.
Client is a gRPC beacon client.
ConsensusParameters are the beacon consensus parameters.
EpochEvent is the epoch event.
EpochTimeState is the epoch state.
Genesis is the genesis state.
InsecureParameters are the beacon parameters for the insecure backend.
PrevVRFState is the previous epoch's VRF state that is to be used for elections.
VRFEvent is a VRF backend event.
VRFParameters are the beacon parameters for the VRF backend.
VRFProve is a VRF proof transaction payload.
VRFState is the VRF backend state.

# Interfaces

Backend is a random beacon/time keeping implementation.
SetableBackend is a Backend that supports setting the current epoch.
VRFBackend is a Backend that is backed by VRFs.

# Type aliases

EpochTime is the number of intervals (epochs) since a fixed instant in time/block height (epoch date/height).