-
Notifications
You must be signed in to change notification settings - Fork 308
feat(entropy): Minor items to prep for testnet deployments #2673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| assertTrue( | ||
| random.getProviderInfoV2(provider1).defaultGasLimit == 0 || | ||
| (callbackGasUsed < (callbackGasUsage * 110) / 100) | ||
| assertRevealedEvent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extracted the test out to a method. the factoring could be a bit odd because i'm working around the solidity "stack too deep" error
| // 3. A and B reveal x_{A,B} | ||
| // 4. Both parties verify that hash(x_{A, B}) == h_{A,B} | ||
| // 5. The random number r = hash(x_A, x_B) | ||
| // 1. Two parties A and B each randomly sample a contribution x_{A,B} to the random number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update the docs as well to make this consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah will do
Summary
Three minor changes:
How has this been tested?