Skip to content

Instantly share code, notes, and snippets.

View igor-egorov's full-sized avatar
💮

Igor Egorov igor-egorov

💮
View GitHub Profile
@igor-egorov
igor-egorov / perfo.py
Created February 1, 2019 16:23
HL Iroha TxStatusStream performance degradation
#!/usr/bin/env python3
#
# Copyright Soramitsu Co., Ltd. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
from irohalib import Iroha, IrohaCrypto, IrohaGrpc
import uuid
import time
@igor-egorov
igor-egorov / script.sh
Created August 8, 2018 18:02
Run tx-example.py on Iroha from master branch
git clone -b master --depth=1 [email protected]:hyperledger/iroha.git iroha
cd iroha
docker pull hyperledger/iroha:latest
docker network create iroha-network
docker run --name some-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=mysecretpassword \
@igor-egorov
igor-egorov / Iroha_Core_Concepts.md
Created August 8, 2018 09:38
Iroha Core Concepts (review)

Iroha Core Concepts - Draft (Grammar and understandability)

Why does Iroha run in a network? How can one gain a better understanding of the objects, both inside and outside the system? How do peers in the network collaborate and decide on which data to put into the blockchain? We will look at the Core Concepts and terminology used by Iroha in this section.

Account : An Iroha entity that is able to perform a specified set of actions or permissions. Each account belongs to one of multiple existing domains. An account is associated with zero or more roles.

There are two categories of permissions in Iroha, Permissions and Grantable Permissions. Only Grantable Permissions can be assigned to an account directly. Grantable Permissions allow an account to perform some action on behalf of another account.

Ametsuchi