anoma / namada

Rust implementation of Namada, a Proof-of-Stake L1 for interchain asset-agnostic privacy
https://namada.net
GNU General Public License v3.0
2.4k stars 955 forks source link

Rework address derivation to avoid order dependency #2194

Closed cwgoes closed 2 months ago

cwgoes commented 12 months ago

As far as I can tell, our use of a PRNG for address derivation was not driven by specific cryptographic security concerns. If the primary aim is simply to avoid address collisions, I think we can allow the user to include their own nonce in the account creation transaction (used as part of the preimage for address derivation). This will also allow for collision prevention in the case of duplicate account data, and avoids order dependency (so users can calculate addresses deterministically, which is very convenient).

cwgoes commented 2 months ago

No longer applicable.