-
Notifications
You must be signed in to change notification settings - Fork 992
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
Add more randomness to address generator #7
Comments
Does this need to be secure randomness? Can it be local randomness? What is the usage of these addresses? |
I think it can be e.g. from a block hash - it's for addresses created in transactions with |
Now in |
@tzemanovic @juped What is the purpose of the address? Is there no private key that should define the address deterministically? |
Established addresses are not derived from keys. They must be created with a tx and deterministically derived from on-chain nonce, but they should not be predictable. Unlike implicit addr, you can choose a VP for it, so e.g. tokens are established addresses. |
Is the issue related to (or subsumed by) #6? |
it's related but each is for a different purpose |
Interesting |
In
apps/src/bin/anoma-node/vm/host_env/write_log.rs
, when we generate a new address, we should give it some unpredictable value as an additional source of randomnessOriginally posted by tzemanovic in anoma/anoma#175 (comment)
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: