From 4b059dff6d27fba799881f53a7f859b006c92048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Tue, 18 Jun 2019 09:30:26 +0300 Subject: [PATCH 1/3] Initial monitor node document. --- MONITOR_NODE.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 MONITOR_NODE.md diff --git a/MONITOR_NODE.md b/MONITOR_NODE.md new file mode 100644 index 0000000..84cd836 --- /dev/null +++ b/MONITOR_NODE.md @@ -0,0 +1,9 @@ +# Monitor Node Setup + +## Pre-Requisites + +## AWS EC2 Instance Setup + +## Creation of DID for Monitoring Node + +## Running Monitor Node \ No newline at end of file From edb0a73248947d8c94568725491370934868fdd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Tue, 18 Jun 2019 11:40:25 +0300 Subject: [PATCH 2/3] Updated documentation. --- MONITOR_NODE.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/MONITOR_NODE.md b/MONITOR_NODE.md index 84cd836..73b8858 100644 --- a/MONITOR_NODE.md +++ b/MONITOR_NODE.md @@ -1,9 +1,61 @@ # Monitor Node Setup +FIndy monitoring node setup is based on the [monitoring node implementation made available by the VON network](https://github.com/bcgov/von-network/blob/master/server/anchor.py). +Instructions for running the VON Network can be found from their [Github project](https://github.com/bcgov/von-network). + ## Pre-Requisites +Following information is needed in order to run the monitoring node: + +* Access to pool transaction genesis file `pool_transactions_genesis`. + ## AWS EC2 Instance Setup +Following is an example setup for monitoring node in AWS EC2: + +* Instance type: `t2.micro` +* OS: Ubuntu 18.04 +* Disk space: 8Gb + ## Creation of DID for Monitoring Node -## Running Monitor Node \ No newline at end of file +Following commands need to be run in a FIndy Steward Node in order to create DID for monitor node with the correct role: + +``` +pool create findy-dev-ledger gen_txn_file=/home/nixu/pool_transactions_genesis +pool connect findy-dev-ledger +did new seed=******* metadata="network monitor" + +Did "" has been created with "" verkey +Metadata has been saved for DID "" + +did use +ledger nym did= role=NETWORK_MONITOR verkey= +ledger get-nym did= +``` + +Seed from the above commands should be stored to monitor node `/home/ubuntu/network_monitor_seed`. + +## Running Monitor Node + +Monitor node can be run with following commands: + +``` +git clone https://github.com/bcgov/von-network.git +cd von-network/ + + +virtualenv --python=python3.6 venv +source venv/bin/activate +pip install libnacl python3-indy + +sudo apt-get install libsodium23 libsodium-dev +sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88 +sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial stable" +sudo apt-get update +sudo apt-get install -y libindy + +GENESIS_FILE=/home/ubuntu/pool_transactions_genesis LEDGER_SEED=`cat /home/ubuntu/network_monitor_seed` python -m server.server &> ~/web-server.log & +``` + +Restarting the instance requires removing `/home/ubuntu/.indy-client`. \ No newline at end of file From 61c2cdbe438ef3be698077c31ae7048efe56a9a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Tue, 18 Jun 2019 12:14:13 +0300 Subject: [PATCH 3/3] Fixed reference to genesis file based on comments from Harri. --- MONITOR_NODE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MONITOR_NODE.md b/MONITOR_NODE.md index 73b8858..d1ace08 100644 --- a/MONITOR_NODE.md +++ b/MONITOR_NODE.md @@ -7,7 +7,7 @@ Instructions for running the VON Network can be found from their [Github project Following information is needed in order to run the monitoring node: -* Access to pool transaction genesis file `pool_transactions_genesis`. +* Access to pool transaction genesis file `pool_transactions_genesis` stored in a known location. ## AWS EC2 Instance Setup @@ -22,7 +22,7 @@ Following is an example setup for monitoring node in AWS EC2: Following commands need to be run in a FIndy Steward Node in order to create DID for monitor node with the correct role: ``` -pool create findy-dev-ledger gen_txn_file=/home/nixu/pool_transactions_genesis +pool create findy-dev-ledger gen_txn_file= pool connect findy-dev-ledger did new seed=******* metadata="network monitor"