Skip to content

rng#137

Open
HardhatChad wants to merge 6 commits intomasterfrom
hardhat/rng
Open

rng#137
HardhatChad wants to merge 6 commits intomasterfrom
hardhat/rng

Conversation

@HardhatChad
Copy link
Copy Markdown
Member

No description provided.

/// This method makes it significantly harder for a single leader to control the outcome by pigeonholing the outcome to 1 of 4 possible outcomes.
/// The available options are sampled by combing two hashes, selected 4 and 8 slots prior respectively.
/// Reasoning here being that no single validator is likely to be generate both hashes and the control hash, and thus the outcome of the round.
/// This rng solution does remove *all* possibility of manipulation, but does make it significantly harder, raises the bar for colusion, and limits the range of possible outcomes.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does not remove

)?;
system_program.is_program(&system_program::ID)?;

// Set fee collector.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Enable new rng method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants