An application based on fabric Hyperledger

Overview

Fabric_based_application

基于Facric Hyperledger fabric-sdk-go区块链应用

环境

Ubuntu18.04及以上 GoLang(需要go版本1.13以上,最新版本兼容) Docker 装docker-compose(开发时使用1.27.4)

安装使用

使用fabric-sdk-go前请先能够搭建起fabric网络,本链码基于fabric1.4及以上编写。

下载项目所需要的依赖

#进入项目目录下为项目文件夹赋权限:

#生成go.mod文件

go mod init 该命令会在该文件夹下生成一个go.mod和go.sum文件 正常输出类似于(go: creating new go.mod: module github.com/xxxxx)

#下载所需依赖(执行前将modelworker/chaincode中main.go和mwCC.go中import中的两行类似”github……”的两行注释掉,执行完成后再注释回来)

go mod vendor 该命令会在该文件夹下生成一个vendor文件夹,包含了所需依赖。

go env -w GOPROXY=https://goproxy.cn

#下载完成后即可进行测试:

#进入fixtures启动网络:(启动过就不需要再次启动)

cd fixtures

docker-compose -f hostn.yaml up -d

#编译并且运行:

#返回上一级有main.go的目录 #编译:

go build 会生成一个和当前文件夹同名的可执行文件,即modelworker

#运行

./modelworker

#运行成功提示:Fabric SDK初始化成功,通道已成功创建,peers 已成功加入通道.等等

You might also like...
Eunomia is a distributed application framework that support Gossip protocol, QuorumNWR algorithm, PBFT algorithm, PoW algorithm, and ZAB protocol and so on.

Introduction Eunomia is a distributed application framework that facilitates developers to quickly develop distributed applications and supports distr

immune Guard agent application

immune Guard Agent This is the agent component of the immune Guard product. It used together with the immune Guard API Service. Further information ca

A terminal application to watch crypto prices!
A terminal application to watch crypto prices!

cryptgo Latest Stable Version: Crytpgo is a TUI based application written purely in Go to monitor and observe cryptocurrency prices in real time! Inst

GUI application for Raspberry PI which allows simultaneous manipulation of infrared and nightvision cameras

IRNC GUI application for Raspberry PI which allows simultaneous manipulation of infrared and nightvision cameras IRNC stands for "InfraRed and Nightvi

Create chain for application built using starport.

test test is a blockchain built using Cosmos SDK and Tendermint and created with Starport. Get started starport chain serve serve command installs de

A Console Application Use Pancakeswap To Swap Token
A Console Application Use Pancakeswap To Swap Token

Pancakeswap Console A Pancakeswap Application Why It is a pity that some areas do not have access to the functions of PancakeSwap. I developed this to

Go Encrypt! Is a simple command-line encryption and decryption application using AES-256 GCM.

Go Encrypt! Go Encrypt! is a command-line application used to easily encrypt and decrypt files with the AES-256 GCM encryption algorithm. Usage Usage

Ixia-c-one - A re-packaged (as a single-container) flavor of multi-container application ixia-c

ixia-c-one ixia-c-one is a re-packaged (as a single-container) flavor of multi-c

mercuryPQCrypto is a go post quantum cryptography (PQC) algorithms lib for studying the pqc migration and application adaptation.

mercuryPQCrypto-README 1 mercuryPQCrypto: Mercury Cryptography Project mercuryPQCrypto is a cryptography project conducted by Chongqing University, Ch

Owner
null
An application based on fabric Hyperledger

An application based on fabric Hyperledger

null 1 Oct 31, 2021
Blockchain transaction manager for Hyperledger FireFly

Blockchain transaction manager for Hyperledger FireFly. Integrates public blockchains through a pluggable FireFly Connector API framework. Extensible policy engine for managing gas & resubmission. Confirmation manager for managing finality on both transactions and event streams.

Hyperledger 9 Dec 15, 2022
FabricPing: Network tools for service fabric

FabricPing Network debugging tools for Service Fabric Install Windows powershell

Boshi Lian 6 Sep 25, 2022
A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀

cointop is a fast and lightweight interactive terminal based UI application for tracking and monitoring cryptocurrency coin stats in real-time.

Miguel Mota 3.5k Jan 6, 2023
Akroma GO client - Akroma is an EVM based application development platform (smart-contracts).

Akroma Akroma is an EVM based application development platform (smart-contracts). Akroma will utilize a Masternode system, and build out an Oracle pla

null 3 Dec 11, 2022
Ots - The Bhojpur OTS is a software-as-a-service product used as an Object Tracking System based on Bhojpur.NET Platform for application delivery.

Bhojpur OTS - Object Tracking System The Bhojpur OTS is a software-as-a-service product used as an Object Tracking System based on Bhojpur.NET Platfor

Bhojpur Consulting 0 Sep 26, 2022
The Bhojpur Wallet is a platform-as-a-service product used as a Wallet Engine based on the Bhojpur.NET Platform for application delivery.

Bhojpur Wallet - Data Processing Engine The Bhojpur Wallet is a platform-as-a-service used as a Service Engine based on the Bhojpur.NET Platform. It l

Bhojpur Consulting 1 Sep 26, 2022
A phoenix Chain client based on the go-ethereum fork,the new PoA consensus engine is based on the VRF algorithm.

Phoenix Official Golang implementation of the Phoenix protocol. !!!The current version is for testing and developing purposes only!!! Building the sou

g_master 14 Apr 28, 2022
Frontier Chain is a blockchain application built using Cosmos SDK and Tendermint.

Frontier Chain Frontier Chain is a blockchain application built using Cosmos SDK and Tendermint. Setup Initialize the blockchain with one validator no

Frontier 12 Jul 12, 2022
Cross-platform application for easy encrypted sharing of files, folders, and text between devices.

wormhole-gui Wormhole-gui is a cross-platform application that lets you easily share files, folders and text between devices. It uses the Go implement

Jacob 720 Dec 30, 2022