Open testinginprod opened 1 year ago
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.
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 is this closable?
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.