Configuring a SmartBFT ordering service in Hyperledger Fabric v3

A practical guide to configuring SmartBFT consenters in Hyperledger Fabric v3, covering ConsenterMapping entries, the V3_0 capability, local orderer settings and protocol timeouts.

On this page

When a SmartBFT ordering service fits a Hyperledger Fabric network

A SmartBFT ordering service fits a consortium whose members do not fully trust a single ordering operator. In a typical Fabric network, the orderers are run by one or a few parties, and every member relies on them to sequence transactions honestly. When members want protection against orderers that behave arbitrarily, not only against orderers that crash, Byzantine fault tolerance becomes the relevant requirement. Fabric v3.0 added a BFT ordering service based on SmartBFT, which tolerates failures of up to, but not including, one third of the ordering nodes. Decide this before the network is built, because the consenter set, certificates and channel configuration all depend on the choice.

Raft remains the ordering service that the Fabric documentation recommends. Raft is crash fault tolerant: it keeps ordering while a majority of nodes is available, but it assumes nodes follow the protocol and do not act maliciously. For many consortia, that assumption is acceptable because the operators are contractually accountable and the main risk is downtime. Choose BFT only when the threat model includes a faulty or dishonest orderer, and when the members are willing to accept the extra operating work that comes with it. Confirm the current guidance on consenter counts and failure tolerance in the Fabric ordering service documentation before you settle on a cluster size.

BFT is a deliberate choice with its own operating cost. Each consenter needs its own enrollment certificate and TLS certificates recorded in channel configuration, and the protocol timeouts must be set and reviewed as the network grows. Expect more coordination when a consenter is added, removed or renewed, and plan for the staff who will run these changes. Ask your Fabric partner or internal team to document which members operate which consenters, how the BFT configuration will be tested before production, and who approves changes to it. The Fabric documentation for configuring and operating a BFT ordering service is the natural next read for the configuration details.

How the pieces of a BFT configuration fit together

The configuration starts on each orderer, where orderer.yaml holds the local Cluster, TLS, replication and storage settings. Each consenter's enrollment certificate and client and server TLS certificates then feed a ConsenterMapping entry in the channel configuration, which lists its ID, host, port and MSP ID. The channel also carries the V3_0 capability and the protocol timeouts, and the BFT channel runs only when every consenter agrees on that same configuration. Check that each mapping matches the certificates on the node it names before the channel is created.

Local orderer files and channel configuration combine to start a running BFT channel.

Which configuration option to set and when

This table maps each part of a SmartBFT setup to the decision it answers, when that choice fits and what to confirm in the BFT configuration docs before you apply it. Read it as a checklist: work top to bottom from consenter identity to channel capability and timeouts, since the channel-level settings only take effect once the consenters are correctly declared.

SettingWhere it livesWhen it fitsWhat to confirm
ConsenterMapping ID, host and portChannel configurationEach ordering node gets a unique ID and a reachable host and port that every other consenter can resolveThe ID is unique within the consenter set and the host and port match the node's cluster listener
ConsenterMapping MSP IDChannel configurationThe consenter belongs to an organization that is already a member of the channelThe MSP ID matches the orderer organization definition in the channel
Enrollment certificate pathChannel configuration (identity)The node's signing identity is issued by the organization's CA and must be valid for the life of the channelThe path points to the enrollment certificate the node actually signs with and the certificate has not expired
Client TLS certificateChannel configurationUsed when the node acts as a TLS client toward other consentersIt comes from the TLS CA the cluster trusts, and it is the same certificate the node presents as a client
Server TLS certificateChannel configurationUsed when the node accepts cluster connections from other consentersIt matches the TLS endpoint in the node's cluster listener and is issued by a CA the other consenters trust
Cluster and TLS settingsorderer.yaml (local)Each node needs its own TLS key pair, cluster listener and replication settings before it can join the consenter setCluster listener address, TLS file paths and replication options match the values in the channel configuration
Storage settingsorderer.yaml (local)Set ledger and WAL locations on storage sized for growth on each nodeStorage paths are writable, persistent and sized for expected channel throughput
V3_0 channel capabilityChannel configurationRequired before a channel can run the BFT ordering serviceThe application and orderer capability levels are set to V3_0 and all consenters run Fabric v3.x binaries
Protocol timeoutsChannel configurationAdjust when network latency or view changes need different tolerances than the defaultsTimeout values and their units match the BFT configuration docs and are changed only with a tested rollout plan

