Setting up a local Tobalaba-like Secret Store cluster with ease.
Warning: Here, the Secret Store nodes are validator nodes too (for simplicity), which should not be the case ideally.
Primary: Adam Nagy (@ngyam)
chainspec folder
: chainspec filesnetwork_local_tobalaba folder
: scripts and settings for a local Tobalaba-like Secret Store cluster:- 3 nodes configured to connect with each other (alice, bob and charlie)
- 3 accounts
- 3 separate db-s
- start/stop/clear/fund scripts
- Place your Parity binary to project root
- Rev up the nodes with:
You should see in the logs that your nodes are connected, having 2 peers:
cd ss_cluster_local_tobalaba ./start.sh
2018-10-18 14:40:57 IO Worker #3 INFO import 2/25 peers 78 KiB chain 229 KiB db 0 bytes queue 11 KiB sync RPC: 0 conn, 0 req/s, 0 µs 2018-10-18 14:40:57 IO Worker #2 INFO import 2/25 peers 78 KiB chain 229 KiB db 0 bytes queue 11 KiB sync RPC: 0 conn, 0 req/s, 0 µs 2018-10-18 14:40:57 IO Worker #1 INFO import 2/25 peers 78 KiB chain 229 KiB db 0 bytes queue 11 KiB sync RPC: 0 conn, 0 req/s, 0 µs 2018-10-18 14:41:27 IO Worker #0 INFO import 2/25 peers 78 KiB chain 229 KiB db 0 bytes queue 11 KiB sync RPC: 0 conn, 0 req/s, 0 µs
- When you are done:
./stop.sh
- If you need to clean chain db
./clear.sh
Sending money from pre-funded rich account, 0x00a329c0648769a73afac7f9381e08fb43dbea72
:
./fund.sh account1 account2 ...
Each node writes to separate log files too. E.g. for node "alice" it can be seen in:
tail -f ss_cluster_local_tobalaba/db.alice/parity.log
Any kind of suggestions/improvements are welcome.
When contributing to this repository, please first discuss the change you wish to make via issues
before making a change.
As for everything else in the project, the contributions to the repo are governed by our Code of Conduct.
For more information, check out Parity's..
- local PoA tutorial: https://wiki.parity.io/Demo-PoA-tutorial
- Secret Store configuration wiki page: https://wiki.parity.io/Secret-Store-Configuration
- Secret Store tutorial: https://wiki.parity.io/Secret-Store-Tutorial-overview