Social Icons

Saturday, November 23, 2019

BLOCKCHAIN WORKSHOP AT G D GOENKA UNIVERSITY : REDSET-2019

The 5th International Conference on Recent Developments in Science, Engineering and Technology (REDSET 2019) organized at G D Goenka University, Sohna Road,Gurugram, focused on experimental, theoretical and application aspects of innovations in Data Science and Analytics. A one day workshop on BLOCKCHAIN TECHNOLOGY was organized by me as part of the conference.

Workshop course material at 


Few pictures from the event :







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

Thursday, October 10, 2019

GANACHE Blockchain installation UBUNTU 18.04 LTS

Ganache is a personal blockchain for Ethereum development one can use to deploy contracts, develop  applications, and run tests. It is available as both a desktop application as well as a command-line tool. Ganache is available for Windows, Mac, and Linux.This post will share few commands and screen shots to install Ganache in GUI mode in Ubuntu 18.04 LTS. It is an ethereum client which one can use for Ethereum development and is part of Truffle ecosystem. Ganache is used for the development of DAPP and once  developed and tested on the ganache,it can be deployed on any DAPP on ethereum client like geth or parity.


 Second step : Click at the Download button.
 Third step : chmod a+x ganache**** to make it executable
 Fourth step as above...simply run the executable
 Its ready to go...








Monday, October 07, 2019

SUBLIME editor installation in UBUNTU 18.04 LTS

1. Sublime Text is a proprietary cross-platform source code editor with a Python application programming interface. It natively supports many programming languages and markup languages, and functions can be added by users with plugins, typically community-built and maintained under free-software licenses.The installation part of the same on Ubuntu will just take few commands as seen below and the sublime editor will be ready to go.The commands are listed below : 

First step

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
(click on image to enlarge)
 Second step


echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

(click on image to enlarge)


Third step

sudo apt update 

(click on image to enlarge)


Fourth step

sudo apt install sublime-text

(click on image to enlarge)

and you are ready to work on sublime

(click on image to enlarge)

Proof of Sleep : Mind Boggling Consensus Algorithm

Introduction

Consensus is the backbone of the Bitcoin technology and is the reason for the Bitcoin to be widely famous since it mitigates the need for any third party mediation. Blockchain domain has around forty plus consensus algorithms as on date with many variants of Proof-of-Work ,Proof of Stake etc. 

"Proof of Sleep" consensus algorithm has been proposed to remove all existing energy dissipation issues in reaching consensus. This will also resolve complex cryptographic algorithms like DAG,Proof-of-Capacity, Proof-of-Burn etc at the click of a button. Welcome to the world of "Proof of Sleep", a new consensus algorithm wherein no energy issues and complexities are involved.

"Algorithm is based on the node admin in P2P sleeping time and essential vital parameters" as per the designer team based in Noida.

How it works?

The participating node admin will go to sleep as and when the need to attain consensus arises. More the number of people register at one node and more they sleep, the consensus is designed to get stronger and expedited. Thereafter the node breathe vitals and snoring decibels will be syncd with the "pre-sleep division" working in Washington, DC. The sole purpose of this division is to use the precog(nitive) potential of this node to prevent waking-up. The breathe vitals will include the exhale/inhale composition of gases. Once syncd,the cryptographic hash of the dreams will be recorded to generate an ultimate unique 4096 bit key. This will be back linked to the nearest person sleeping to this node which will be decided by the Open Shortest Path First (OSPF),an established routing protocol.

Completely based on dreams,the node thus has to fulfill certain QRs before being established as a node. The QRs for participation as a node have been submitted to ISO 14000 ,a series of environmental management standards.

Hyperledger ,the multi-project open source collaborative effort hosted by The Linux Foundation has taken keen interest to explore this. The Linux foundation plans to replace Apache Kafka in Hyperledger Fabric and RBFT in Hyperledger Indy with Proof of Sleep.

Satoshi ACTIVE again

Meanwhile as per fresh inputs received Satoshi Nakamoto's email id satoshin@gmx.com has got active this Friday again. Thus after a decade of sleep,Satoshi Nakamoto has consented to replace Proof of work with Proof of Sleep. This shows the kind of buzz and confidence this new consensus algorithm.  "Now that I had been sleeping over a decade,this algorithm fits fine and I intend replacing my proof of work with Proof of sleep. This will ensure that even as I sleep again, I would contribute to all the consensus taking place around " Satoshi Nakamoto mentioned in email, hinting at his sleep and vanishing act again.