Setting up a SmartBFT ordering service step by step

This sequence takes a consortium from confirmed v3.x binaries and channel prerequisites to a SmartBFT ordering service where every consenter has joined and the channel is processing blocks under BFT consensus.

  1. Confirm v3.x binaries and channel prerequisites

    Before any BFT work, confirm that every orderer and peer runs a 3.x binary and that each channel you plan to move has already been migrated to the v2.x lifecycle and off Kafka ordering, since Fabric v3.0 removed both. The platform team checks binary versions with the orderer and peer version commands and reviews the channel list with the consortium. The step is done when every node reports a 3.x version and each channel's existing ordering and lifecycle state is recorded in a signed change record. Check the upgrade guidance in the Fabric docs for the exact prerequisites before you start.

  2. Issue enrollment and TLS certificates per consenter

    Each consenter needs an enrollment certificate from its organization's CA, plus a client TLS certificate and a server TLS certificate. The CA administrator issues these identities, and the operator stores the private keys with restrictive file permissions. Confirm that every certificate chains to the CA expected by the channel MSP and that the TLS certificates carry the hostnames the other consenters will use. The step is done when each consenter has a complete set of files on disk and a test handshake against the CA trust bundle succeeds.

  3. Write the local orderer.yaml for each node

    Edit the local orderer.yaml on each orderer to set the cluster TLS settings, replication behavior and storage locations for the ledger. The file controls how the node talks to other consenters and where it keeps its data, so each node gets its own paths and certificate references. Keep the settings consistent with the certificates issued in the previous step. The step is done when each orderer starts without configuration errors and its operations endpoint responds on the health check path.

  4. Build the ConsenterMapping in the channel configuration

    Create a ConsenterMapping entry for each consenter in the channel configuration. Each entry lists the consenter ID, host, port, MSP ID, enrollment certificate path, client TLS certificate and server TLS certificate. The channel administrators from each organization review the mapping together, then sign the configuration update. The step is done when the updated configuration is committed and a fetch of the channel config shows every consenter with the expected host and certificate values.

  5. Enable the V3_0 channel capability

    Set the V3_0 channel capability in the channel configuration so the channel accepts BFT consensus. This change is made through a configuration update signed by the required organizations, following your normal channel administration approval flow. Confirm the capability is active on the channel before you rely on it for ordering. The step is done when the fetched channel configuration shows the V3_0 capability and every channel member agrees the change was applied.

  6. Set protocol timeouts and verify consenter joins

    Set the BFT protocol timeouts in the channel configuration and confirm that the values are consistent across consenters. Then start or join each consenter to the channel and check that each one reports membership and is in sync with the cluster. Review the Fabric BFT configuration docs for the timeout parameters and their effect on failover. The step is done when every consenter shows as joined in the orderer logs or channel listing, and none reports a certificate or membership error.

  7. Confirm consensus with test transactions

    Submit test transactions through a peer or the Fabric Gateway client and confirm that blocks are produced and replicated to every consenter. Watch the logs and operations endpoints for leader changes or view changes that would indicate a configuration problem. Record the block height on each consenter, which should match. The step is done when test blocks are committed across all consenters, the height is identical on each node, and the verification results are filed with the change record for audit.

Security controls for BFT consenter identities and keys

Each SmartBFT consenter carries several identities: an enrollment certificate for signing, a client TLS certificate and a server TLS certificate. The cards below cover where each identity comes from, how its keys are stored, and which checks confirm the setup before the ordering service carries channel traffic.

Enrollment certificates from the organization CA

Each ConsenterMapping entry points to an enrollment certificate that identifies the consenter under its MSP. Issue these from the organization's own Fabric CA or enterprise CA, not from a shared test CA, so that revocation and renewal stay under the owning organization's control. Check that the certificate chain resolves to the MSP defined in the channel configuration before the consenter is added.

BFT configuration docs

Separate client and server TLS identities

Each consenter lists a client TLS certificate and a server TLS certificate. Keep them as distinct certificates so that the server certificate can be presented to peers and clients while the client certificate authenticates the consenter when it connects to other nodes. Confirm with your CA team that both certificates carry the right key usages and that each one has its own renewal date in your tracker.

File-based TLS keys

