Coder Social home page Coder Social logo

camilo5972 / private-transaction-hyperledger-besu-java Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 22 KB

Private transactions using Hyperledger Besu and Java

Java 97.60% Solidity 2.40%
hyperledger hyperledger-besu web3j besu private-transactions private-blockchain blockchain orion privacy java

private-transaction-hyperledger-besu-java's Introduction

Private transactions Hyperledger Besu

Java example library with Maven for interaction with smart contract using private transactions with Hyperledger Besu. This is done using a configuration with Orion, which is responsible for managing private transactions with the Besu node. This example is based on a configuration with 3 Besu nodes and 3 Orion nodes respectively from the besu quickstart(with privacy), of which 2 are used to generate a group identifier (privacyGroupId).

Run tests

Before running the tests, the following must be configured in AppTest.java file:

private String host = "http://localhost:20000"; // Besu node IP
private String privateKey = "0xa4db817db6c69ef95682d2f9e60d46a3e6cd890f0f3d8226cade1711584fb313"; // Private key to make transactions
private String privGroupId = "LOO+4JomlfJ3Q+SlaOkxRJkN9YCLeBPdxlf2M1+oc+A="; // Privacy group ID. You need to generate your own privGroupId
private String privFrom = "A1aVtMxLCUHmBVHXoZzzBgPbW/wj5axDpW9X8l91SGo="; // Public key of the Orion node

How to generate privGroupId

To test the library you must uncomment each of the tests. Run first the test to deploy a contract, then to stamp a docuement and finally to verify. The address of the deployed contract is placed in the contractAddress variable before running the other. tests

$ mvn clean test

Medium article: https://medium.com/@camilo5972/transacciones-privadas-con-hyperledger-besu-441f0befb6dd

private-transaction-hyperledger-besu-java's People

Contributors

camilo5972 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  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.