Skip to content

Sync Component - MultiChain (EN)

This page describes how MultiChain, a permissioned Distributed Ledger Technology (DLT), is used for the Sync Component of SensRNet. It contains many links to the MultiChain documentation, which goes into detail how to initialize the blockchain. MultiChain is forked from the Bitcoin Core network.

A ledger is a system of records shared within a network. How this works is described in great detail in the network description. This is a great place to start. MultiChain is well suited for the task of sharing sensor events across a network, because it supports permissions and streams.

MultiChain permissions are used to grant and revoke send rights to validated stakeholders only. Furthermore, MultiChain streams are used to logically group events with identical keys (aggregate roots). For SensRNet we'll use multiple streams for the shared data in the network (through the Sync component). Stream examples are owner and sensor streams which contain owner en sensor events respectively.

The SensRNet sync component is built upon the NodeJS stack, and uses the Multichain RPC Interface to communicate with the MultiChain node. The sync bridge retrieves and pushes events from and to the MultiChain network.