Storage
Ashen uses an authenticated database for state storage, enabling efficient light client verification.
Overview
Section titled “Overview”The storage layer provides:
- Authenticated State - Merkle proofs for any state value
- Efficient Queries - Fast key-value lookups
- Historical Access - Archive nodes retain full history
State Model
Section titled “State Model”Account state includes:
| Field | Description |
|---|---|
nonce | Transaction counter |
balance | Native token balance |
code_hash | Contract bytecode hash |
storage_root | Contract storage Merkle root |
Merkle Proofs
Section titled “Merkle Proofs”State proofs enable trustless verification:
- Inclusion Proofs - Prove a value exists at a key
- Exclusion Proofs - Prove a key doesn’t exist
- Historical Proofs - Prove state at past heights via MMR
See Light Clients for proof verification.
Node Modes
Section titled “Node Modes”| Mode | Storage | Use Case |
|---|---|---|
| Pruning | Recent epochs only | Validators |
| Archive | Full history | RPC, explorers |
See Running a Node for configuration.
Related
Section titled “Related”- Light Clients - State proof verification
- Execution - State transitions
- Data Availability - Block data storage
- Configuration - Storage settings