Skip to content
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

Lottery seed must not be previous block hash #2

Open
LWEdslev opened this issue May 27, 2024 · 0 comments
Open

Lottery seed must not be previous block hash #2

LWEdslev opened this issue May 27, 2024 · 0 comments
Labels
bug Something isn't working security

Comments

@LWEdslev
Copy link
Owner

This makes it possible for an adversary to alter a block to give themself a better chance of winning during the next timeslot by removing/adding transactions until they have a higher chance.
A better solution is to use the hash of the previous draw, since this cannot be altered without invalidating the reward.
Even better, we use a hash of a draw which is very far back, otherwise it would be advantageous to try staking every block close to the best depth.

@LWEdslev LWEdslev added bug Something isn't working security labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working security
Projects
None yet
Development

No branches or pull requests

1 participant