Drand

#26

Distributed randomness beacon integration

Part of Consensus & Finality: Block production, finality, and chain security

Filter by:
BeaconConfig storage v216 → v393

The Drand beacon configuration used for verifying randomness pulses.

Modified by: set_beacon_config
ValidationRandomness
BeaconConfigChanged event v216 → v393 #0

Emitted when the Drand beacon configuration has been updated.

Emitted by: set_beacon_config Modifies: BeaconConfig
AdminRandomness
DrandConnectionFailure error v216 → v393 #2

The offchain worker failed to connect to the Drand beacon API.

HasMigrationRun storage v301 → v393

Tracks whether specific migrations have been executed.

Admin
HttpFetchTimeout constant v216 → v393

Maximum milliseconds to wait for HTTP requests to the Drand beacon.

InvalidRoundNumber error v216 → v393 #4

The pulse round number is invalid or out of expected sequence.

Thrown by: write_pulse
LastStoredRound storage v216 → v393

The most recent Drand round number stored on-chain.

Modified by: write_pulse
ValidationRandomness
NewPulse event v216 → v393 #1

Emitted when a new randomness pulse has been successfully verified and stored.

Emitted by: write_pulse Modifies: LastStoredRound, NextUnsignedAt +1
●●●●○○ Significant usage
ValidationRandomness
NextUnsignedAt storage v216 → v393

The block number when the next unsigned pulse transaction will be accepted.

Modified by: write_pulse
ValidationRandomness
NoneValue error v216 → v393 #0

A required value was not found in storage when expected.

Thrown by: write_pulse, set_beacon_config +1
OldestStoredRound storage v301 → v393

The oldest Drand round number retained in storage.

Modified by: set_oldest_stored_round
ValidationRandomness
Pulses storage v216 → v393

Verified randomness pulses from the Drand beacon, keyed by round number.

Modified by: write_pulse
●●●●●○ High usage
ValidationRandomness
PulseVerificationError error v216 → v393 #5

An error occurred during the pulse verification process.

Thrown by: write_pulse
set_beacon_config call v216 → v393 #1

Updates the Drand beacon configuration used for pulse verification.

Emits: BeaconConfigChanged Modifies: BeaconConfig
AdminRandomness
set_oldest_stored_round call v301 → v393 #2

Sets the oldest round number that the chain will retain in storage.

Emits: SetOldestStoredRound Modifies: OldestStoredRound
AdminRandomness
SetOldestStoredRound event v301 → v393 #2

Emitted when the oldest stored round boundary has been updated.

Emitted by: set_oldest_stored_round Modifies: OldestStoredRound
AdminRandomness
StorageOverflow error v216 → v393 #1

An internal counter would exceed its maximum value (u32::MAX).

UnsignedPriority constant v216 → v393

Base priority for unsigned Drand pulse transactions in the transaction pool.

UnverifiedPulse error v216 → v393 #3

The submitted Drand pulse failed cryptographic verification.

Thrown by: write_pulse
write_pulse call v216 → v393 #0

Submits and verifies a Drand randomness pulse to be stored on-chain.

Emits: NewPulse Modifies: Pulses, LastStoredRound +1
●●●●●○ Core usage
ValidationRandomness

Related Pallets