You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we are storing drand's randomness as our actual randomness, but this value is very easily predictable by just querying drand's API before we do.
Instead, a unique random value is needed. This will be a signature of drand's randomness. We can then use this signature as an unpredictable random value and verify that the signer signed it.
Todo:
Make the collator sign drand's randomness and store the resulting hash and the signer along the original randomness in the Pulse struct.
In the Verifier::verify method, verify that the signer signed it.
Update the documentation accordingly
The text was updated successfully, but these errors were encountered:
juangirini
changed the title
Use drand randomness as a seed
pallet_drand: Use drand randomness as a seed
Oct 31, 2024
@driemworks I guess we want this value to live along with the "drand" rand value to preserve the timelock encryption capabilities. But should we store it? or should we calculate this new value on distribution within the pallet_idn_manager?
The pros of calculating it on distribution is that the timeframe for frontrunning is reduced, cons is that it can only be done by an ocw
Currently, we are storing drand's randomness as our actual randomness, but this value is very easily predictable by just querying drand's API before we do.
Instead, a unique random value is needed. This will be a signature of drand's randomness. We can then use this signature as an unpredictable random value and verify that the signer signed it.
Todo:
Verifier::verify
method, verify that the signer signed it.The text was updated successfully, but these errors were encountered: