mina icon indicating copy to clipboard operation
mina copied to clipboard

A method to delete accounts

Open wu-s-john opened this issue 7 years ago • 5 comments

We need a way to remove accounts so that an attacker does not flood the database with stale accounts. Previously, we removed accounts if their balance is assigned to zero. However, this is not convenient for the user.

wu-s-john avatar Sep 06 '18 19:09 wu-s-john

It's not that it's just inconvenient for the user, the way we were doing it was unsafe and potentially made replaying transactions possible. We will have to think through more deeply a safe way of accomplishing it.

imeckler avatar Sep 17 '18 22:09 imeckler

@imeckler I think we discussed some sort of "replacement" transaction that, if an account has zero (or negligible) balance, lets us install a new public key into that index (but not resetting the nonce). I'm still a bit leery of this- it basically turns into a minimum deposit to hold an account, else some cowboy can kick you out of the ledger.

emberian avatar Mar 17 '20 00:03 emberian

Currently we have the deleteAccount daemon's GraphQL Mutation. Hope it helps. Closing.

shimkiv avatar Jul 18 '22 06:07 shimkiv

That's unrelated, this is about reusing space in the merkle tree.

emberian avatar Jan 12 '24 17:01 emberian

related but just old issue for reference, once account deletes is done, this can be closed

submarinec94 avatar Jul 18 '24 17:07 submarinec94