Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Go Ethereum | 42,486 | 431 | 1,920 | an hour ago | 655 | September 15, 2022 | 310 | lgpl-3.0 | Go | |
Official Go implementation of the Ethereum protocol | ||||||||||
Lnd | 6,952 | 14 | 80 | 13 hours ago | 39 | November 24, 2021 | 643 | mit | Go | |
Lightning Network Daemon ⚡️ | ||||||||||
Polkadot | 6,835 | 1 | 44 minutes ago | 2 | May 21, 2022 | 644 | gpl-3.0 | Rust | ||
Polkadot Node Implementation | ||||||||||
Quorum | 4,464 | 2 | a day ago | 200 | March 14, 2022 | 30 | lgpl-3.0 | Go | ||
A permissioned implementation of Ethereum supporting data privacy | ||||||||||
Lnbook | 2,599 | a month ago | 195 | cc-by-sa-4.0 | AsciiDoc | |||||
Mastering the Lightning Network (LN) | ||||||||||
Raiden | 1,853 | 6 | 2 | 8 months ago | 82 | January 13, 2022 | 308 | other | Python | |
Raiden Network | ||||||||||
Tezos | 1,496 | a year ago | 22 | |||||||
Mirror of the release branches for Tezos, a self-amending cryptographic ledger | ||||||||||
Maskbook | 1,448 | an hour ago | 44 | agpl-3.0 | TypeScript | |||||
The portal to the new, open Internet. ([I:b]) | ||||||||||
Starcoin | 1,334 | 8 hours ago | 149 | apache-2.0 | Rust | |||||
Starcoin - A Move smart contract blockchain network that scales by layering | ||||||||||
Joystream | 1,293 | an hour ago | 593 | gpl-3.0 | Rust | |||||
Joystream Monorepo |
This repository will not be updated. The repository will be kept available in read-only mode.
Read this in other languages: 한국어
Welcome to Part 1 of building a Blockchain Application. This first pattern is part of a larger application that uses blockchain as a back-end to record fitness activities and manage transactions such as handling acquisition of products via fitcoins. The first step in this series is focused on creating and deploy a Hyperledger Blockchain Network using the Hyperledger Fabric Node SDK. We have two participants, namely a buyer and seller/shop peers. The buyer is the one who downloads the application and subsequently registers his steps on the blockchain. The seller is the one who verifying that the buyer has the right number of fitcoins to make purchases. A developer who has a lite account can run this application locally or adapt it to the IBM Blockchain Starter Plan.
This accomplishes the following:
a. Clean up system by removing any existing blockchain docker images
b. Generate certificates
crypto-config.yaml
(Crypto configuration file) defines the identity of "who is who". It tells peers and orderers what organization they belong to and what domain they belong to.c. Create Peers, Orderers and Channel
configtx.yaml
file initializes a blockchain network or channel and services with an Orderer Genesis Block which serves as the first block on a chain. Additionally, membership services are installed on each channel peer (in this case, the Shop and Fitcoin Peers).d. Build docker images of the orderer, peers, channel, network
export FABRIC_CFG_PATH=$(pwd)
chmod +x cryptogen
chmod +x configtxgen
chmod +x generate-certs.sh
chmod +x generate-cfgtx.sh
chmod +x docker-images.sh
chmod +x build.sh
chmod +x clean.sh
./build.sh
Make sure the 'LOCALCONFIG' environment variable is unset if you are re-running this step after running the test below
unset LOCALCONFIG
There 2 options to install chaincode on the peer nodes and start the Blockchain network. You can select any one of the following:
docker-compose -p "fitcoin" -f "docker-compose.yaml" up -d
docker-compose -p "fitcoin" -f "docker-compose-couchdb.yaml" up -d
You will see the results of running the script
Command
docker logs blockchain-setup
Output:
Register CA fitcoin-org
CA registration complete FabricCAServices : {hostname: fitcoin-ca, port: 7054}
Register CA shop-org
CA registration complete FabricCAServices : {hostname: shop-ca, port: 7054}
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"shop-peer","grpc.default_authority":"shop-peer"}
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"fitcoin-peer","grpc.default_authority":"fitcoin-peer"}
Default channel not found, attempting creation...
Successfully created a new default channel.
Joining peers to the default channel.
Chaincode is not installed, attempting installation...
Base container image present.
info: [packager/Golang.js]: packaging GOLANG from bcfit
info: [packager/Golang.js]: packaging GOLANG from bcfit
Successfully installed chaincode on the default channel.
Successfully instantiated chaincode on all peers.
Execute the following commands to to test the network by performing the invoke
and query
operations on the network:
cd configuration
export LOCALCONFIG=true
node config.js
cd ..
cd test/
npm install
If you are using LevelDB, then run the following command:
node index.js
If you are using CouchDB, then run the following command:
node indexCouchDB.js
This code pattern is licensed under the Apache Software License, Version 2. Separate third party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 (DCO) and the Apache Software License, Version 2.