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

spec for speudorandom generation #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

spec for speudorandom generation #51

wants to merge 1 commit into from

Conversation

amiller
Copy link

@amiller amiller commented Oct 31, 2023

@Ruteri
Copy link
Collaborator

Ruteri commented Oct 31, 2023

I'm not sure if we need to make the random bytes specific to a contract, since we can actually generate random bytes for all confidential computation.
What's the use case for calling this precompile during chain transition?

@amiller
Copy link
Author

amiller commented Oct 31, 2023

This doesn't need to be called during a chain transition, I think it's OK to be called offline only. But the point is every off-chain computation will arrive at the same result.

An example use case is to generate a public key or address associated with the contract. So you can send encrypted messages to that contract where any execution node can access it, and the contract can also own an account on Eth L1 for example

@amiller amiller changed the title spec for speudorandom genreation spec for speudorandom generation Oct 31, 2023
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