Code Monkey home page Code Monkey logo

fabric-chaincode-java's Introduction

Hyperledger Fabric Shim for Java chaincode

This is a Java based implementation of Hyprledger Fabric chaincode shim APIs, which enables development of chaincodes using Java language. The following instructions are intended for a contributor or early adopter that needs to be able to build and test the Java chaincode shim, docker image and protobuf artifacts.

Application developers interested in developing smart contracts (what we call chaincode) for Hyperledger Fabric should read the tutorial in TUTORIAL.md file and visit Chaincode for developers <https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html>__.

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.

Folder structure

The "fabric-chaincode-protos" folder contains the protobuf definition files used by Java shim to communicate with Fabric peer.

The "fabric-chaincode-shim" folder contains the java shim classes that define Java chaincode API and way to communicate with Fabric peer.

The "fabric-chaincode-docker" folder contains instructions to the build hyperledger/fabric-javaenv docker image.

The "fabric-chaincode-example-gradle" contains an example java chaincode gradle project that includes sample chaincode and basic gradle build instructions.

Prerequisites

  • Java 8
  • gradle 4.4

Build shim

Clone the fabric shim for java chaincode repo.

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

Build and install java shim jars (proto and shim jars).

cd fabric-chaincode-java
gradle clean build install

Build javaenv docker image, to have it locally.

gradle buildImage

fabric-chaincode-java's People

Contributors

c0rwin avatar christo4ferris avatar denyeart avatar gennadylaventman avatar jimthematrix avatar jwagantall avatar muralisrini avatar rameshthoomu avatar ryjones avatar

Watchers

 avatar  avatar

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.