nklave-storage
Persistence layer for Nklave: append-only decision logs, checkpoints, and EIP-3076 interchange.
Features
- 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
Usage
use ;
// Open or create a decision log
let log = open?;
// Append a decision record
log.append?;
// Create a checkpoint
let checkpoint = new;
checkpoint.save?;
License
MIT License - Cryptuon