TLS keys for orderers must remain file-based. Do not place them in an HSM, because Fabric's HSM support covers MSP keys only. Store these files with restricted filesystem permissions, mount them read-only into the orderer container or pod, and record their paths in orderer.yaml so that a rotation changes one file and one reload.

PKCS#11 for MSP signing keys

Fabric uses the PKCS#11 standard to keep peer and orderer MSP signing keys in a hardware security module. Decide early whether consenter signing keys will live in an HSM, because that choice affects the image you build, the operator runbook and how keys are restored after a failure. Ask your HSM vendor which PKCS#11 library version your hardware supports and test signing on a staging consenter first.

HSM docs

Custom images for HSM use

The prebuilt Fabric Docker images are not built with PKCS#11 support, so an HSM-backed consenter needs a custom image compiled with that support. Add this image to your build pipeline, pin its base and Fabric versions, and rebuild it for every patch release on the 3.x line. Include a verification step that the orderer starts with the HSM configuration and signs a test message.

Mutual TLS on the operations service

The operations service exposes health, log level, version and metrics endpoints. Require mutual TLS client certificates on every consenter so that only monitoring systems and operators with an issued certificate can read or change log levels. Test the scrape path from your monitoring stack after rotation, because a rejected client certificate can look like a dead node.

Operations service docs

Prerequisites from the 3.x upgrade path

Before you configure SmartBFT, confirm that the ordering service you already run is Raft or can be moved to Raft. Fabric v3.0 removed Solo and Kafka consensus, so a network still on Kafka ordering must migrate to Raft first, and every channel must be on the v2.x lifecycle before the binaries are upgraded. BFT is not a path from Kafka or Solo. It is a consensus choice you make on a channel that already runs on a supported 3.x network, so the migration work and its order of operations should be settled before you plan consenters, certificates or timeouts.

The Fabric upgrade guide sets the order that governs when a BFT channel can be enabled. The four steps are: back up the ledger and MSPs, upgrade orderer binaries in a rolling fashion, upgrade peer binaries in a rolling fashion, and then update the application channel capability levels. The V3_0 capability is a channel setting, so it is the last step, not the first. Confirm that every orderer and peer in your plan runs the 3.x binaries, that backups have been restored to a test location, and that your change window covers the capability update. Also confirm which orderer nodes will become consenters, since their certificates must be in place before the channel configuration changes.

Fabric v2.5 remains the long-term support line for production users, and the Fabric releases page publishes patch releases for both v2.5 and v3.1 in parallel. Decide now which line your network will run and who owns patch intake for it. If you choose 3.x, check the release notes and the What's new page for the exact 3.x release you will deploy, and ask your DeployOpen team to confirm the binary and image versions in your environment, including any custom orderer images.

Questions buyers ask about SmartBFT configuration

What drives the cost and effort of a SmartBFT setup compared with Raft?

The main difference is the number of ordering nodes and the amount of protocol-level configuration. A SmartBFT cluster needs at least four consenters to tolerate one Byzantine fault, and each consenter needs its own enrollment certificate, client TLS certificate and server TLS certificate recorded in the channel configuration. Raft uses a smaller crash-fault model, so its channel configuration is simpler. Effort rises with the number of consenters, the number of organizations that must issue and sign certificates, the number of channels, and the testing needed to prove the cluster survives a node failure. Costs are mostly labor: planning the consenter set, preparing certificates, configuring each orderer, validating the capability upgrade and running failure tests. Ask any partner for a quote that separates the design, build, testing and handover phases, and that states which of these repeat during later node changes.

How long does a SmartBFT configuration project take?

Duration depends mostly on how many consenters you run, where their certificates come from, and how quickly your change approvals move. Each consenter adds configuration, enrollment and verification work, and certificates issued by an existing enterprise CA usually need more coordination than certificates issued by a CA you run for the network. The Fabric docs present SmartBFT as a configuration that must be set consistently in orderer.yaml and in channel configuration, so the schedule should include a window for dry runs in a non-production network. This page does not supply a fixed duration. Ask a partner to show the phases, the dependencies on your CA and change calendar, and the test runs that gate go-live.

What must our team provide before a SmartBFT build starts?

