Hey valuable community member,
I am currently on a randomness pallet which can be used as a production counterpart to the insecure randomness-collective-flip pallet.
This is my current version:
I wonder why this kind of pallet was not already written. Seems like other than Moonbeam nobody needed production randomness yet. But we at ZeitgeistPM do now for our random juror selection in a court.
Can you give examples and hints how to implement a secure and reliable version of this pallet?
Currently it is integrated in the following way:
impl cumulus_pallet_parachain_system::Config for Runtime {
...
type OnSystemEvent = zrml_relay_randomness::CustomSystemEventHandler<Runtime>;
...
}
impl zrml_relay_randomness::Config for Runtime {
type SelfParaId = parachain_info::Pallet<Runtime>;
}