Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.

encointer/encointer-node-pre2.0.0

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

encointer-node

Encointer-node is the implementation of the encointer.org blockchain. Use this together with the mobile phone app encointer-app

PoC2

Goal: show the entire flow from bootstrapping to regular ceremonies at live demos

Simplifications for PoC2 (with respect to whitepaper)

  • ignore geoposition
  • ignore exact time (Demonstration Speaker can warp time to next phase when people are ready)
  • no anonymity, only pseudonymity
  • use srml_balances for token
  • tx fees instead of POET
  • permissioned consensus instead of dPOET
  • no chat functionality in app
  • assignments on-chain instead of IPFS

The cli client is based on substrate-api-client The next PoC will be based on substraTEE project.

Building

Install Rust:

curl https://sh.rustup.rs -sSf | sh

Install required tools:

./scripts/init.sh

Build all native code:

cargo build --release

Run Node

You can start a development chain with:

./target/release/encointer-node --dev --ws-port 9979 --execution native -lruntime=debug 2>&1 | grep --color=always -e "^" -e 'DEBUG runtime'

Additional CLI usage options are available and may be shown by running ./target/release/encointer-node --help.

Run Client

encointer comes with a cli application that allows interaction with the chain

encointer-node/client> cargo build --release
encointer-node/client> ../target/release/encointer-client 127.0.0.1:9944 transfer //Alice 5GziKpBELV7fuYNy7quQfWGgVARn8onchS86azuPQkFj9nEZ 1000000
encointer-node/client> ../target/release/encointer-client 127.0.0.1:9944 list_participant_registry
encointer-node/client> ../target/release/encointer-client 127.0.0.1:9944 list_meetup_registry
encointer-node/client> ../target/release/encointer-client 127.0.0.1:9944 list_witnesses_registry
encointer-node/client> ../target/release/encointer-client --help

The master of ceremony can play fast-forward for demo purposes (ceremonies only happen ~monthly. not good for demos)

encointer-node/client> ./encointer-client 127.0.0.1:9944 next_phase

To run a full demo (you may need to fix ports in the scripts if you change them):

encointer-node/client> ./bootstrap_demo_currency.sh
encointer-node/client> ./demo_poc1.sh

About

encointer node and cli client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 90.1%
  • Shell 8.5%
  • JavaScript 1.4%