Coder Social home page Coder Social logo

ethereum-poc's Introduction

Blockchain Transactions

The purpose of this project is to demonstrate the ability to record identity-related transactions on a private blockchain. An initial idea was to record actions or events associated with entitlements. However, a more pertinent scenario is to record an identity governance review on the blockchain.

The Ethereum Project seems like a good place to start since it supports so called "smart contracts" and was designed for uses other than pure digital cash transactions such as Bitcoin. I chose the Golang implementation, go-ethereum.

Ethereum Quick Start

See the wiki pages for this repostitory for more detail: wiki pages.

Quick bash script to start go-ethereum. The default ports are fine.

RPC Port: default: 8545
Port default: 30303

# geth.sh
# Fetch local IP address into a variable.
MY_IP=$(ip addr list enp0s25 | grep "inet " | cut -d' ' -f6 | cut -d/ -f1)

# --testnet and --dev are mutually exclusive
~/src/ethereum/go-ethereum/build/bin/geth \
  --testnet --identity "IGBlock" \
  --rpc --rpcaddr "$MY_IP" --rpccorsdomain "*" \
  --nodiscover --rpcapi "db,eth,net,web3" console

This creates a blockchain on the Ethereum TEST-NET. It is possible to create a private blockchain as well using the --networkid 1999 switch. See Setting up a local private testnet for more detail.

REST Client

Since go-ethereum supports a JSON-RPC interface, I use the Chrome DHC extension (similar to Postman) as a RESTful client.

DHC

Mist

Ethereum also supports a rich, native client based on Meteor called Mist. You may recognize Meteor as the Rocket.Chat native application is based on it as well.

To get Mist to connect to your private blockchain, use the --rpc command line switch, e.g.

Mist.exe --rpc http://10.45.14.31:8545

Windows users may set up a shortcut for the Mist application.

Shortcut

Here you can see the blockchain and the Ether that has been "mined" so far.

Mist

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.