How hyperledger/fabric-x works
This repository is the Fabric-X Go project, but the supplied tree is concentrated on command-line tools—especially fxconfig, for managing namespace configuration and transaction lifecycle. Its principal workflow is to invoke a namespace command, pass the request to the application layer, and optionally endorse, submit, or wait for transaction status. The README also describes Fabric-X’s broader orderer and post-ordering architecture; those components are documented as separate projects, not implemented in the supplied tree. Relationships for fxconfig are limited to the supplied excerpts, source index, and README.
Main entry points: client.go gRPC clients · app.go Admin application · provider.go Lazy providers · namespace_create.go Namespace commands
Components 22
Namespace administration
- fxconfig CLI
tools/fxconfig/internal/cli/v1/root.go - Namespace commands
tools/fxconfig/internal/cli/v1/namespace_create.go - Transaction codec
tools/fxconfig/internal/cli/v1/cliio/codec.go
Application internals
- Admin application
tools/fxconfig/internal/app/app.go - Configuration
tools/fxconfig/internal/config/config.go - Lazy providers
tools/fxconfig/internal/provider/provider.go - Configuration validation
tools/fxconfig/internal/config/validate.go - MSP signer
tools/fxconfig/internal/msp/signer.go - Transaction operations
tools/fxconfig/internal/transaction - gRPC clients
tools/fxconfig/internal/client/client.go - Orderer client
tools/fxconfig/internal/client/orderer.go - Query client
tools/fxconfig/internal/client/queries.go - Notification client
tools/fxconfig/internal/client/notifications.go
Fabric-X architecture
- Fabric-X orderer
- Post-ordering committer
- Orderer routers
- Orderer batchers
- BFT consenters
- Orderer assemblers
Network utilities
- Channel config tool
tools/configtxgen/main.go - Identity generator
tools/cryptogen/main.go
Other components
- Operator
Connections 26
- Operator → fxconfig CLI: runs commands
- fxconfig CLI → Namespace commands: registers commands
tools/fxconfig/internal/cli/v1/root.go - Namespace commands → Admin application: deploys namespace
tools/fxconfig/internal/cli/v1/namespace_create.go - Admin application → Transaction operations: uses operations
- Admin application → Configuration validation: validates requests
- Admin application → Lazy providers: gets services
- Lazy providers → Configuration validation: validates config
tools/fxconfig/internal/provider/provider.go - Lazy providers → MSP signer: creates identity
- Lazy providers → gRPC clients: creates clients
- gRPC clients → Configuration: uses endpoints
tools/fxconfig/internal/client/client.go - gRPC clients → Orderer client: provides client
- gRPC clients → Query client: provides client
- gRPC clients → Notification client: provides client
- Namespace commands → Transaction codec: encodes transaction
tools/fxconfig/internal/cli/v1/namespace_create.go - Operator → Channel config tool: generates config
tools/configtxgen/main.go - Operator → Identity generator: generates identities
tools/cryptogen/main.go - Fabric-X orderer → Orderer routers: includes
- Fabric-X orderer → Orderer batchers: includes
- Fabric-X orderer → BFT consenters: includes
- Fabric-X orderer → Orderer assemblers: includes
- Orderer routers → Orderer batchers: dispatches transactions
- Orderer batchers → BFT consenters: sends digests
- Orderer assemblers → Orderer batchers: pulls batches
- BFT consenters → Orderer assemblers: orders attestations
- Fabric-X orderer → Post-ordering committer: orders blocks for
- Operator → Fabric-X orderer: submits transactions