fabric-x-common

module
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: Apache-2.0

README

Fabric-X Common

Coverage Status

This library encapsulates some common code across Fabric-X ecosystem. This code have been taken from Hyperledger Fabric v3.0.0-rc1.

Config

Uses Hyperledger Fabric Config v0.3.0

  • common/configtx
  • internaltools/configtxgen

This modifies Fabric's config block:

  • Added ARMA field for orderer type
  • Added MetaNamespacePolicyKey field
MSP
  • hyperledger/fabric/msp
  • hyperledger/fabric/common/channelconfig
    • bundle.go: (b *Bundle) ValidateNew(nb Resources)
  • hyperledger/fabric/common/capabilities
  • hyperledger/fabric/common/configtx
  • hyperledger/fabric/common/policies
Tools
  • hyperledger/fabric/cmd/configtxgen
  • hyperledger/fabric/cmd/configtxlator
  • hyperledger/fabric/cmd/osnadmin

Directories

Path Synopsis
api
cmd
configtxgen command
configtxlator command
cryptogen command
common
configtx/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
deliver
Package deliver contains an implementation of the server-side handlers of the gRPC delivery service.
Package deliver contains an implementation of the server-side handlers of the gRPC delivery service.
deliver/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
deliverclient/blocksprovider/fake
Code generated by counterfeiter.
Code generated by counterfeiter.
grpcmetrics/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
ledger/blockledger/fileledger/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
ledger/testutil/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
policies/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
semaphore
Package semaphore provides an implementation of a counting semaphore.
Package semaphore provides an implementation of a counting semaphore.
core
aclmgmt/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
aclmgmt/resources
Package resources contains resource names used in fabric for ACL checks.
Package resources contains resource names used in fabric for ACL checks.
msp
identity/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
tools
fxadmin/core/cli
Package cli builds the fxadmin command tree.
Package cli builds the fxadmin command tree.
fxadmin/core/client
Package client connects to the Fabric-X orderer.
Package client connects to the Fabric-X orderer.
fxadmin/core/client/test
Package test provides in-process AtomicBroadcast servers for testing the broadcast of envelopes to Fabric-X routers.
Package test provides in-process AtomicBroadcast servers for testing the broadcast of envelopes to Fabric-X routers.
fxadmin/core/decode
Package decode implements the `fxadmin decode` command, which converts a binary config block into the human-editable JSON of the common.Config it carries.
Package decode implements the `fxadmin decode` command, which converts a binary config block into the human-editable JSON of the common.Config it carries.
fxadmin/core/follow
Package follow implements the `fxadmin follow` command, which waits for a pending configuration update to commit across all assemblers.
Package follow implements the `fxadmin follow` command, which waits for a pending configuration update to commit across all assemblers.
fxadmin/core/helpers
Package helpers holds small helpers shared across the fxadmin commands.
Package helpers holds small helpers shared across the fxadmin commands.
fxadmin/core/ledger
Package ledger implements the `fxadmin ledger` command family: querying the assembler ledger for its height, a block, or the last config block.
Package ledger implements the `fxadmin ledger` command family: querying the assembler ledger for its height, a block, or the last config block.
fxadmin/core/modify
Package modify implements the `fxadmin modify` commands, which apply a structured configuration change directly to a config block file (automating the manual decode/hand-edit step).
Package modify implements the `fxadmin modify` commands, which apply a structured configuration change directly to a config block file (automating the manual decode/hand-edit step).
fxadmin/core/modify/change
Package change defines the `fxadmin modify party` requests.
Package change defines the `fxadmin modify party` requests.
fxadmin/core/ordererconn
Package ordererconn extracts the orderer connection information — channel ID, router and assembler endpoints, and the orderer organizations' TLS CA certificates — from a Fabric-X config block.
Package ordererconn extracts the orderer connection information — channel ID, router and assembler endpoints, and the orderer organizations' TLS CA certificates — from a Fabric-X config block.
fxadmin/core/seek
Package seek builds the SeekInfo messages the fxadmin commands use to pull blocks from the orderer: the newest block, a specific block number, or a block named by a CLI reference.
Package seek builds the SeekInfo messages the fxadmin commands use to pull blocks from the orderer: the newest block, a specific block number, or a block named by a CLI reference.
fxadmin/core/signer
Package signer loads the admin signing identity from a local MSP directory.
Package signer loads the admin signing identity from a local MSP directory.
fxadmin/core/tx
Package tx implements the `fxadmin tx` command family: endorsing, merging, preparing, submitting, and sending configuration update transactions.
Package tx implements the `fxadmin tx` command family: endorsing, merging, preparing, submitting, and sending configuration update transactions.
fxadmin/core/update
Package update implements the `fxadmin compute-update` command, which computes the ConfigUpdate delta between the original and modified configuration JSON.
Package update implements the `fxadmin compute-update` command, which computes the ConfigUpdate delta between the original and modified configuration JSON.
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL