MinaProtocol / mina

Mina is a cryptocurrency protocol with a constant size blockchain, improving scaling while maintaining decentralization and security.
https://minaprotocol.com
Apache License 2.0
1.97k stars 522 forks source link

Add deletion functionality in ledger implementations #15742

Open rbonichon opened 2 weeks ago

rbonichon commented 2 weeks ago

Add a remove function in ledger implementations.

The actual implementation will need to keep track of removed locations that are available for further account allocations (aka creations) through a stack-based data structure.

The main technical subtlety lies in soundly updating hashes for data structures.