Conclusion

Proof of Sleep is a turning point in the evolving domain of Blockchain and its consensus algorithms. The existing consensus algorithms have faced energy wastage issues across the globe. This path breaking algorithm is likely to shutdown all mining farms and pave way for a green consensus. Proof of sleep will bring the peaceful stone age earth times since maximum participating nodes will be in sleep mode. With maximum nodes sleeping,it couldnt have been better for a peaceful,no war,no ruckus earth,



[ NOTHING SERIOUS ABOUT THIS POST PLEASE : EXCUSE ME IF YOU HAVE SERIOUSLY READ THIS]

Sunday, September 22, 2019

Installation Cupcarbon : Smart City and Internet of Things Wireless Sensor Network simulator

1.    CupCarbon is a Smart City and Internet of Things Wireless Sensor Network (SCI-WSN) simulator. Its objective is to design, visualize,debug and validate distributed algorithms for monitoring,environmental data collection, etc., and to create environmental scenarios such as fires, gas, mobiles, and generally within
educational and scientific projects. Not only it can help to visually explain the basic concepts of sensor networks and how they work; it also supports scientists to test their wireless topologies, protocols, etc.

2.   Although otherwise an easy installation,but with the Java changes effecting 16 Apr 2019 wherein the release of Oracle Java 8 update 211 / 212 – also known as Oracle’s first ‘not free for production use’ patchset,the installation instructions are little changed.

3.   This post will bring you simple set of commands executed with screenshots to run this awesome simulator CUPCARBON.The simulator is available for download at http://cupcarbon.com/download.html .

4.  Once downloaded the following commands will get you the desktop with cupcarbon running. My friend Ayaz helped me out in these.

$ sudo apt-get update
 $ sudo apt-get upgrade
 next we need to check if java is installed by checking the version by the following command :

$ java -version

If there is no java installed we need to install by typing the following :

$ sudo apt install openjdk-11-jre-headless
 Once installed check the output and we should get the following :

 Now we need to install javafx with the following command :

$ sudo apt install openjfx
 Once installed,we can query with the following command and get the expected output as seen below :
$ dpkg-query -L openjfx

/usr
/usr/share
/usr/share/doc
/usr/share/doc/openjfx
/usr/share/doc/openjfx/TODO.Debian
/usr/share/doc/openjfx/changelog.Debian.gz
/usr/share/doc/openjfx/copyright
/usr/share/openjfx
/usr/share/openjfx/lib
/usr/share/openjfx/lib/javafx.properties
/usr/share/openjfx/lib/javafx.base.jar
/usr/share/openjfx/lib/javafx.controls.jar
/usr/share/openjfx/lib/javafx.fxml.jar
/usr/share/openjfx/lib/javafx.graphics.jar
/usr/share/openjfx/lib/javafx.media.jar
/usr/share/openjfx/lib/javafx.swing.jar
/usr/share/openjfx/lib/javafx.web.jar

Now move to the location where you have downloaded the cupcarbon.jar file.Unzip the same and change the execution properties as

$ chmod +x cupcarbon.jar

Once done,we need to execute and run the carbon.jar file by defining the route and javafx

$ java --module-path /usr/share/openjfx/lib --add-modules=javafx.controls,javafx.fxml,javafx.base,javafx.media,javafx.web,javafx.swing -jar '/home/smartbuilding/Downloads/cupcarbon/CupCarbon/cupcarbon.jar'

Here in the above command you need to define and enter the path which is being used in ur PC.In my case the path is home/smartbuilding/Downloads/cupcarbon/CupCarbon/cupcarbon.jar

The above should run successfully and give you the below screen that runs the cupcarbon simulator



Thanks Ayaz bhai....for the inputs.He is available at https://ayaztechy.blogspot.com/

Friday, September 06, 2019

BLOCKCHAIN BASICS & CRYPTOCRIMES CASE TAKES : Central Academy for Police Training(CAPT) Bhopal

Sharing my presentation on "BLOCKCHAIN BASICS & CRYPTOCRIMES CASE TAKES",taken at CAPT(Central Academy of Police Training),Bhopal on 31Aug 2019. The presentation after building upon basics of Blockchain and Cryptocurrencies takes on few known case studies including the Mt Gox Exchange theft and the role played by Kim Nilsson



Powered By Blogger