Ubuntu deploys Hyperledger Fabric from scratch and uses a test network

ubuntu 20.04, Fabric 2.0.0 HyperledgeHyperledger Fabric An open-source, enterprise-grade, permissioned Distributed Ledger Technology (DLT) platform designed for use in enterprise environments. Hyperledger Fabric is specifically designed to be a modular architecture. Whether it’s pluggable consensus, pluggable identity management protocols like LDAP or OpenID Connect, key management protocols, or encryption libraries, the platform’s core is designed […]

Hyperledger Fabric 2.x custom smart contract

1. Description In order to continuously update information and manage the ledger (write transactions, query, etc.), the blockchain network introduces smart contracts to access and control the ledger; smart contracts are called chaincode in Fabric, which is the business logic of blockchain applications. This article shares how to use the Java language to develop smart […]

[Hyperledger Fabric Development and Learning 3.2] docker manually deploys the fabric network

3 deploy docker node Write the docker-compose.yaml file Create a docker folder mkdir dacker Create a docker-compose.yaml file in the docker folder vim docker-compose.yaml (note the file structure) version: ‘2’ volumes: orderer.example.com: peer0.org1.example.com: peer1.org1.example.com: peer0.org2.example.com: peer1.org2.example.com: services: orderer.example.com: container_name: orderer.example.com image: hyperledger/fabric-orderer:2.2 environment: – FABRIC_LOGGING_SPEC=INFO – ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 – ORDERER_GENERAL_LISTENPORT=7050 -ORDERER_GENERAL_GENESISMETHOD=file – ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block – ORDERER_GENERAL_LOCALMSPID=OrdererMSP – […]

Hyperledger Fabric Network Quick Start

Directory 1. Network service configuration 2. Associated docker-compose-base.yaml Each Peer node container sets the following information. 3. Associated Peer-base.yaml 4. Start the network 2. Complete the creation of the channel 2.1 Add the node to the application channel update anchor node 2. Why create a node and add it to the application channel? 1. Network […]

[Hyperledger Fabric source code interpretation] sever.go

/* Copyright IBM Corp. 2017 All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package server import ( “fmt” “io/ioutil” “os” “runtime/debug” “time” “github.com/golang/protobuf/proto” cb “github.com/hyperledger/fabric-protos-go/common” ab “github.com/hyperledger/fabric-protos-go/orderer” “github.com/hyperledger/fabric/common/deliver” “github.com/hyperledger/fabric/common/metrics” “github.com/hyperledger/fabric/common/policies” “github.com/hyperledger/fabric/orderer/common/broadcast” localconfig “github.com/hyperledger/fabric/orderer/common/localconfig” “github.com/hyperledger/fabric/orderer/common/msgprocessor” “github.com/hyperledger/fabric/orderer/common/multichannel” “github.com/hyperledger/fabric/protoutil” “github.com/pkg/errors” ) type broadcastSupport struct {<!– –> *multichannel. Registrar } func (bs broadcastSupport) BroadcastChannelSupport(msg *cb.Envelope) (*cb.ChannelHeader, bool, broadcast.ChannelSupport, error) {<!– –> […]

[HyperLedger Fabric source code interpretation] orderer

Sorting service startup process The ordering service node is started through the main() method of cmd/orderer/main.go, which will further call the orderer/common/server/main.go#Main() method. # fabric-release-2.2\cmd\orderer\main.go package main import “github.com/hyperledger/fabric/orderer/common/server” func main() {<!– –> server. Main() } read local configuration The server.Main() main function first calls the config.Load() function, loads the orderer.yaml configuration file in the […]

Hyperledger fabrc stand-alone multi-node deployment

Environment preparation 1.fabric network information The construction environment consists of: one server; two sorting nodes orderer; two groups OrgMSP, and each organization has a peer node. Server address: 127.0.0.1 Server deployment path: /home/hyperledgerFabric/qkl_01/ 2 sorting node orderer network configuration: node name address domain name port sort node orderer0 orderer0.ymh.com 2050 orderer1 orderer1.ymh.com 3050 The OrgMSP […]

Hyperledger Fabric uses a testnet

Table of Contents 1. Prerequisites Install git, curl, wget Install the go language Install JDK install docker Install docker-compose 2. Use the test network 2.1 Download fabric source code 2.2 Start the network 2.3 Interacting with the network 1. Prerequisites Install git, curl, wget //ubuntu sudo apt-get install git curl wget Install the go language […]

Build Hyperledger Fabric2.x.x in ubnutu20.4 environment

Article directory 1. Environment: ubnutu20.4 Install required tools install gadget install docker Install docker-compose View docker, docker-compose version install go Two, fabric2.x.x environment construction Create a directory Pull fabric source code Configure go agent Launch test network Start a chaincode on a channel interact with the network shut down the network 1. Environment: ubnutu20.4 VMware […]