Skip to main content

Iroha

Iroha is our hyperledger. All virtual wallets are stored here and the Wallet service communicates with it to create transactions and query balances. All communication is done via gRPC/Protobuff

Iroha Setup​

To run Iroha locally

Iroha via docker requires the following steps

0) Create network for iroha and postgres​

Docs

docker network create iroha-network

1) Create and run postgres container​

Docs

docker run --name iroha-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=mysecretpassword \
-p 5432:5432 \
--network=iroha-network \
-d postgres:9.5

2) Create block store for iroha to write to​

Docs

docker volume create blockstore

3) Start Iroha container​

Docs

docker run -it --name iroha \
-p 50051:50051 \
-v $(pwd):/opt/iroha_data \
-v blockstore:/tmp/block_store \
-e POSTGRES_HOST='iroha-postgres' \
-e POSTGRES_PORT='5432' \
-e POSTGRES_PASSWORD='mysecretpassword' \
-e POSTGRES_USER='postgres' \
-e KEY='node0' \
--network=iroha-network \
hyperledger/iroha@sha256:f53472e04587e57cceb8976945d69f781a51aa6aaee3bfe09d35b9fbe7c94c18