Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDistributedPubKeyMismatch = errors.New("Distributed Public Key does not match") ErrInvalidRound = errors.New("Invalid Round") ErrInstanceIdMismatch = errors.New("InstanceID does not match") ErrInvalidIssuer = errors.New("Invalid Issuer") ErrNilState = errors.New("Nil state") ErrNilData = errors.New("Nil data") )
Functions ¶
func ExtractRandomness ¶
ExtractRandomness returns the randomness from a given signature.
func ProcessBeacon ¶
func ProcessBeacon(drng *state.State, cb *events.CollectiveBeaconEvent) error
ProcessBeacon performs the following tasks: - verify that we have a valid random - update drng state
func VerifyCollectiveBeacon ¶
func VerifyCollectiveBeacon(state *state.State, data *events.CollectiveBeaconEvent) error
VerifyCollectiveBeacon verifies against a given state that the given CollectiveBeaconEvent contains a valid beacon.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.