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

Parallel decryptions: use tx hash instead of block hash in auto-seeding #152

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

toml01
Copy link
Contributor

@toml01 toml01 commented Sep 19, 2024

By doing this, you get deterministic random numbers for a given TX.
This should be ok from a security standpoint, as long as you make sure that the sender is a EOA and can't revert the TX based on it's outcome.

@toml01 toml01 changed the base branch from pd-parallel-rand-fixes to parallel-decrypts September 19, 2024 16:05
@toml01 toml01 changed the title Use tx hash instead of block hash in auto-seeding Parallel decryptions: use tx hash instead of block hash in auto-seeding Sep 19, 2024
Copy link
Contributor

@eshelB eshelB left a comment

Choose a reason for hiding this comment

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

Cool
probably we can remove LastSavedHash from fheos state.
and we can also restore the old random sanity tests so that we can see that devs can indeed decrypt a random in the same tx it was created

@toml01 toml01 merged commit 0001764 into parallel-decrypts Sep 23, 2024
4 checks passed
@toml01 toml01 deleted the rand-ct-deterministic-hash branch September 23, 2024 12:54
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