Installing the Ethereum Network

The Trade Control network is built on smart contracts running on the Ethereum Virtual Machine. To run the network for testing or learning, you will need local instances of Ethereum and Sql Server.

Networks

Test Environment

Public Network

Infura (or something similar)

Dependencies

Setup

install the latest release - tcNetwork.zip

For live environments, you just must configure a single node on the public network.

The following explains how to install and configure a supply-chain of nodes for the tutorial.

Database

Firstly, we create a simple supply chain in the form Retail -> Secondary Industry -> Primary Industry. Because we will be simulating the actions of three separate business entities, it may seem more complicated than it is. In a live environment you would only interact with the network from the vantage of a single entity.

  1. Create three databases: tcTHEBUS, tcPLAPRO and tcSTOBOX with corresponding 64bit ODBC data sources.
  2. Configure each database using the node installer with a different business name for each (e.g. THE BUSINESS, PLASTICS PROVIDER, THE STORAGE BOX COMPANY). Accept the other defaults, including the Basic Configuration page.
  3. Install the BOM Tutorial into tcTHEBUS, Activities option only.
  4. Open the client and for each database set up a connection.
  5. Optionally, copy the Office interface into two additional folders and run the client separately for each business. Change the Application Titles to facilitate switching businesses across the supply chain.
  6. Connect to tcPLAPRO and in Organisations, Quick Entry, add account THE BUSINESS as a Customer, specifying payment terms (COD etc) and Standard Rate Vat. Then connect to tcSTOBOX and add THE BUSINESS as a supplier.

Account Codes do not have to match because each node maps its internal codes to Externally Owned Accounts (EOA).

Consortium

Secondly, we connect the supply chain together using Ethereum.

Ganache PK

Network Account

Add Consortium Members

Here is the STORAGE BOX COMPANY instance as well:

Add Consortium Members

Make sure the keys are correct because the blockchain is immutable. An error at this stage would involve de-activating the account and re-creating it with a new code.

Transactions

Org Edit