Uses of Class
com.privatechain.core.builder.Blockchain
Packages that use Blockchain
Package
Description
Practical Byzantine Fault Tolerance (PBFT) consensus engine (FR-CONS-04, NFR-REL-03).
Proof of Authority (PoA) consensus engine — accepts blocks only from a configured
set of authorized signer addresses (FR-CONS-03, AC-02).
Proof of Work (PoW) consensus engine — SHA-256 hash mining with configurable
difficulty (FR-CONS-02, AC-03).
Round-Robin consensus engine — deterministic slot-based block production for
development and testing (FR-CONS-05).
Assembly layer — the single location where all library modules are composed.
In-memory transaction pool with pluggable prioritization and TTL eviction.
Service Provider Interfaces (SPIs) — the primary extension points of the library.
Netty TCP server, client, and NDJSON message codec — the transport layer of the
P2P networking stack (FR-NET-01, ADR-001).
Chain synchronization and fork resolution — brings a node's local chain up to date
with the network on startup and after a network partition (FR-NET-04, FR-NET-05).
BlockchainStorage implementations and chain
export utilities for the private-blockchain library.Wallet and key management — secp256k1 key pairs, transaction signing, balance
computation, and encrypted keystore serialisation (FR-WALLET-01–04).
-
Uses of Blockchain in com.privatechain.consensus.pbft
Methods in com.privatechain.consensus.pbft with parameters of type BlockchainModifier and TypeMethodDescriptionbooleanPBFTEngine.validateBlock(Block block, Blockchain chain) Validates whether the candidate block satisfies the PBFT acceptance rules. -
Uses of Blockchain in com.privatechain.consensus.poa
Methods in com.privatechain.consensus.poa with parameters of type BlockchainModifier and TypeMethodDescriptionbooleanProofOfAuthorityEngine.validateBlock(Block block, Blockchain chain) Validates whether the candidate block was produced by an authorized miner. -
Uses of Blockchain in com.privatechain.consensus.pow
Methods in com.privatechain.consensus.pow with parameters of type BlockchainModifier and TypeMethodDescriptionbooleanProofOfWorkEngine.validateBlock(Block block, Blockchain chain) Validates whether the candidate block satisfies the proof-of-work rules. -
Uses of Blockchain in com.privatechain.consensus.roundrobin
Methods in com.privatechain.consensus.roundrobin with parameters of type BlockchainModifier and TypeMethodDescriptionbooleanRoundRobinEngine.validateBlock(Block block, Blockchain chain) Validates whether the candidate block was produced by the peer assigned to the current slot. -
Uses of Blockchain in com.privatechain.core.builder
Methods in com.privatechain.core.builder that return BlockchainModifier and TypeMethodDescriptionBlockchainNode.getChain()Returns the underlyingBlockchainfor direct chain access. -
Uses of Blockchain in com.privatechain.core.mempool
Methods in com.privatechain.core.mempool with parameters of type BlockchainModifier and TypeMethodDescriptionTransactionMempool.submitWithValidation(Transaction transaction, Blockchain chain) Validates and submits a transaction using the configuredTransactionValidator. -
Uses of Blockchain in com.privatechain.core.spi
Methods in com.privatechain.core.spi with parameters of type BlockchainModifier and TypeMethodDescriptionTransactionValidator.validate(Transaction tx, Blockchain chain) Validates a single transaction against the current chain state.booleanConsensusEngine.validateBlock(Block block, Blockchain chain) Validates whether the given block satisfies the consensus rules of this engine. -
Uses of Blockchain in com.privatechain.network.rpc
Constructors in com.privatechain.network.rpc with parameters of type BlockchainModifierConstructorDescriptionNodeServer(int port, AllowlistManager allowlistManager, PermissionManager permissionManager, PeerManager peerManager, MessageCodec codec, Blockchain blockchain, BlockchainEventBus eventBus) Constructs aNodeServerwith all required dependencies. -
Uses of Blockchain in com.privatechain.network.sync
Constructors in com.privatechain.network.sync with parameters of type BlockchainModifierConstructorDescriptionSyncManager(String localNodeId, Blockchain blockchain, PeerManager peerManager, BlockFetcher blockFetcher, ForkResolver forkResolver, MessageCodec codec, NodeClient nodeClient) Constructs aSyncManagerwith all required dependencies. -
Uses of Blockchain in com.privatechain.storage
Methods in com.privatechain.storage with parameters of type BlockchainModifier and TypeMethodDescriptionstatic StringChainExporter.toCsv(Blockchain chain) Exports the blockchain as a flat RFC-4180 CSV string for audit and analytics use (FR-SER-03).static StringChainExporter.toJson(Blockchain chain) Serializes the entire blockchain to a compact JSON array string (FR-SER-02). -
Uses of Blockchain in com.privatechain.wallet
Methods in com.privatechain.wallet with parameters of type BlockchainModifier and TypeMethodDescriptionWallet.getBalance(Blockchain blockchain) Computes the balance of this wallet by scanning the blockchain for all confirmed transactions involving this address.