Re-exportsΒ§
pub use ledger_manager::LedgerManager;
ModulesΒ§
- ledger_
actions π - ledger_
config π - ledger_
event π - ledger_
manager - ledger_
reducer π - ledger_
service π - ledger_
state π - read
- write
StructsΒ§
- LEDGER_
HASH_ πEMPTIES - Array size needs to be changed when the treeβs depth change
- Ledger
Account Index - Ledger
Config - Ledger
Ctx - Ledger
State
EnumsΒ§
ConstantsΒ§
TraitsΒ§
FunctionsΒ§
- complete_
height_ tree_ with_ empties - Given the hash of the subtree containing all accounts of height
subtree_height
compute the hash of a tree of sizeLEDGER_DEPTH
if all other nodes were empty. - complete_
num_ accounts_ tree_ with_ empties - Given the hash of the subtree containing
num_accounts
accounts compute the hash of a tree of sizeLEDGER_DEPTH
if all other nodes were empty. - hash_
node_ at_ depth - ledger_
empty_ hash_ at_ depth - tree_
height_ for_ num_ accounts - Returns the minimum tree height required for storing
num_accounts
accounts.