All Projects → hyperledger → Fabric Chaincode Java

hyperledger / Fabric Chaincode Java

Licence: apache-2.0
Hyperledger Fabric Contract and Chaincode implementation for Java https://wiki.hyperledger.org/display/fabric

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Fabric Chaincode Java

mastering-blockchain
blockchain basis,logic,usage
Stars: ✭ 29 (-84.57%)
Mutual labels:  smart-contracts, hyperledger-fabric
Convector
Smart Contract Systems the easy way. Open source development framework.
Stars: ✭ 147 (-21.81%)
Mutual labels:  smart-contracts, hyperledger-fabric
Blockchain Real Estate
🚀基于区块链的房地产交易系统小模型。提供销售和捐赠功能。本项目使用Hyperledger Fabric构建区块链网络, go编写智能合约,应用层使用gin+fabric-sdk-go调用合约。前端展示使用vue+element。体验地址:http://blockchain.togettoyou.com/web
Stars: ✭ 81 (-56.91%)
Mutual labels:  smart-contracts, hyperledger-fabric
Cckit
Programming toolkit for building Hyperledger Fabric Golang on-chain (chaincode) and off-chain applications
Stars: ✭ 167 (-11.17%)
Mutual labels:  smart-contracts, hyperledger-fabric
Blockchainbooks.github.io
Blockchain Books
Stars: ✭ 139 (-26.06%)
Mutual labels:  smart-contracts, hyperledger-fabric
Sablier
The protocol for real-time finance on the Ethereum blockchain
Stars: ✭ 147 (-21.81%)
Mutual labels:  smart-contracts
Eos Contract
Tutorial on writing smart contracts on EOS EOS智能合约教程,从零开始学习EOS智能合约, DApp安全漏洞(security)及攻击实践(EOS Contract)(Powered by Itleaks)
Stars: ✭ 163 (-13.3%)
Mutual labels:  smart-contracts
Flow
Flow is a fast, secure, and developer-friendly blockchain built to support the next generation of games, apps, and the digital assets that power them 🌊
Stars: ✭ 145 (-22.87%)
Mutual labels:  smart-contracts
Peatiocryptoexchange
An open-source Crypto-Currency exchange. Peatio v3.0 Coming Soon !
Stars: ✭ 141 (-25%)
Mutual labels:  smart-contracts
Go Matrix
First version of go-MATRIX, especially for TPS optimization and AI
Stars: ✭ 187 (-0.53%)
Mutual labels:  smart-contracts
Study Blockchain Referrence
区块链学习路上的一些资料作为参考
Stars: ✭ 172 (-8.51%)
Mutual labels:  hyperledger-fabric
Ico Contracts
Ethereum smart contracts that have been used during successful ICOs
Stars: ✭ 160 (-14.89%)
Mutual labels:  smart-contracts
Cadence
Cadence, the resource-oriented smart contract programming language 🏃‍♂️
Stars: ✭ 157 (-16.49%)
Mutual labels:  smart-contracts
Cryptokernel
A SDK for implementing blockchain-based digital currencies
Stars: ✭ 146 (-22.34%)
Mutual labels:  smart-contracts
Voting
Dock governance proposals and smart contract
Stars: ✭ 172 (-8.51%)
Mutual labels:  smart-contracts
Liquidity
A high-level language for Dune Network (and Tezos) with OCaml and ReasonML syntaxes, with a decompiler from Michelson
Stars: ✭ 144 (-23.4%)
Mutual labels:  smart-contracts
Stacks
Stacks ecosystem overview.
Stars: ✭ 1,921 (+921.81%)
Mutual labels:  smart-contracts
Pivt
Helm charts for running and operating Hyperledger Fabric in Kubernetes. Previously hosted at https://github.com/APGGroeiFabriek/PIVT.
Stars: ✭ 159 (-15.43%)
Mutual labels:  hyperledger-fabric
Set Protocol Contracts
🎛 Set Protocol Smart Contracts
Stars: ✭ 151 (-19.68%)
Mutual labels:  smart-contracts
Eos Java Rpc Wrapper
Stars: ✭ 162 (-13.83%)
Mutual labels:  smart-contracts

Hyperledger Fabric Chaincode Java

Build Status Maven Central Rocket.Chat

This is a Java based implementation of Hyperledger Fabric chaincode shim APIs, which enables development of smart contracts using the Java language.

This project creates fabric-chaincode-protos and fabric-chaincode-shim jar files for developers' consumption and the hyperledger/fabric-javaenv docker image to run Java chaincode.

Getting Started

Application developers interested in developing Java smart contracts for Hyperledger Fabric should read the JavaDoc which includes download information, and links to documentation and samples.

Project structure

fabric-chaincode-protos

Contains the protobuf definition files used by Java shim to communicate with Fabric peers.

fabric-chaincode-shim

Contains the java shim classes that define Java chaincode API and way to communicate with Fabric peers.

fabric-chaincode-docker

Contains instructions to build the hyperledger/fabric-javaenv docker image.

fabric-chaincode-integration-test

Contains higher level tests for Java chaincode.

Note: in the future these should be replaced with a separate suite of Cucumber tests which run against all chaincode implementations.

examples

The following technical examples are in this repository. Please see the tutorials in the documentation

  • fabric-contract-example-gradle - Contains an example Java contract built using gradle
  • fabric-contract-example-maven - Contains an example Java contract built using maven
  • fabric-contract-example-gradle-kotlin - Contains an example Kotlin contract build using gradle (Kotlin gradle files)
  • fabric-chaincode-example-sacc - Contains an example java chaincode gradle project that includes sample chaincode and basic gradle build instructions.
  • fabric-chaincode-example-sbe - Contains an example java chaincode gradle project that includes state based endorsement

'dev' master branch builds

These 'dev' drivers are built from the master branch only, and have a version format including the date for example 2.3.1.dev.20210303. They are published to Artifactory. These can be accessed via the repository at

    maven {
        url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
    }

They can be accessed in a build file like this

dependencies {
    compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '2.3.1.dev.+'
 }

Building and testing

Make sure you have the following prereqs installed:

Note: Java can be installed using sdkman.

Clone the repository if you haven't already.

git clone https://github.com/hyperledger/fabric-chaincode-java.git

Build java shim jars (proto and shim jars) and install them to local maven repository.

cd fabric-chaincode-java
./gradlew clean build install

Note: ./gradlew clean build classes can be used instead to reduce the binaries that are built. This should be sufficient for using the local repository.

Build javaenv docker image, to have it locally.

./gradlew buildImage

Compatibility

For details on what Java runtime and versions of Hyperledger Fabric can be used please see the compatibility document.


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].