Giter VIP home page Giter VIP logo

Requirements

go 1.15 fabric 1.4.x nodejs v8' docker

download required binaries

curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.4 1.4.4 0.4.22 it will download fabric-samples copy binaries located in fabric-samples/bin to bft/bin

create bft orderer and gen tool

make orderer-docker

make configtxgen

replace 'orderer' and 'configtxgen' in bft/bin folder with generated ones

other envirnment setting

  • GO installation

download go1.15

mkdir ${HOME}/gopath

mv go ${HOME}/gopath

chmod -R 777 go

mkdir -p ${HOME}/gopath/src/github.com/hyperledger/

gedit ~/.bashrc

add the following at the end:

export PATH=$PATH:$HOME/go/bin

export GOPATH=$HOME/gopath

export GOROOT=$HOME/go

export GOBIN=$GOROOT/bin

export PATH=$HOME/gopath/src/github.com/hyperledger/fabric/bft/bin:$PATH

Update:

source ~/.bashrc

View:

go env

  • GO package installation:

mkdir -p $GOPATH/src/golang/x

cd $GOPATH/src/golang/x

chmod -R 777 golang

  • Download the required package:

go env -w GO111MODULE=on

go mod init

git clone https://github.com/golang/tools.git

go get golang/x/tools/go/packages

go mod vendor

Note

if above environment cannot be established, you can download from https://drive.google.com/file/d/1BRS7d2bV7XdPL_DTPppjjFaEOMPAw30v/view?usp=sharing copy the folders in side bft to src/github.com/hyperledger/fabric/bft DO NOT delete bin file

build bft network

  • start network with couchdb in bft/pbft-network folder run:

./byfn.sh up -a -s couchdb

  • close network ./byfn.sh down

run application to access ledger

in /bft/client

node enrollAdmin.js node registerUser.js

run pipeEdge

in /bft/pipeEdge/app choose system size files. e.g. edge_server10 with 10 edge servers. run: ./edge_server10.py

pipeedge's Projects

anp_backdoor icon anp_backdoor

Codes for NeurIPS 2021 paper "Adversarial Neuron Pruning Purifies Backdoored Deep Models"

awm icon awm

Github repo for One-shot Neural Backdoor Erasing via Adversarial Weight Masking (NeurIPS 2022)

lucid-ddos icon lucid-ddos

A Practical, Lightweight Deep Learning Solution for DDoS Attack Detection

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.