#5 Whisper and Swarm protocols in Ethereum

Whisper : 

It’s a light-weight protocol that can be used to communicate between D-Apps. It’s ideal for limited message transfer that would last long for limited time and it  also provides encryption during message transfer.

Configuring Whisper is  only available via geth console(consumable via Web3) ,but not with solidity (might come up in future ).

Usage : https://github.com/ethereum/wiki/wiki/Whisper-Overview

Swarm :

It’s a distributed de-centralized storage mechanism. Storing large piece of data is always costly in blockchain and Swarm provides a decentralized network where you could store all the large piece of information and get back the hash and push the hash to blockchain instead dumping all of the data to the blockchain. IPFS and Filecoin are other example of system like swarm.

Usage :  https://swarm-guide.readthedocs.io/en/latest/installation.html


#Etherum -Creating A Simle DApp with Truffle – Etherum – Web3 -Part 1

In this article we will create a sample D-App application over Etherum using Truffle Framework .

What we will build at the end of this article ?

We will build a simple contract with solidity that has 3 functions

a) IncreaseBalance



We would deploy the contract over  test Etherum network and communicate with the contract with Javascript via web3. We would make use of truffle framework to achieve the same.

 Installation/Set up :

What all you need to develop a D-App ?

Make sure you have node(npm) installed.

1.Get truffle via command line.

npm install truffle

2. Get Etherum test client to deploy our contract locally.This is more of a test newtork

npm install -g ethereumjs-testrpc

3. Get Web3 and truffle contract to communicate with our deployed contract with javascript.

npm install truffle-contract


We are all set to write our first contract with truffle and I would be using Visual code as an IDE to write  my contract. We will see in the next article to compile,migrate and deploy our contract to test etherum network.