IonBlock-Sdk-Paasmer

How to Use the IonBloc SDK

ManagementTeamMouli1

Srinidhi Murthy

What is Block Chain?

A blockchain – originally block chain – is a distributed database that is used to maintain a continuously growing list of records, called blocks. Each block contains a timestamp and a link to a previous block. A blockchain is typically managed by a peer-to-peer network collectively adhering to a protocol for validating new blocks. By design, blockchains are inherently resistant to modification of the data. Once recorded, the data in any given block cannot be altered retroactively without the alteration of all subsequent blocks and a collusion of the network majority. Functionally, a blockchain can serve as “an open, distributed ledger that can record transactions between two parties efficiently and in a verifiable and permanent way. The ledger itself can also be programmed to trigger transactions automatically.”

Blockchains are secure by design and are an example of a distributed computing system with high Byzantine fault tolerance. Decentralized consensus has therefore been achieved with a blockchain. This makes blockchains potentially suitable for the recording of events, medical records, and other records management activities, such as identity management, transaction processing, and documenting provenance.

IonBloc

ionBlocIonBloc Data flow and usage

IonBloc is our version of Open source Ethereum Blockchain network that can be setup as a public production implementation or a private test implementation depending on client needs.

In an IoT network, the blockchain can keep an immutable record of the history of smart devices. This feature enables the autonomous functioning of smart devices without the need for centralized authority. Thus, blockchain opens the door to a series of IoT scenarios that were remarkably difficult, or even impossible to implement without it.

By leveraging blockchain, IoT solutions can enable secure, trust less messaging between devices in an IoT network. In this model, the blockchain will treat message exchanges between devices like financial transactions in a Bitcoin network. To enable message exchanges, devices will leverage smart contracts which then model the agreement between the two parties.

Using blockchain will enable true autonomous smart devices that can exchange data, or even execute financial transactions, without the need of a centralized broker. This type of autonomy is possible because the nodes in the blockchain network will verify the validity of the transaction without relying on a centralized authority.

Installation:

The IonBloc SDK allows for a seamless connection to our private Blockchain. Here’s how you can do it. You need to have a Raspberry PI 3 with a 16GB SD card and running the latest Raspbian OS. Also, you need to have a stable high speed Internet connection (500 kbps at a minimum)

  • Download the Zip file from Github or execute a git clone command on our repository.
  • Extract and Install the SDK using the Installation script.
  • Some of the necessary support libraries are installed and you are taken to a GETH console.

Once you are in the GETH console,

  • Create a new account. (Noted down the password)
  • Provide our Admin Enode address and Pair
  • That’s it you are connected to our private Block Chain.

Now the possibilities are endless, but to get you started we have given a sample code and procedure to create contracts to blink an LED connected to a GPIO pin on the R-PI.

You can create contracts which have more features, which can read sensors, turn on actuators, monitor sensors etc.
IonBloc SDK is just the starting point … the tip of the iceberg. Some of the more advanced use cases can be found in

IonBloc SDK is just the starting point … the tip of the iceberg. Some of the more advanced use cases can be found in

  • Industrial and manufacturing for improving monitoring and efficient “Just in Time” (JIT) processes.
  • Connected and Driverless vehicles where every vehicle becomes a node and there can be an efficient vehicle to vehicle communication.
  • Public infrastructure and smart cities: Smart devices are already being used to track the health of bridges, roads, power grids etc. Blockchains can be used to interconnect these to share efficiencies and to conduct maintenance, forecast usage trends for power usage, pollution etc.

We have given a limited set of features to create a working POC that can be later developed into fully fledged modules. There are many more features that can be added as a part of customization for specific requirements.
We can do a lot more with IonBloc (some of the features are present in the data flow diagram).

Please feel free to contact us at the mailto:support@paasmer.co for any information or customization.