Skip to content
encointer node and cli client
Rust Other
  1. Rust 99.0%
  2. Other 1.0%
Branch: master
Clone or download
Pull request Compare This branch is 48 commits ahead, 34 commits behind scs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
client
doc
host_calls
runtime
scripts
sr-tee-io
src
substratee-executor
.gitignore
.gitlab-ci.yml
Cargo.lock
Cargo.toml
Jenkinsfile
LICENSE
README.md
build.rs

README.md

encointer-node

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

PoC1

Goal: show the entire flow at live demos

Simplifications for PoC1 (with respect to whitepaper)

  • ignore geoposition
  • ignore exact time (Demonstration Speaker can warp time to next phase when people are ready)
  • ignore previous encounters at meetups
  • trivial assignment of meetups (everyone in same meetup)
  • 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

This implementation is based on substraTEE project. The cli client is based on substrate-api-client

Building

Install Rust:

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

Install required tools:

./scripts/init.sh

Build all native code:

cargo build

Run Node

You can start a development chain with:

cargo run -- --dev

Additional CLI usage options are available and may be shown by running cargo run -- --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
You can’t perform that action at this time.