Social Icons

Showing posts with label smart contract. Show all posts
Showing posts with label smart contract. Show all posts

Monday, December 02, 2019

BOILERPLATE : What does this mean in the computing context?

Well,this is going to be a short post about a general info of what Boiler plates means in the computing context.Recently I came across this term for the first time as I read this paper "SHOULD CODE BE LAW? SMART CONTRACTS, BLOCKCHAIN, AND BOILERPLATE" by Jeff Lingwall and Ramya Mogallapu. Then further exploring about this term simply refers to sections of code that have to be included in many places with little or no alteration. It is often used when referring to languages that are considered verbose, i.e. the programmer must write a lot of code to do minimal jobs.

More simply  : Any routine contract document would invariably be similar for most of its part except for the names and date changes.This similar part is the Boilerplate meaning it’s the same for everyone who gets that contract, with only a few changes.

Saturday, November 02, 2019

HYPERLEDGER FABRIC ON UBUNTU 18.04 LTS : INSTALLATION STEPS WITH TERMINAL COMMANDS

Hyperledger is an umbrella project of open source blockchains and related tools, started in December 2015 by the Linux Foundation, and has received contributions from IBM, Intel and SAP Ariba, to support the collaborative development of blockchain-based distributed ledgers.The following post ahead will see through the screenshots and steps for installation of Hyperledger Fabric on Ubuntu 18.04 LTS. The installation basically first creates the required environs and then the actual installation of.

The actual terminal history I got after the installation is placed below.Between 11-13 terminal commands,if you get an error,please reboot and proceed.

    1  sudo apt-get update
    2  sudo apt-get install curl
    3  sudo dpkg --configure -a - i ran this owing to an error in between
    4  sudo apt-get install curl
    5  sudo apt --fix-broken install - i ran this owing to an error in between
    6  sudo apt-get install curl
    7  sudo apt-get install npm
    8  sudo apt-get install docker
    9  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
   10  sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
   11  apt-cache policy docker-ce - might need a reboot if error seen
   12  sudo apt-get install -y docker-ce
   13  docker info
   14  sudo docker info
   15  sudo apt-get install -y docker-ce
   16  sudo apt-get install docker-compose
   17  sudo apt-get upgrade
   18  sudo curl -sSL https://goo.gl/6wtTN5 | sudo bash -s 1.1.0
   19  history
   20  sudo chmod 777 -R fabric-samples
   21  cd fabric-samples/first-network
   22  sudo ./byfn.sh generate
   23  sudo ./byfn.sh up


The following applications and software's need to be installed first for Hyperledger Fabric:

  • CURL
  • GO Programming Language
  • Docker
  • Docker Compose
  • Node.js Runtime
  • NPM
  • PYTHON

The following is the set of commands used for the entire installation.These commands are followed by the respective screen shots of the executed commands.


















So...all good and the fabric is installed...

Wednesday, July 17, 2019

Truffle Suite: Tools for Smart Contracts installation in UBUNTU 18.04 LTS

The following sets of screen shots show the Ubuntu installation part and a sample smart contract execution of Truffle,a personal blockchain for Ethereum development one can use to deploy contracts, develop  applications, and run tests.:

First command is to install npm
 The next screen shows installation of npm
 now we use npm to install truffle
 make a directory...I made a directory truffleproject as seen below:
 We also need to install atom...a code editor..available at atom.io
 In case of Ubuntu,download the .deb file from site
 Install atom

 Now download a sample smart code project metacoin
 Run Atom
 Open project
 Contracts...click
 choose Metacoin
 Run the code...
 

Wednesday, June 05, 2019

Cryptocurrency crimes and Blockchain Technology : Central Academy for Police Training(CAPT) Bhopal

The presentation was given at the Central Academy for Police Training(CAPT) Bhopal on 30 May 2019.The presentation covers an overview of what Blockchain technology is and how cryptocrimes are emerging off late with challenges to Law enforcement agencies.











Saturday, February 02, 2019

Test Ether Faucet : "Hello world" kind SMART CONTRACT

1.       Smart Contracts are self-executing contractual states, stored on the blockchain, which nobody controls and therefore everyone can trust.Continuing ahead with the earlier post wherein we created few test ethers from the ropsten test network and then transferred few back to create some transactions.In this post we move further and create a small smart contract.

First move to https://faucet.metamask.io/

Once you connect the same with your account,your will find an open code by default.Since just the beginning,we simply delete and create a fresh new page to insert the contract code in as seen below :

 Blank page as seen below :



Find the code of the file faucet.sol

 copy the code...and save the file as faucet.sol
 code pasted

 Now the time to RUN
 Do a small change...amend the solidity program version like I have done to 5.1 and then also it asks to amend public to external
 Followed by submit
 Now time to deploy the same....
 











Powered By Blogger