Samples for Hyperledger Fabric
Find a file
Gaurav Giri 02368e99b0 SBE Improvements and Referencing SBE in fabric-samples readme and test-network
Signed-off-by: Gaurav Giri <girigaurav@gmail.com>
2020-08-09 14:58:18 -04:00
.github FAB-17777 Create basic settings.yaml (#165) 2020-04-22 08:09:56 +02:00
asset-transfer-basic Restructure the basic javascript application to use common code. (#281) 2020-08-06 22:07:54 +02:00
asset-transfer-ledger-queries asset-transfer-ledger-queries java application. (#280) 2020-08-06 12:00:26 -04:00
asset-transfer-private-data JS App workflow for private-data asset transfer, Chaincode fixes (#252) 2020-08-06 14:23:11 -04:00
asset-transfer-sbe SBE Improvements and Referencing SBE in fabric-samples readme and test-network 2020-08-09 14:58:18 -04:00
asset-transfer-secured-agreement/chaincode-go Remove images folder from fabric-samples. (#266) 2020-07-25 19:43:22 +02:00
chaincode Revert "Remove Typescript References (#258)" (#261) 2020-07-23 17:06:57 +02:00
chaincode-docker-devmode [FAB-17121] Use new bootstrap config in orderer 2019-11-26 11:41:19 -08:00
ci JS App workflow for private-data asset transfer, Chaincode fixes (#252) 2020-08-06 14:23:11 -04:00
commercial-paper Revert "Remove Typescript References (#258)" (#261) 2020-07-23 17:06:57 +02:00
fabcar Bump elliptic from 6.5.2 to 6.5.3 in /fabcar/javascript (#273) 2020-08-05 13:25:32 -04:00
high-throughput [FAB-17957] Delete --tls extra arguments from fabric-samples (#198) 2020-06-04 16:49:29 -04:00
interest_rate_swaps Correct swap JSON payload in interest_rate_swaps example (#279) 2020-08-05 13:22:21 -04:00
off_chain_data Add missing Copyright in some files (#163) 2020-05-19 15:50:48 +01:00
scripts Add CHANGELOG.md with script to update it (#162) 2020-05-19 15:52:13 +01:00
test-application/javascript Restructure the basic javascript application to use common code. (#281) 2020-08-06 22:07:54 +02:00
test-network SBE Improvements and Referencing SBE in fabric-samples readme and test-network 2020-08-09 14:58:18 -04:00
.gitignore asset-transfer-basic Java CC. Adapted from fabcar. Unit tests are attached. Integration testing conducted using test network and asset-transfer-basic application-js. 2020-07-31 09:00:12 -04:00
CHANGELOG.md Add CHANGELOG.md with script to update it (#162) 2020-05-19 15:52:13 +01:00
CODE_OF_CONDUCT.md FAB-9362 add CONTRIBUTING.md and CODE_OF_CONDUCT.md 2018-04-04 19:25:55 -04:00
CODEOWNERS Perform General Cleanup (#151) 2020-04-06 21:49:14 +02:00
CONTRIBUTING.md Fix doc link 2019-01-24 16:47:03 +08:00
LICENSE FAB-4853 initial content 2017-06-21 07:30:04 +08:00
MAINTAINERS.md Nominate Nikhil Cupta as Fabric-samples maintainer (#180) 2020-05-18 18:03:44 +02:00
README.md SBE Improvements and Referencing SBE in fabric-samples readme and test-network 2020-08-09 14:58:18 -04:00
SECURITY.md [IN-68] Add default GitHub SECURITY policy 2019-09-25 10:22:26 -07:00

Hyperledger Fabric Samples

You can use Fabric samples to get started working with Hyperledger Fabric, explore important Fabric features, and learn how to build applications that can interact with blockchain networks using the Fabric SDKs. To learn more about Hyperledger Fabric, visit the Fabric documentation.

Getting started with the Fabric samples

To use the Fabric samples, you need to download the Fabric Docker images and the Fabric CLI tools. First, make sure that you have installed all of the Fabric prerequisites. You can then follow the instructions to Install the Fabric Samples, Binaries, and Docker Images in the Fabric documentation. In addition to downloading the Fabric images and tool binaries, the instructions will make you clone the Fabric samples on your local machine.

Guide to the Fabric samples

You can use the following table to learn more about each sample, and find the corresponding tutorial or documentation.

Sample Description Documentation
Fabric test network Get started by deploying a basic Fabric network on your local machine. Using the Fabric test network
Commercial paper Explore a use case in which two organizations use a blockchain network to trade commercial paper. Commercial paper tutorial
Interest rate swaps Explore state based endorsement using a financial services use case. Setting Key level endorsement policies
Off chain data Learn how to use the Peer channel-based event services to build an off chain database for reporting and analytics. Peer channel-based event services
High throughput Learn how you can design your smart contracts to process a large volume of transactions.
Chaincode A set of sample smart contracts used by other samples and the tutorials in the Fabric documentation. Fabric tutorials
Fabcar Deprecated in favor of basic asset transfer sample

Asset transfer smart contract series

The asset transfer series provides a series of smart contracts and applications that you can use to create and transfer a generic asset using Hyperledger Fabric. However, each sample is built with different smart contract and application APIs in order to demonstrate different Fabric features. The Basic sample provides an introduction on how to write smart contracts and how to interact with a Fabric network using the Fabric SDKs. The Secured agreement sample demonstrates how to use more advanced capabilities to develop a more realistic transfer scenario.

Smart Contract Description Tutorial Smart contract languages Application languages
Basic The Basic sample smart contract that allows you to create and transfer an asset by putting data on the ledger and retrieving it. This sample is recommended for new Fabric users. Writing your first application Go, JavaScript, Typescript, Java JavaScript, Java
Ledger queries The ledger queries sample demonstrates how to deploy an index with your chaincode and issue rich queries when you are using CouchDB as your state database. Coming soon Go, JavaScript Java
Private data This sample demonstrates the use of private data collections and how the private data hash can be used to verify an agreement before executing a transfer Coming soon Go JavaScript
State-Based Endorsement This sample demonstrates the use of state-based endorsements and how the default chaincode endorsement policy can be modified for a specified Key Coming soon Go, JavaScript, Java Coming soon
Secured agreement Smart contract that uses private data, state based endorsement, and access control to establish the ownership of an asset, guarantee immutability, and securely transfer an asset with the consent of both the buyer and the owner, while keeping the asset details private. Secured asset transfer in Fabric Go Coming soon

The asset transfer series is still a work in progress. Additional smart contract and application languages are being developed. The series will also be integrated with other Fabric samples and the documentation in the near future. For more information, see the public plan for Fabric samples improvements.

License

Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.