suave-specs icon indicating copy to clipboard operation
suave-specs copied to clipboard

spec for speudorandom generation

Open amiller opened this issue 2 years ago • 2 comments

inspiration: https://docs.oasis.io/dapp/sapphire/precompiles/#generating-pseudo-random-bytes

amiller avatar Oct 31 '23 14:10 amiller

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?

Ruteri avatar Oct 31 '23 14:10 Ruteri

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 avatar Oct 31 '23 14:10 amiller