Plan to provide the following before work begins:

  • Host names, ports and MSP IDs for every planned consenter, with network paths open between them.
  • Enrollment certificates for each consenter, plus client and server TLS certificates from the CA each organization trusts.
  • Access to the systems that run the orderers, including storage, backup targets and the operations service endpoints.
  • Named staff from channel governance, security and platform operations who can approve configuration updates.
  • Change windows for a non-production rehearsal and for the production channel update, because channel configuration changes must be coordinated across organizations.

Confirm each item in your own environment rather than assuming the current inventory matches what the network needs.

Can an internal team configure a SmartBFT ordering service alone?

A capable internal team can do it if it has people who understand Fabric channel configuration, MSP and certificate handling, and orderer operations, and if it can rehearse the change before touching production. The hard parts are not the file edits themselves. They are getting the enrollment and TLS certificates right for every consenter, applying the V3_0 channel capability in the correct order, and proving that the cluster keeps ordering transactions after a node stops. Teams that have not done a consenter change before often find that the first attempt is the most expensive. Assess your team against those tasks, and compare that assessment with a partner scope that names what you would still own afterward.

How does a partner agree the scope of a SmartBFT engagement in writing?

DeployOpen typically works from a written scope that fixes the deliverables, the environments covered, the responsibilities of each party and the acceptance tests before work starts. For a SmartBFT configuration, that scope should list the consenters and organizations involved, the certificate sources, the channels in scope, the test cases for node failure and recovery, and the handover documents your operators will use. Anything outside that list, such as a later consenter addition or a change to the certificate authority, should be quoted separately. DeployOpen does not publish a price list, so the quote follows from the agreed scope. Ask for the scope document and check that it names who approves each channel configuration update.

What goes wrong most often when the BFT channel configuration is applied?

The most common failures come from inconsistent certificate or consenter data. If a ConsenterMapping entry lists the wrong host, port, MSP ID or certificate path, the consenter may not join or may fail to replicate. Teams also miss the V3_0 channel capability requirement, so the BFT settings are present but not active. Protocol timeouts set differently across nodes can cause unstable behavior that is hard to diagnose during load. Check each entry against the planned consenter inventory, confirm the capability is applied before relying on BFT behavior, and keep the timeout values documented with the reason for each change. Verify the result with a planned node-stop test before production traffic arrives.

Is a SmartBFT ordering service suitable for every Fabric network?

Not necessarily. Fabric documentation recommends the Raft ordering service for most networks because it is crash fault tolerant and keeps working while a majority of nodes are available. SmartBFT is designed for networks that need tolerance of Byzantine behavior among ordering nodes, and Fabric v3.0 added it for that purpose. Its tolerance covers failures of up to, but not including, one third of ordering nodes. Choosing BFT adds configuration, certificate and testing effort, so the decision should be based on the trust model among the ordering organizations. Confirm the trust assumptions with your governance and security teams before committing to the design.

How DeployOpen scopes and delivers BFT ordering work

DeployOpen plans, implements, hardens and documents self-hosted Hyperledger Fabric networks inside the client's own infrastructure, including the SmartBFT ordering service described on this page. DeployOpen is a Chainscore Labs company. Work runs in your cloud accounts, data centers or air-gapped networks, so the consenter hosts, their enrollment and TLS material, and the orderer configuration stay under your control from the first day. For a BFT cluster, that typically means the orderer nodes, the local orderer.yaml settings, the channel configuration changes that add consenters and set protocol timeouts, and the runbooks your operators will use afterward.

Most engagements are fixed-scope. Before work starts, the scope, deliverables and timelines are agreed in writing, and a quote follows from that scope rather than from a published price list. For a BFT ordering job, the scope should state how many consenters are in the cluster, which organizations operate them, whether the enrollment certificates come from your Fabric CA or an enterprise CA, which HSM or file-based key handling applies, whether the work is a new network or a migration, and which acceptance tests prove the cluster tolerates the faults you expect. Ask for these items to be listed explicitly in the quote so that the effort behind each one is visible and can be compared with work your own team would do.

Ongoing support, upgrades and continuous testing are available as retainers. A retainer suits the recurring work that follows a BFT deployment: certificate renewals, adding or replacing consenters, moving to later Fabric patch releases on the 3.x or 2.5 LTS lines, and retesting after configuration changes. Confirm with any partner, including DeployOpen, which of these tasks sit inside the retainer and which are separate fixed-scope changes, and how response expectations are written down.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.