cosmos-sdk icon indicating copy to clipboard operation
cosmos-sdk copied to clipboard

feat(accounts): Decide on address creation scheme

Open testinginprod opened this issue 1 year ago • 2 comments

We need to decide an address creation scheme for accounts created using x/accounts.

Currently the address package (not core.address) cannot be imported by x/accounts or it would leak the sdk dependency.

testinginprod avatar Aug 23 '23 18:08 testinginprod

It should use the address package. If there is a dependency graph problem , then we can copy a function or move address to some other module.

robert-zaremba avatar Aug 30 '23 19:08 robert-zaremba

yes, I think we'll want the address scheme to be: address.Module("accounts", append(creator_address, BigEndian(accNum)), this should avoid the risk of someone, besides the creator, front-running the account creation, since the adversary will not be able to produce the same address.

testinginprod avatar Feb 06 '24 10:02 testinginprod

@testinginprod is this closable?

tac0turtle avatar Jun 03 '24 08:06 tac0turtle