Package com.privatechain.storage


package com.privatechain.storage
BlockchainStorage implementations and chain export utilities for the private-blockchain library.

Four persistence backends are provided:

All implementations share a single BlockSerializer instance that holds a pre-configured Jackson ObjectMapper with JavaTimeModule, disabled FAIL_ON_UNKNOWN_PROPERTIES, and field-level visibility. Every block is hash-verified on load (NFR-SEC-03).

ChainExporter provides three static utility methods for chain export and import (FR-SER-02, FR-SER-03): toJson(), fromJson(), and toCsv().

Since:
1.0.0
  • Classes
    Class
    Description
    Shared Jackson-based JSON serializer / deserializer for Block objects.
    Utility class for exporting and importing a full blockchain in JSON and CSV formats.