Type Definition pallet_babe::pallet::Randomness

source ·
pub type Randomness<T> = StorageValue<_GeneratedPrefixForStorageRandomness<T>, BabeRandomness, ValueQuery>;
Expand description

The epoch randomness for the current epoch.

Security

This MUST NOT be used for gambling, as it can be influenced by a malicious validator in the short term. It MAY be used in many cryptographic protocols, however, so long as one remembers that this (like everything else on-chain) it is public. For example, it can be used where a number is needed that cannot have been chosen by an adversary, for purposes such as public-coin zero-knowledge proofs.

Storage type is StorageValue with value type BabeRandomness.