Package com.privatechain.core.model
package com.privatechain.core.model
Immutable domain objects — the fundamental data model of the private-blockchain library.
Three classes form the immutable core:
Block— an immutable unit containing a list of transactions and a cryptographic link to the previous block (FR-CORE-01).BlockHeader— a lightweight record holding the block's version, nonce, Merkle root, and timestamp for header-only validation (FR-CORE-05).Transaction— the abstract base class that consumers must extend to define their own transaction types (FR-CORE-02).
All classes in this package are thread-safe and immutable after construction.
- Since:
- 1.0.0
-
ClassDescriptionImmutable unit of the blockchain containing a list of transactions and a cryptographic link to the previous block (FR-CORE-01).Fluent builder for
Block.Lightweight, immutable record representing the header of aBlock.Fluent builder forBlockHeader.Abstract base class for all blockchain transactions.