> For the complete documentation index, see [llms.txt](https://docs.transferchain.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.transferchain.io/core-concepts/blockchain/architecture.md). Agents can also search and read this documentation through its [MCP server](https://docs.transferchain.io/~gitbook/mcp).

# Architecture

### Blockchain Architecture

TransferChain incorporates a purpose-built blockchain architecture designed to support decentralized authorization, transaction verification, and tamper-resistant activity records.

Rather than using blockchain to store encrypted files directly, TransferChain utilizes it as a dedicated authorization and verification layer within its zero-knowledge protocol.

The architecture combines a permissioned blockchain network, Byzantine Fault Tolerant (BFT) consensus, and the Application Blockchain Interface (ABCI) to separate transaction validation from application-specific business logic.

This modular approach allows TransferChain to maintain cryptographically verifiable records of data-related operations while keeping the underlying data encrypted and distributed across independent storage infrastructure.

### Application Blockchain Interface (ABCI)

The Application Blockchain Interface (ABCI) is a communication interface that connects a blockchain consensus engine with the application responsible for executing transactions and maintaining application state.

ABCI separates two fundamental responsibilities:

* **Consensus Layer:** Responsible for networking, transaction propagation, block proposals, validator voting, and agreement on the blockchain's transaction history.
* **Application Layer:** Responsible for validating transactions, executing application-specific rules, and maintaining the corresponding application state.

This separation enables blockchain applications to implement their own transaction logic without needing to implement the underlying consensus mechanism.

Within TransferChain, the blockchain application supports operations related to cryptographic identities, authorization, and the management of protected data.

#### Transaction Validation — CheckTx

`CheckTx` is responsible for performing preliminary validation of transactions before they enter the blockchain's transaction pool, commonly referred to as the mempool.

When a transaction is submitted, the application evaluates whether it satisfies the required conditions for acceptance.

These checks may include:

* Verification of digital signatures.
* Validation of transaction structure and required parameters.
* Verification of applicable authorization conditions.
* Detection of malformed or otherwise invalid transactions.

If the transaction passes preliminary validation, it becomes eligible for inclusion in a future block.

Importantly, passing `CheckTx` does not mean that the transaction has been committed to the blockchain. It only indicates that the transaction is eligible for further processing.

#### Transaction Execution — DeliverTx

`DeliverTx` is responsible for executing transactions included in a proposed and agreed block under the original ABCI interface.

Unlike `CheckTx`, which performs preliminary validation, `DeliverTx` applies transaction-specific rules and produces changes to the application state.

Within a blockchain-based authorization system, these operations may involve registering cryptographic identities, updating permissions, or recording authorized transactions.

The application processes transactions according to deterministic execution rules so that participating nodes can independently derive a consistent application state.

#### Block Lifecycle — BeginBlock & EndBlock

`BeginBlock` and `EndBlock` are application callbacks associated with the beginning and completion of block execution in the original ABCI model.

**BeginBlock** allows the application to perform logic before processing transactions within a block.

**EndBlock** allows the application to perform logic after the block's transactions have been processed.

Depending on the application, these callbacks may support block-level operations, validator updates, or other protocol-specific functions.

#### State Commitment — Commit

The `Commit` operation finalizes the application's state changes associated with an executed block.

The resulting application state is persisted and cryptographically associated with the blockchain's committed history.

This mechanism enables participating nodes to verify that transactions have been processed consistently according to the established application rules.

#### ABCI Version Compatibility

The original ABCI interface uses methods such as `BeginBlock`, `DeliverTx`, and `EndBlock`.

Newer implementations, commonly referred to as ABCI++ or ABCI 2.0, introduce methods such as `PrepareProposal`, `ProcessProposal`, and `FinalizeBlock`.

`FinalizeBlock` consolidates responsibilities previously handled by the separate block execution callbacks.

The exact interface and available methods depend on the version of the underlying consensus engine.

Applications integrating with TransferChain through its SDK do not ordinarily need to implement ABCI themselves. The blockchain interface is handled by the underlying network infrastructure.

### Byzantine Fault Tolerant (BFT) Consensus

TransferChain's blockchain architecture follows Byzantine Fault Tolerant consensus principles to establish agreement among participating network validators.

Byzantine Fault Tolerance describes the ability of a distributed system to maintain consistent operation even when some participating nodes behave incorrectly, become unavailable, or attempt to interfere with consensus.

Unlike traditional centralized systems, where a single authority determines the accepted state of a database, BFT consensus requires participating validators to collectively agree on proposed blockchain updates.

#### Validator Responsibilities

Validators are authorized network participants responsible for verifying proposed blocks and participating in the consensus process.

Within a permissioned blockchain architecture, validator participation is restricted to approved operators rather than being available to any anonymous network participant.

Validators contribute to several essential functions:

* **Transaction Verification:** Evaluating proposed transactions according to the network's validation rules.
* **Block Proposals:** Creating candidate blocks when selected as the proposer.
* **Consensus Voting:** Participating in voting rounds to determine which blocks can be committed.
* **State Consistency:** Maintaining a consistent blockchain state according to the consensus protocol.
* **Network Resilience:** Supporting distributed operation and fault tolerance.

Validator voting power is determined by the network's validator configuration and consensus rules. In a permissioned architecture, this does not inherently require cryptocurrency ownership or token-based staking.

#### How BFT Consensus Works

BFT consensus utilizes a structured voting process to establish agreement on new blocks.

In a Tendermint-style BFT protocol, the process consists of several stages:

**1. Proposer Selection**

A validator is selected to propose the next block according to the consensus protocol's proposer-selection mechanism.

The selected validator assembles a candidate block containing transactions eligible for processing.

**2. Block Proposal**

The proposer broadcasts the candidate block to participating validators.

Other validators receive the proposal and evaluate it against the network's validation rules.

**3. Prevote**

Validators broadcast their initial votes indicating whether they consider the proposed block acceptable.

If the proposed block is invalid, unavailable, or otherwise cannot be accepted, validators may issue a nil vote instead.

**4. Precommit**

When validators observe the required supermajority of prevotes for a particular block, they may lock onto that block and issue precommit votes.

This second voting stage helps establish a consistent decision among participating validators.

**5. Block Commitment**

A block can be committed when validators representing more than two-thirds of the network's total voting power issue the required precommit votes for that block.

Once committed, the block becomes part of the accepted blockchain history.

If consensus cannot be reached during the current round, the protocol can initiate another round with a new proposal.

This process enables agreement without requiring every validator to behave correctly at all times.

### Consensus Safety & Network Resilience

BFT consensus is designed around two critical properties: safety and liveness.

#### Safety

Safety ensures that honest validators do not finalize conflicting blockchain histories under the protocol's fault assumptions.

By requiring a supermajority of validator voting power to commit blocks, the consensus process prevents a small minority of faulty validators from independently finalizing conflicting transactions.

#### Liveness

Liveness refers to the network's ability to continue processing transactions and committing new blocks.

The consensus protocol incorporates voting rounds, proposer changes, and timeout mechanisms to support progress when individual validators become unavailable or fail to produce valid proposals.

For a typical Tendermint-style BFT protocol, safety and liveness guarantees depend on network conditions and the assumption that Byzantine validators control less than one-third of the total voting power.

These mechanisms contribute to the reliability of the blockchain's authorization and verification functions.

### Transaction Lifecycle

A transaction submitted to TransferChain's blockchain passes through a sequence of validation, consensus, and execution stages.

The general transaction lifecycle includes:

1. **Transaction Creation:** An authorized client or application constructs a transaction representing an operation supported by the blockchain.
2. **Cryptographic Authentication:** The transaction is signed or otherwise authenticated using the applicable cryptographic mechanisms.
3. **Preliminary Validation:** The application validates the transaction before it is admitted to the transaction pool.
4. **Transaction Propagation:** Eligible transactions are propagated to participating blockchain nodes.
5. **Block Proposal:** A validator includes the transaction in a proposed block.
6. **Consensus:** Participating validators execute the consensus protocol to agree on the proposed block.
7. **State Execution & Commitment:** The application processes the agreed transactions and commits the resulting application state.
8. **Verification:** The committed transaction and its associated blockchain records become available for authorized verification and retrieval.

This lifecycle creates a verifiable relationship between authenticated operations, their execution, and the blockchain's committed transaction history.

### Blockchain Read Nodes

TransferChain also incorporates specialized blockchain read nodes designed to optimize data retrieval and reduce the operational burden associated with read-intensive blockchain applications.

Unlike validator nodes, which participate in consensus and block production, read nodes focus on retrieving blockchain information efficiently.

#### Optimized Data Retrieval

Read nodes can utilize specialized indexing and caching mechanisms to accelerate access to blockchain records.

They are particularly useful for applications that require frequent transaction queries without participating directly in consensus.

#### Separation of Read & Consensus Operations

By separating read operations from transaction validation and block production, TransferChain can reduce unnecessary workloads on consensus participants.

This distinction enables applications to access blockchain information through infrastructure optimized for retrieval, while validators continue handling the responsibilities of maintaining consensus.

Typical applications include:

* Transaction history lookups.
* Authorization record retrieval.
* Blockchain activity monitoring.
* Audit and reporting systems.
* High-frequency backend queries.

Read nodes do not independently provide the same consensus guarantees as validators. Applications requiring strong verification of retrieved information should rely on the appropriate cryptographic proofs or trusted verification mechanisms.

### Separation of Blockchain & Data Storage

An important architectural principle of TransferChain is the separation between blockchain operations and the underlying data storage infrastructure.

TransferChain does not rely on blockchain nodes to store complete user files.

Instead, the protocol utilizes distinct components:

**Blockchain Layer**

Supports transaction validation, authorization, and cryptographically verifiable records associated with supported data operations.

**Cryptographic Layer**

Handles client-side encryption, decryption, key management, and the protection of sensitive information.

**Data Distribution Layer**

Coordinates encrypted data fragmentation and distribution across configured storage destinations.

**Storage Layer**

Maintains encrypted fragments across cloud, on-premises, or hybrid storage infrastructure.

This separation prevents the blockchain from becoming the primary storage system for large encrypted datasets and allows the individual layers to serve different operational requirements.

It also enables TransferChain to leverage existing object storage infrastructure without requiring organizations to migrate their data into a blockchain-based file storage system.

### Architecture Designed for Enterprise Security

TransferChain's modular blockchain architecture combines distributed transaction verification with a permissioned network structure designed for enterprise environments.

By separating consensus, application execution, cryptographic protection, and distributed storage, TransferChain establishes an architecture in which these responsibilities can be managed and scaled independently.

The blockchain acts as a verification and authorization component of the broader zero-knowledge protocol, complementing client-side encryption and distributed storage rather than replacing them.

This approach enables TransferChain to support secure data management, verifiable authorization, and infrastructure flexibility across enterprise cloud, on-premises, and hybrid deployments.
