LukChain

Generalised BlockChain

Currently uses nightly features

Config

To use LukChain, a config.toml file needs to be setup to define different user profiles. This should follow the following structure:

``` [config] [[profiles]] blocksize = 10 lookupaddress = "127.0.0.1:8181" lookupfilter = "user" userlocation = "user1.json" bc_location = "blockchain1.bin"

[[profiles]] blocksize = 20 lookupaddress = "127.0.0.1:8181" lookupfilter = "miner" userlocation = "user2.json" bc_location = "blockchain2.bin" ```

Each field can be ommitted if not needed. The use of each field in the program is:

Examples

Chat

To run with cargo: cargo run --example chat -- --role lookup

Chat USAGE: chat [OPTIONS] --log LEVEL [INPUT] FLAGS: -h, --help Prints help information OPTIONS: --log LEVEL Sets logging level --role ROLE Sets the role of the user in the network --config NUMBER Sets chosen config (default: 0) ARGS: <INPUT>