From dee1b12f98e70ac24faf69d757db6220be751bc7 Mon Sep 17 00:00:00 2001 From: Takeshi Yonezu Date: Sun, 23 May 2021 01:22:06 +0900 Subject: [PATCH] feat(iroha-testnet): iroha-testnet Signed-off-by: Takeshi Yonezu --- tools/docker/iroha-testnet/.env | 3 + tools/docker/iroha-testnet/README.md | 109 +++++++++++++ tools/docker/iroha-testnet/docker-compose.yml | 28 ++++ .../iroha-testnet/example/admin@test.priv | 1 + .../iroha-testnet/example/admin@test.pub | 1 + .../iroha-testnet/example/config.docker | 13 ++ .../iroha-testnet/example/entrypoint.sh | 53 +++++++ .../iroha-testnet/example/genesis.block | 125 +++++++++++++++ .../example/iroha-wallet/alice@test.priv | 1 + .../example/iroha-wallet/alice@test.pub | 1 + .../example/iroha-wallet/bob@test.priv | 1 + .../example/iroha-wallet/bob@test.pub | 1 + .../iroha-wallet/setup-iroha-wallet.sh | 107 +++++++++++++ tools/docker/iroha-testnet/example/node1.priv | 1 + tools/docker/iroha-testnet/example/node1.pub | 1 + tools/docker/iroha-testnet/example/node4/.env | 3 + .../iroha-testnet/example/node4/.gitignore | 1 + .../example/node4/admin@test.priv | 1 + .../example/node4/admin@test.pub | 1 + .../iroha-testnet/example/node4/cleanup.sh | 5 + .../example/node4/docker-compose.yml | 120 ++++++++++++++ .../iroha-testnet/example/node4/entrypoint.sh | 53 +++++++ .../iroha-testnet/example/node4/genesis.block | 149 ++++++++++++++++++ .../iroha-testnet/example/node4/iroha1.conf | 20 +++ .../iroha-testnet/example/node4/iroha2.conf | 20 +++ .../iroha-testnet/example/node4/iroha3.conf | 20 +++ .../iroha-testnet/example/node4/iroha4.conf | 20 +++ .../iroha-testnet/example/node4/logs4.sh | 31 ++++ .../iroha-testnet/example/node4/node1.priv | 1 + .../iroha-testnet/example/node4/node1.pub | 1 + .../iroha-testnet/example/node4/node2.priv | 1 + .../iroha-testnet/example/node4/node2.pub | 1 + .../iroha-testnet/example/node4/node3.priv | 1 + .../iroha-testnet/example/node4/node3.pub | 1 + .../iroha-testnet/example/node4/node4.priv | 1 + .../iroha-testnet/example/node4/node4.pub | 1 + .../iroha-testnet/example/node4/setup.sh | 7 + .../iroha-testnet/example/test@test.priv | 1 + .../iroha-testnet/example/test@test.pub | 1 + 39 files changed, 907 insertions(+) create mode 100644 tools/docker/iroha-testnet/.env create mode 100644 tools/docker/iroha-testnet/README.md create mode 100644 tools/docker/iroha-testnet/docker-compose.yml create mode 100644 tools/docker/iroha-testnet/example/admin@test.priv create mode 100644 tools/docker/iroha-testnet/example/admin@test.pub create mode 100644 tools/docker/iroha-testnet/example/config.docker create mode 100755 tools/docker/iroha-testnet/example/entrypoint.sh create mode 100644 tools/docker/iroha-testnet/example/genesis.block create mode 100644 tools/docker/iroha-testnet/example/iroha-wallet/alice@test.priv create mode 100644 tools/docker/iroha-testnet/example/iroha-wallet/alice@test.pub create mode 100644 tools/docker/iroha-testnet/example/iroha-wallet/bob@test.priv create mode 100644 tools/docker/iroha-testnet/example/iroha-wallet/bob@test.pub create mode 100644 tools/docker/iroha-testnet/example/iroha-wallet/setup-iroha-wallet.sh create mode 100644 tools/docker/iroha-testnet/example/node1.priv create mode 100644 tools/docker/iroha-testnet/example/node1.pub create mode 100644 tools/docker/iroha-testnet/example/node4/.env create mode 100644 tools/docker/iroha-testnet/example/node4/.gitignore create mode 100644 tools/docker/iroha-testnet/example/node4/admin@test.priv create mode 100644 tools/docker/iroha-testnet/example/node4/admin@test.pub create mode 100644 tools/docker/iroha-testnet/example/node4/cleanup.sh create mode 100644 tools/docker/iroha-testnet/example/node4/docker-compose.yml create mode 100755 tools/docker/iroha-testnet/example/node4/entrypoint.sh create mode 100644 tools/docker/iroha-testnet/example/node4/genesis.block create mode 100644 tools/docker/iroha-testnet/example/node4/iroha1.conf create mode 100644 tools/docker/iroha-testnet/example/node4/iroha2.conf create mode 100644 tools/docker/iroha-testnet/example/node4/iroha3.conf create mode 100644 tools/docker/iroha-testnet/example/node4/iroha4.conf create mode 100644 tools/docker/iroha-testnet/example/node4/logs4.sh create mode 100644 tools/docker/iroha-testnet/example/node4/node1.priv create mode 100644 tools/docker/iroha-testnet/example/node4/node1.pub create mode 100644 tools/docker/iroha-testnet/example/node4/node2.priv create mode 100644 tools/docker/iroha-testnet/example/node4/node2.pub create mode 100644 tools/docker/iroha-testnet/example/node4/node3.priv create mode 100644 tools/docker/iroha-testnet/example/node4/node3.pub create mode 100644 tools/docker/iroha-testnet/example/node4/node4.priv create mode 100644 tools/docker/iroha-testnet/example/node4/node4.pub create mode 100644 tools/docker/iroha-testnet/example/node4/setup.sh create mode 100644 tools/docker/iroha-testnet/example/test@test.priv create mode 100644 tools/docker/iroha-testnet/example/test@test.pub diff --git a/tools/docker/iroha-testnet/.env b/tools/docker/iroha-testnet/.env new file mode 100644 index 0000000000..add20ce149 --- /dev/null +++ b/tools/docker/iroha-testnet/.env @@ -0,0 +1,3 @@ +IROHA_PRJ=hyperledger +IROHA_IMG=iroha:1.2.1 +COMPOSE_PROJECT_NAME=iroha diff --git a/tools/docker/iroha-testnet/README.md b/tools/docker/iroha-testnet/README.md new file mode 100644 index 0000000000..81adfe111b --- /dev/null +++ b/tools/docker/iroha-testnet/README.md @@ -0,0 +1,109 @@ +# Building Hyperledger Iroha testnet + +## Abstract + +This tool allows you to launch test net on a single instance using Iroha's docker container. + +In addition, you can launch 4 instances of Iroha on your PC or cloud environment. + +In either case, you can run Iroha's API using a test script called setup-iroha-wallet. + +## How to run + +### Single Host Single instance + +Use docker-compose to launch it as follows: + +``` +$ docker-compose up -d +``` + +If it starts normally, the docker ps command will display: + +``` +$ docker ps +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +4370a2679d7e hyperledger/iroha:1.2.1 "/opt/iroha/config/e…" About a minute ago Up About a minute 0.0.0.0:50051->50051/tcp, :::50051->50051/tcp iroha_node_1 +f14813ae92b9 postgres:13.2-alpine "docker-entrypoint.s…" About a minute ago Up About a minute 5432/tcp iroha_postgres_1 +``` + +You can view the Iroha execution log using the docker logs command. + +``` +$ docker logs -f iroha_node_1 +``` + +### Single Host 4 Instances + +You can also run four Iroha instances on a single PC or cloud for testing. In this case, do the following: + +``` +$ cd example/node4 +$ docker-compose up -d +``` + +In this case, Iroha's distributed ledger and PostgreSQL DB used for [WSV](https://iroha.readthedocs.io/en/main/concepts_architecture/architecture.html#world-state-view) are created on the host and volume mounted on docker. Depending on the version of docker, you may get an error due to permission issues when writing blocks to the directory for the distributed ledger. + +In such a case, delete the directory created as iroha1 ~ iroha4 and the files under it, and then execute the setup.sh script. +In this case, do the following: + +``` +$ sudo rm -fr iroha? +$ bash setup.sh +``` +In this state, try starting Iroha again with docker-compose. + +``` +$ docker-compose up -d +``` + +## View Iroha Log + +In the case of Single Host 4 instance, you can display the log of each Iroha on 4 terminal screens. + +In this case, first open the four terminal screens. In addition, open 5 screens in total, and execute the following script from the last terminal. + +``` +$ cd example/node4 +$ bash logs4.sh +``` + +This script keeps displaying the Iroha logs obtained by docker logs -f on the screens of the four terminals starting with the one with the smallest terminal number. Of course, you can use the docker logs command individually. + +## Test script + +You can run the test script while Iroha is running. In this case, run the setup-iroha-wallet.sh script located in the example / iroha-wallet directory. + +``` +$ cd example/iroha-wallet +$ bash seetup-iroha-wallet.sh +``` + +This script performs the following transactional operations: + +1. Create an alice account +2. Create a bob account +3. Create an asset called coolcoin +4. Create an asset called hotcoin +5. Add 1000 units of cool coin +6,. Add 1000 units of hot coin +7. Transfer 500 units of cool coin to alice +8. Transfer 500 units of hot coin to alice +9. Transfer 500 units of cool coin to bob +10. Transfer 500 units of hotcoin to bob + +After performing all transaction operations, the status is queried each time. + +## How to stop + +If you want to stop it, run docker-compose down. Here, in the case of Single Host Single Instance, execute it in the iroha-testnet directory. For Single Host 4Instances, run in the example/node4 directory. + +Since we are using the ccache-data volume in the docker-compose.yml file, it's a good idea to add the "-v" option when running docker-compose down. + +``` +$ docker-compose down -v +``` + +## References + +Please refer to [Hyperledger Iroha documentation](https://iroha.readthedocs.io/en/main/index.html) for more information. diff --git a/tools/docker/iroha-testnet/docker-compose.yml b/tools/docker/iroha-testnet/docker-compose.yml new file mode 100644 index 0000000000..96ec30dd52 --- /dev/null +++ b/tools/docker/iroha-testnet/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3' + +services: + node: + image: ${IROHA_PRJ}/${IROHA_IMG} + ports: + - "50051:50051" + environment: + - IROHA_HOME=/opt/iroha + - IROHA_CONF=config.docker + - IROHA_NODEKEY=node1 + - CCACHE_DIR=/tmp/ccache + volumes: + - ${PWD}/example:/opt/iroha/config + - ccache-data:/tmp/ccache + working_dir: /opt/iroha/config + entrypoint: /opt/iroha/config/entrypoint.sh + depends_on: + - postgres + + postgres: + image: postgres:13.2-alpine + environment: + - POSTGRES_USER=iroha + - POSTGRES_PASSWORD=HelloW0rld + +volumes: + ccache-data: diff --git a/tools/docker/iroha-testnet/example/admin@test.priv b/tools/docker/iroha-testnet/example/admin@test.priv new file mode 100644 index 0000000000..d858ce796c --- /dev/null +++ b/tools/docker/iroha-testnet/example/admin@test.priv @@ -0,0 +1 @@ +f101537e319568c765b2cc89698325604991dca57b9716b58016b253506cab70 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/admin@test.pub b/tools/docker/iroha-testnet/example/admin@test.pub new file mode 100644 index 0000000000..49c3bef482 --- /dev/null +++ b/tools/docker/iroha-testnet/example/admin@test.pub @@ -0,0 +1 @@ +313a07e6384776ed95447710d15e59148473ccfc052a681317a72a69f2a49910 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/config.docker b/tools/docker/iroha-testnet/example/config.docker new file mode 100644 index 0000000000..ef1f9a8b2c --- /dev/null +++ b/tools/docker/iroha-testnet/example/config.docker @@ -0,0 +1,13 @@ +{ + "block_store_path" : "/tmp/block_store/", + "torii_port" : 50051, + "internal_port" : 10001, + "pg_opt" : "host=iroha_postgres_1 port=5432 user=iroha password=HelloW0rld", + "max_proposal_size" : 10, + "proposal_delay" : 5000, + "vote_delay" : 5000, + "mst_enable" : false, + "mst_expiration_time" : 1440, + "max_rounds_delay": 3000, + "stale_stream_max_rounds": 2 +} diff --git a/tools/docker/iroha-testnet/example/entrypoint.sh b/tools/docker/iroha-testnet/example/entrypoint.sh new file mode 100755 index 0000000000..43a8d32201 --- /dev/null +++ b/tools/docker/iroha-testnet/example/entrypoint.sh @@ -0,0 +1,53 @@ +#!/bin/bash + +cd ${IROHA_HOME}/config + +IROHA_CONF=${IROHA_CONF:-iroha.conf} +IROHA_BLOCK=$(cat ${IROHA_CONF} | grep block_store_path | + sed -e 's/^.*: "//' -e 's/".*$//') +IROHA_GENESIS=${IROHA_GENESIS:-genesis.block} +IROHA_NODEKEY=${IROHA_NODEKEY:-node1} + +if grep -q pg_opt ${IROHA_CONF}; then + PG_HOST=$(cat ${IROHA_CONF} | grep pg_opt | sed -e 's/^.*host=//' -e 's/ .*//') + PG_PORT=$(cat ${IROHA_CONF} | grep pg_opt | sed -e 's/^.*port=//' -e 's/ .*//') +else + PG_HOST=$(cat ${IROHA_CONF} | grep host | sed -e 's/^.*host" *: *"//' -e 's/".*//') + PG_PORT=$(cat ${IROHA_CONF} | grep "[^_]port" | sed -e 's/^.*port" *: *//' -e 's/,.*//') +fi + +if [ -x ${IROHA_HOME}/bin/wait-for-it.sh ]; then + WAIT_FOR_IT="${IROHA_HOME}/bin/wait-for-it.sh" +else + WAIT_FOR_IT="/wait-for-it.sh" +fi + +${WAIT_FOR_IT} -h ${PG_HOST} -p ${PG_PORT} -t 60 -- true + +# Raspberry Pi, Wait until PostgreSQL is stabilized +if [ "$(uname -m)" = "armv7l" ]; then + # Raspberry Pi 4B does'nt need sleep + if ! grep ^Model /proc/cpuinfo | grep -q "Raspberry Pi 4"; then + sleep 30 + fi +fi + +if [ ! -f ${IROHA_BLOCK}0000000000000001 ]; then + echo "$ irohad --config ${IROHA_CONF} --genesis_block ${IROHA_GENESIS} --keypair_name ${IROHA_NODEKEY} --drop_state" + + irohad --config ${IROHA_CONF} \ + --genesis_block ${IROHA_GENESIS} \ + --keypair_name ${IROHA_NODEKEY} \ + --drop_state +elif [ ! -f ${IROHA_BLOCK}0000000000000002 ]; then + echo "$ irohad --config ${IROHA_CONF} --genesis_block ${IROHA_GENESIS} --keypair_name ${IROHA_NODEKEY}" + + irohad --config ${IROHA_CONF} \ + --genesis_block ${IROHA_GENESIS} \ + --keypair_name ${IROHA_NODEKEY} +else + echo "$ irohad --config ${IROHA_CONF} --keypair_name ${IROHA_NODEKEY}" + + irohad --config ${IROHA_CONF} \ + --keypair_name ${IROHA_NODEKEY} +fi diff --git a/tools/docker/iroha-testnet/example/genesis.block b/tools/docker/iroha-testnet/example/genesis.block new file mode 100644 index 0000000000..5d09f10a6f --- /dev/null +++ b/tools/docker/iroha-testnet/example/genesis.block @@ -0,0 +1,125 @@ +{ + "block_v1":{ + "payload":{ + "transactions":[ + { + "payload":{ + "reducedPayload":{ + "commands":[ + { + "addPeer":{ + "peer":{ + "address":"127.0.0.1:10001", + "peerKey":"bddd58404d1315e0eb27902c5d7c8eb0602c16238f005773df406bc191308929" + } + } + }, + { + "createRole":{ + "roleName":"admin", + "permissions":[ + "can_add_peer", + "can_add_signatory", + "can_create_account", + "can_create_domain", + "can_get_all_acc_ast", + "can_get_all_acc_ast_txs", + "can_get_all_acc_detail", + "can_get_all_acc_txs", + "can_get_all_accounts", + "can_get_all_signatories", + "can_get_all_txs", + "can_get_blocks", + "can_get_roles", + "can_read_assets", + "can_remove_signatory", + "can_set_quorum" + ] + } + }, + { + "createRole":{ + "roleName":"user", + "permissions":[ + "can_add_signatory", + "can_get_my_acc_ast", + "can_get_my_acc_ast_txs", + "can_get_my_acc_detail", + "can_get_my_acc_txs", + "can_get_my_account", + "can_get_my_signatories", + "can_get_my_txs", + "can_grant_can_add_my_signatory", + "can_grant_can_remove_my_signatory", + "can_grant_can_set_my_account_detail", + "can_grant_can_set_my_quorum", + "can_grant_can_transfer_my_assets", + "can_receive", + "can_remove_signatory", + "can_set_quorum", + "can_transfer" + ] + } + }, + { + "createRole":{ + "roleName":"money_creator", + "permissions":[ + "can_add_asset_qty", + "can_create_asset", + "can_receive", + "can_transfer" + ] + } + }, + { + "createDomain":{ + "domainId":"test", + "defaultRole":"user" + } + }, + { + "createAsset":{ + "assetName":"coin", + "domainId":"test", + "precision":2 + } + }, + { + "createAccount":{ + "accountName":"admin", + "domainId":"test", + "publicKey":"313a07e6384776ed95447710d15e59148473ccfc052a681317a72a69f2a49910" + } + }, + { + "createAccount":{ + "accountName":"test", + "domainId":"test", + "publicKey":"716fe505f69f18511a1b083915aa9ff73ef36e6688199f3959750db38b8f4bfc" + } + }, + { + "appendRole":{ + "accountId":"admin@test", + "roleName":"admin" + } + }, + { + "appendRole":{ + "accountId":"admin@test", + "roleName":"money_creator" + } + } + ], + "quorum":1 + } + } + } + ], + "txNumber":1, + "height":"1", + "prevBlockHash":"0000000000000000000000000000000000000000000000000000000000000000" + } + } +} diff --git a/tools/docker/iroha-testnet/example/iroha-wallet/alice@test.priv b/tools/docker/iroha-testnet/example/iroha-wallet/alice@test.priv new file mode 100644 index 0000000000..baf2eb91b3 --- /dev/null +++ b/tools/docker/iroha-testnet/example/iroha-wallet/alice@test.priv @@ -0,0 +1 @@ +9c430dfe8c54b0a447e25f75121119ac3b649c1253bce8420f245e4c104dccd1 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/iroha-wallet/alice@test.pub b/tools/docker/iroha-testnet/example/iroha-wallet/alice@test.pub new file mode 100644 index 0000000000..20b2b6fc6f --- /dev/null +++ b/tools/docker/iroha-testnet/example/iroha-wallet/alice@test.pub @@ -0,0 +1 @@ +bcc4ab167ae7db371672170ed31e382f7c612fbfe918f99c276cd9dc199446a4 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/iroha-wallet/bob@test.priv b/tools/docker/iroha-testnet/example/iroha-wallet/bob@test.priv new file mode 100644 index 0000000000..00d3145ebf --- /dev/null +++ b/tools/docker/iroha-testnet/example/iroha-wallet/bob@test.priv @@ -0,0 +1 @@ +a997d9631aa6f2a60b2776d72a2e12228db972e03b7aa987fee8997354a3b236 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/iroha-wallet/bob@test.pub b/tools/docker/iroha-testnet/example/iroha-wallet/bob@test.pub new file mode 100644 index 0000000000..ba4e4eec44 --- /dev/null +++ b/tools/docker/iroha-testnet/example/iroha-wallet/bob@test.pub @@ -0,0 +1 @@ +583a55172a77c9881699306c6f69defac6cb939aa45afb87b7d35bcf06cdd786 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/iroha-wallet/setup-iroha-wallet.sh b/tools/docker/iroha-testnet/example/iroha-wallet/setup-iroha-wallet.sh new file mode 100644 index 0000000000..6fd84b4fcb --- /dev/null +++ b/tools/docker/iroha-testnet/example/iroha-wallet/setup-iroha-wallet.sh @@ -0,0 +1,107 @@ +#!/bin/bash + +CONTAINER_NAME="iroha_node_1" + +IROHA_IP=0.0.0.0 +IROHA_PORT=50051 + +function tx { + echo -e "\n>>> $1 ($3 $4 $5 $6 $7 $8) <<<" | sed 's/ *)/)/' + + docker exec -i ${CONTAINER_NAME} iroha-cli \ + --account_name admin@test \ + --key_path /opt/iroha/config \ + <.*: //' | tee /tmp/hash +tx +$2 +$3 +$4 +$5 +$6 +$7 +$8 +send +${IROHA_IP} +${IROHA_PORT} +EOF + + hash=$(cat /tmp/hash| grep hash | cut -d' ' -f4) + st $hash >/tmp/st + while ! cat /tmp/st | grep -q "successfully committed"; do + if cat /tmp/st | grep -q "error"; then + echo + cat /tmp/st | grep "error" | sed 's/^>.*: //' + break + fi + sleep 1 + echo -n "." + st $hash >/tmp/st + done +} + +function rx { + echo -e "\n>>> $1 ($3 $4 $5 $6 $7 $8) <<<" | sed 's/ *)/)/' + + docker exec -i ${CONTAINER_NAME} iroha-cli \ + --account_name admin@test \ + --key_path /opt/iroha/config \ + <.*: //' +qry +$2 +$3 +$4 +$5 +$6 +$7 +$8 +send +${IROHA_IP} +${IROHA_PORT} +EOF +} + +function st { + docker exec -i ${CONTAINER_NAME} iroha-cli \ + --account_name admin@test \ + --key_path /opt/iroha/config \ + </tmp/i.$$ + cat /tmp/i.$$ | grep -v console >/tmp/ilogs.$$ + rm /tmp/i.$$ + + TTY="/dev/tty" +else + ps -ef | awk '{print $6}' | grep pts | sort | uniq | sed 's/\// /' >/tmp/ilogs.$$ + N=$(cat /tmp/ilogs.$$ | wc -l) +fi + +if [ $N -gt 4 ]; then + N=4 +fi + +for i in $(seq ${N}); do + NAME=$(cat /tmp/ilogs.$$ | sed -n ${i}p | awk '{ print $2 }') + + docker logs -f ${IROHA_NODE}$((i)) >${TTY}${NAME} & +done + +rm /tmp/ilogs.$$ + +exit 0 diff --git a/tools/docker/iroha-testnet/example/node4/node1.priv b/tools/docker/iroha-testnet/example/node4/node1.priv new file mode 100644 index 0000000000..9d5c2589d9 --- /dev/null +++ b/tools/docker/iroha-testnet/example/node4/node1.priv @@ -0,0 +1 @@ +ffad7a51024cc68114665c26a05b570b6d5c8b208b66e3834e0a1dab09ab899f \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/node4/node1.pub b/tools/docker/iroha-testnet/example/node4/node1.pub new file mode 100644 index 0000000000..b559d65b68 --- /dev/null +++ b/tools/docker/iroha-testnet/example/node4/node1.pub @@ -0,0 +1 @@ +a147bcfebb0154e11a819f195e94068424b2dd7268bfc19481a544a2eecb8e4c \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/node4/node2.priv b/tools/docker/iroha-testnet/example/node4/node2.priv new file mode 100644 index 0000000000..6348ca9635 --- /dev/null +++ b/tools/docker/iroha-testnet/example/node4/node2.priv @@ -0,0 +1 @@ +962d2ac3a5b847dcb7915418535fe78e36e596d4d0443468b93b85e0f2facdad \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/node4/node2.pub b/tools/docker/iroha-testnet/example/node4/node2.pub new file mode 100644 index 0000000000..49ecddc62b --- /dev/null +++ b/tools/docker/iroha-testnet/example/node4/node2.pub @@ -0,0 +1 @@ +2cccdaa65a848ad202feedc4377d63f08f403354c13f0431070e2c6105bcc144 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/node4/node3.priv b/tools/docker/iroha-testnet/example/node4/node3.priv new file mode 100644 index 0000000000..9f565608d9 --- /dev/null +++ b/tools/docker/iroha-testnet/example/node4/node3.priv @@ -0,0 +1 @@ +0757dc557ead0e15e1372f4bc4f32007f55ffe79a1cf1a53546ff446600a23c3 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/node4/node3.pub b/tools/docker/iroha-testnet/example/node4/node3.pub new file mode 100644 index 0000000000..7d8b646323 --- /dev/null +++ b/tools/docker/iroha-testnet/example/node4/node3.pub @@ -0,0 +1 @@ +2f96c863ebcc1b27e2b0ce4ab0a25150b4658a09721e79a0af923c8f083c9cb5 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/node4/node4.priv b/tools/docker/iroha-testnet/example/node4/node4.priv new file mode 100644 index 0000000000..86ddbbcfa1 --- /dev/null +++ b/tools/docker/iroha-testnet/example/node4/node4.priv @@ -0,0 +1 @@ +96a2bb4696b3766187fcfff728c1f99a617114a6df897d0212b2af9b095f09ec \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/node4/node4.pub b/tools/docker/iroha-testnet/example/node4/node4.pub new file mode 100644 index 0000000000..b04ee621f7 --- /dev/null +++ b/tools/docker/iroha-testnet/example/node4/node4.pub @@ -0,0 +1 @@ +fe31d7bc2dbe695b1cd5c706dde902d5fb6e6ce4b60e08418c842fdef5805230 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/node4/setup.sh b/tools/docker/iroha-testnet/example/node4/setup.sh new file mode 100644 index 0000000000..8de6efbde9 --- /dev/null +++ b/tools/docker/iroha-testnet/example/node4/setup.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +for i in $(seq 4); do + mkdir -p iroha${i}/tmp/block_store +done + +exit 0 diff --git a/tools/docker/iroha-testnet/example/test@test.priv b/tools/docker/iroha-testnet/example/test@test.priv new file mode 100644 index 0000000000..6605e2840b --- /dev/null +++ b/tools/docker/iroha-testnet/example/test@test.priv @@ -0,0 +1 @@ +7e00405ece477bb6dd9b03a78eee4e708afc2f5bcdce399573a5958942f4a390 \ No newline at end of file diff --git a/tools/docker/iroha-testnet/example/test@test.pub b/tools/docker/iroha-testnet/example/test@test.pub new file mode 100644 index 0000000000..f08d97cac9 --- /dev/null +++ b/tools/docker/iroha-testnet/example/test@test.pub @@ -0,0 +1 @@ +716fe505f69f18511a1b083915aa9ff73ef36e6688199f3959750db38b8f4bfc \ No newline at end of file