-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Scope: DocumentationREADME, docs, comments, guidesREADME, docs, comments, guides
Description
This document explains the structure of the Hyperledger Fabric network setup using a hybrid-ready BCCSP stub.
It shows how Docker Compose, Dockerfiles, and images interact. π
πΊ ASCII Diagram
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β docker-compose.yaml β
β fabric-baseline-hybrid β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β Defines services: β
β β’ peer0_org1 β
β β’ orderer β
β β
β Configuration: β
β β’ environment variables β
β β’ volumes β
β β’ ports β
β β’ network β
βββββββββββββββββββββββββ¦βββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββ΄ββββββββββββββββββββββ
β β
βββββββββββΌβββββββββββββ ββββββββββββΌβββββββββββββ
β peer0_org1 service β β orderer service β
β ββββββββββββββββββββββ£ β ββββββββββββββββββββββββ£
β image: β β image: β
β custom-fabric-peer β β hyperledger/ β
β :2.5 β β fabric-orderer:2.5 β
β (built locally) β β β
β β β environment: β
β environment: β β β’ CORE_ORDERER_ β
β β’ CORE_PEER_BCCSP_*β β BCCSP_* β
β β’ CORE_PEER_BCCSP_ β β β
β DEFAULT_TYPE= β β volumes, ports, net β
β HYBRID β ββββββββββββ¦βββββββββββββ
β β β
β volumes, ports, net β β
ββββββββββββ¦ββββββββββββ ββββββββββββΌβββββββββββββ
β β Official Image β
ββββββββββββΌββββββββββββ β fabric-orderer:2.5 β
β Dockerfile.peer β ββββββββββββββββββββββββ
β ββββββββββββββββββββββ£
β FROM fabric-peer:2.5 β
β COPY bccsp/hybrid/ β
β make peer β
β ENTRYPOINT peer β
βββββββββββββββββββββββ
π Explanation
1οΈβ£ Docker Compose YAML
- Orchestrates all containers in the network. π
- Uses already available images for standard services, e.g., the orderer. β
- Specifies environment variables, volumes, ports, and networks. π
2οΈβ£ Peer Custom Image
- The peer0_org1 container uses a custom-built image with the HYBRID BCCSP stub. π§©
- The Dockerfile (
Dockerfile.peer) starts from the official Fabric peer image and adds the stub code. β¨ - Environment variable
CORE_PEER_BCCSP_DEFAULT_TYPE=HYBRIDinstructs the peer to use the HYBRID provider. π - Currently, the stub delegates all cryptographic operations to ECDSA (SW). π
3οΈβ£ Orderer
- The orderer container uses the official image
hyperledger/fabric-orderer:2.5. π - It is also configured hybrid-ready via environment variables but still uses ECDSA. βοΈ
4οΈβ£ Workflow
- Docker Compose reads the YAML and starts the containers.
βΆοΈ - Peer0_org1 starts using the custom image that includes the HYBRID stub. π’
- Orderer starts using the official image with hybrid-ready config. π’
- The network works as usual with ECDSA, ready for future Post-Quantum integration. π
This setup allows a gradual approach:
- Start with a functioning ECDSA network. β
- Introduce a hybrid BCCSP stub in the peer. π§©
- Add Post-Quantum cryptography later without changing the network orchestration. β‘
If you want, I can also highlight the βfuture PQC stepsβ directly in the ASCII diagram with emojis, so itβs visually clear where the upgrade will occur. Do you want me to do that?
Metadata
Metadata
Assignees
Labels
Scope: DocumentationREADME, docs, comments, guidesREADME, docs, comments, guides