Persistence layer for Nklave: append-only decision logs, checkpoints, and EIP-3076 interchange.
- Decision Logs - Append-only audit trail with cryptographic chaining
- Checkpoints - Periodic state snapshots for fast recovery
- EIP-3076 - Slashing protection interchange format support
- Log Rotation - Automatic rotation with configurable limits
- Encrypted Storage - Optional AES-256-CTR encryption for sensitive data
use nklave_storage::{DecisionLog, Checkpoint};
// Open or create a decision log
let log = DecisionLog::open("./data/decisions.log")?;
// Append a decision record
log.append(&decision_record)?;
// Create a checkpoint
let checkpoint = Checkpoint::new(&integrity, validators);
checkpoint.save("./data/checkpoint.json")?;MIT License - Cryptuon