You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

Target releaseIroha 2.0 MVP
Document status
DRAFT
Document owner
Tech lead
Developers
Blockchain advisorsSalakhiev Kamil Andrei Lebedev
QAStephan Lavrentev

Goals

Background and strategic fit

Version Published Changed By Comment
CURRENT (v. 19) Oct 07, 2020 09:03 Vadim Reutskiy
v. 100 Sep 23, 2020 05:39 Vadim Reutskiy
v. 99 Sep 23, 2020 05:37 Vadim Reutskiy Reviewed and fixed some FRs, added links to related FRs.
v. 98 Sep 23, 2020 04:54 Vadim Reutskiy
v. 97 Sep 23, 2020 04:51 Vadim Reutskiy
v. 96 Sep 19, 2020 12:07 Vadim Reutskiy
v. 95 Sep 19, 2020 11:55 Vadim Reutskiy Added NFR0103 about flexibility of permissions
v. 94 Sep 19, 2020 11:30 Vadim Reutskiy
v. 93 Sep 19, 2020 11:28 Vadim Reutskiy
v. 92 Sep 19, 2020 11:21 Vadim Reutskiy
v. 91 Sep 19, 2020 11:20 Vadim Reutskiy Added NFR0103 about convenient API
v. 90 Sep 19, 2020 09:44 Vadim Reutskiy Added FR0217 with custom query language
v. 89 Sep 19, 2020 09:43 Vadim Reutskiy
v. 88 Sep 19, 2020 09:35 Vadim Reutskiy
v. 87 Sep 19, 2020 09:25 Vadim Reutskiy Added NFR0400 with requirement to verifiable and repeatable documentation about decisions
v. 86 Sep 19, 2020 09:18 Vadim Reutskiy Added NFR0300 about documentation
v. 85 Sep 19, 2020 08:45 Vadim Reutskiy Added NFD0004 about network capacity for accounts
v. 84 Sep 19, 2020 08:44 Vadim Reutskiy
v. 83 Sep 19, 2020 08:30 Vadim Reutskiy Filled FR0902 about access delegation
v. 82 Sep 19, 2020 08:19 Vadim Reutskiy
v. 81 Sep 19, 2020 08:09 Vadim Reutskiy Added FR0114 and FR0216 about non-fungible assets
v. 80 Sep 19, 2020 07:08 Vadim Reutskiy Added FR0114 about operations with non-fungible assets
v. 79 Sep 19, 2020 06:50 Vadim Reutskiy
v. 78 Sep 16, 2020 10:29 Vadim Reutskiy
v. 77 Sep 16, 2020 10:08 Vadim Reutskiy
v. 76 Sep 16, 2020 10:06 Vadim Reutskiy
v. 75 Sep 16, 2020 09:52 Vadim Reutskiy
v. 74 Sep 11, 2020 11:29 Vadim Reutskiy
v. 73 Sep 11, 2020 11:22 Vadim Reutskiy Add FR0907 with non-fungible tokens
v. 72 Sep 11, 2020 08:51 Vadim Reutskiy Update FR0300: add note about reusing the same state.
v. 71 Sep 11, 2020 08:46 Vadim Reutskiy Update FR0904 according to comments by Iurii
v. 70 Sep 11, 2020 08:28 Vadim Reutskiy
v. 69 Sep 11, 2020 07:17 Vadim Reutskiy Add NFR0102 about DSL flexibility
v. 68 Sep 11, 2020 06:53 Vadim Reutskiy Added FR0906 for parliament voting
v. 67 Sep 11, 2020 05:50 Vadim Reutskiy
v. 66 Sep 11, 2020 05:47 Vadim Reutskiy Added FR0905 with management of MST signatories
v. 65 Sep 10, 2020 11:52 Vadim Reutskiy
v. 64 Sep 10, 2020 11:30 Vadim Reutskiy
v. 63 Sep 10, 2020 11:05 Vadim Reutskiy Added NFR0102 with requirements to system performance flexibility
v. 62 Sep 10, 2020 10:59 Vadim Reutskiy Added performance requirements from Sora 2
v. 61 Sep 10, 2020 10:57 Vadim Reutskiy Added NFR0003 with requirements to the minimal machine configuration
v. 60 Sep 10, 2020 07:22 Vadim Reutskiy Added NFR0101 for network scalability
v. 59 Sep 10, 2020 07:02 Vadim Reutskiy Added security requirements NFR0200
v. 58 Sep 10, 2020 05:46 Vadim Reutskiy Added quality attribute for SDK availability for platforms (NFR0100)
v. 57 Sep 09, 2020 05:36 Vadim Reutskiy
v. 56 Sep 09, 2020 05:32 Vadim Reutskiy Added details to the FR0903
v. 55 Sep 09, 2020 04:36 Vadim Reutskiy Added response and measure to the NFR0002
v. 54 Sep 08, 2020 11:30 Vadim Reutskiy
v. 53 Sep 04, 2020 05:49 Vadim Reutskiy
v. 52 Sep 04, 2020 05:48 Vadim Reutskiy
v. 51 Sep 04, 2020 05:47 Vadim Reutskiy Add FR0113 - sending instructions with payload
v. 50 Sep 04, 2020 05:34 Vadim Reutskiy
v. 49 Sep 03, 2020 11:26 Vadim Reutskiy
v. 48 Sep 03, 2020 10:46 Vadim Reutskiy
v. 47 Sep 03, 2020 10:26 Vadim Reutskiy
v. 46 Sep 03, 2020 10:00 Vadim Reutskiy
v. 45 Sep 03, 2020 09:23 Vadim Reutskiy
v. 44 Sep 03, 2020 07:03 Vadim Reutskiy Added section for high-level use cases and FR0900 and FR0901 about the fees configuration and application
v. 43 Sep 03, 2020 05:32 Vadim Reutskiy
v. 42 Sep 03, 2020 05:27 Vadim Reutskiy Added use case for selecting list of transactions FR0214
v. 41 Sep 03, 2020 05:19 Vadim Reutskiy Update list of participants and roles
v. 40 Sep 03, 2020 05:16 Vadim Reutskiy
v. 39 Sep 03, 2020 05:14 Vadim Reutskiy Added use cases for CRUD operations of data associated with the account: FR0212, FR0213, FR0112
v. 38 Sep 03, 2020 04:54 Vadim Reutskiy
v. 37 Sep 02, 2020 08:03 Vadim Reutskiy
v. 36 Sep 02, 2020 07:13 Vadim Reutskiy
v. 35 Sep 02, 2020 05:53 Vadim Reutskiy Added FR0211
v. 34 Sep 02, 2020 05:31 Vadim Reutskiy
v. 33 Sep 02, 2020 05:24 Vadim Reutskiy Added trigger-related use cases: FR0300-FR0302
v. 32 Sep 01, 2020 10:43 Salakhiev Kamil
v. 31 Aug 30, 2020 10:41 Vadim Reutskiy
v. 30 Aug 30, 2020 10:01 Vadim Reutskiy
v. 29 Aug 30, 2020 08:49 Vadim Reutskiy
v. 28 Aug 30, 2020 08:45 Vadim Reutskiy
v. 27 Aug 30, 2020 08:43 Vadim Reutskiy
v. 26 Aug 27, 2020 10:44 Salakhiev Kamil
v. 25 Aug 27, 2020 10:25 Bogdan Mingela
v. 24 Aug 27, 2020 06:56 Vadim Reutskiy
v. 23 Aug 27, 2020 05:52 Vadim Reutskiy Added "source" field to all use cases
v. 22 Aug 26, 2020 08:52 Bogdan Mingela
v. 21 Aug 26, 2020 08:19 Iurii Vinogradov
v. 20 Aug 26, 2020 08:14 Iurii Vinogradov
v. 19 Aug 26, 2020 08:02 Salakhiev Kamil
v. 18 Aug 26, 2020 08:00 Salakhiev Kamil
v. 17 Aug 25, 2020 09:57 Vadim Reutskiy Added FR0208, Subscribing on the query results
v. 16 Aug 25, 2020 09:46 Vadim Reutskiy
v. 15 Aug 25, 2020 09:45 Vadim Reutskiy
v. 14 Aug 25, 2020 09:45 Vadim Reutskiy
v. 13 Aug 25, 2020 09:41 Vadim Reutskiy
v. 12 Aug 25, 2020 09:41 Bogdan Mingela blocks and pending transactions cases
v. 11 Aug 25, 2020 07:01 Vadim Reutskiy
v. 10 Aug 25, 2020 06:42 Vadim Reutskiy
v. 9 Aug 25, 2020 05:53 Vadim Reutskiy
v. 8 Aug 25, 2020 05:30 Vadim Reutskiy
v. 7 Aug 25, 2020 05:06 Vadim Reutskiy
v. 6 Aug 25, 2020 05:04 Vadim Reutskiy
v. 5 Aug 24, 2020 11:26 Vadim Reutskiy
v. 4 Aug 24, 2020 11:24 Vadim Reutskiy
v. 3 Aug 24, 2020 11:22 Vadim Reutskiy
v. 2 Aug 24, 2020 07:05 Vadim Reutskiy
v. 1 Aug 24, 2020 06:00 Vadim Reutskiy

Assumptions

Requirements

Functional requirements

For the functional requirements, we should follow the default use case template by example:

Use case title
[FR0000] Example use-case; ID should be unique
Status

DISCUSS

DECIDED

POSTPONE

Preconditions
  • List of preconditions which must be satisfied before the use case can be applied
  • Each precondition should be defined as the point in the list

Use case flow

  1. The enumerated list of actions, which describes the interaction between actors step by step
  2. Each step should involve a single actor as an object of the action
  3. Each step can involve one or more actors as a subject of the action
  4. Each use case can involve other use cases as dependencies by include or extend relationships
Postconditions
  • One or more results of successfully finished use case
Alternative flow
  • List of alternative flows that can happen with the use case.
  • Each entry should have the link to the step of the main use case flow when the alternative can occur
    • If needed, each entry can contain sub-entries
  • Each entry should describe the consequences of the alternative flow
Exception flow
  • List of exceptions that can happen during the use case flow, which can prevent it to be successfully finished
  • Each entry should have the link to the step of the main use case flow when the exception can occur
    • If needed, each entry can contain sub-entries
  • Each entry should describe the consequences of the exception

Iroha network operations

Use case title
[FR0001] Starting the Iroha network
Status

DISCUSS

Preconditions
  • The administrator has configured environment for running Iroha executables
  • The administrator has prepared the genesis block

Use case flow

  1. The administrator launches the command to run Iroha peer and providing the path to the genesis block description
  2. The Iroha peer read and validates the genesis block configuration
  3. The Iroha peer starts the Iroha network according to the configuration in the genesis block
  4. The Iroha peer provides "successfully started" report to the administrator
Postconditions
  • The Iroha network is running
  • The administrator has access to the root account of the network
Alternative flow


Exception flow
  • At step 2, in case of the invalid genesis block, the Iroha peer shows corresponding error messages to the administrator and halts the network creation process
Use case title
[FR0002] Adding peer to the Iroha network
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow
Use case title
[FR0003] Removing peer from the Iroha network
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow
Use case title
[FR0004] Configuring initial state of the Iroha network
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow

Making changes in Iroha network data by Iroha special instructions

Use case title
[FR0100] Sending the transaction to the Iroha network
Status

DISCUSS

Preconditions
  • The user has an account in the Iroha network
  • The user has prepared the transaction for sending; transactions can consist of several instructions
  • The user has permissions to execute all instruction included in the transaction
  • The Iroha network is working in normal condition

Use case flow

  1. The user sends the transaction to the Iroha peer through the API
  2. The Iroha peer receives the transaction and validates its contents
  3. The Iroha peer checks that the user's account have enough permissions to run all instructions included in the transaction
  4. The Iroha peer executes the transaction by applying it to the current block
  5. The Iroha peer returns the result of the operation to the user
Postconditions
  • The transaction is successfully executed and applied to the network state
Alternative flow
  • On step 4, if the current user's account is multi-signature, the result of the transaction will be applied to the block-store only when the number of signatures will reach the current quorum value. In other cases, the Iroha peer will return "pending" status as a response on step 5.
Exception flow
  • On step 2, one of the instructions has invalid structure, the Iroha peer returns an error message with description to the user and stops the flow
  • On step 3, if the user's account does not have required permissions to execute one of the instructions, the Iroha peer returns information about that error and stops the flow
  • On step 3, in case of a multi-signature transaction, if the instruction signed using the key pair, which was already used for signing that instruction, the Iroha peer will return "already signed" error status and stop the flow
Use case title
[FR0101] Creation of the user in the Iroha network
Status

DISCUSS

Preconditions
  • The user has permission to create other users

Use case flow

  1. The user prepares information about the account that should be created, which includes name, domain, the public key and permissions list
  2. The user prepares instruction to send to the Iroha network according to the prepared information
  3. The user sends the transaction with the instruction to the Iroha peer (<<include>> FR0100)
  4. Tha Iroha peer returns the result of the instruction execution to the user
Postconditions
  • The new account in the Iroha network is created
Alternative flowN/A
Exception flow
  • On step 3, if the account with the provided name or public key already exists in the network, the Iroha peer will return "already exists" error status; user case flow will stop.
Use case title
[FR0102] Configuring permissions for the account in the Iroha network
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow
Use case title
[FR0102] Granting permissions for the account in the Iroha network
Status

DISCUSS

Preconditions
  • The user has access to his/her account in the Iroha network
  • The user's account has permissions to provide grantable permissions

Use case flow

  1. The user prepares the instruction to grant one or more permissions to another account
  2. The user sends the transaction with the prepared instruction to the Iroha peer (<<includes>> FR0100)
  3. The Iroha peer returns the result of the instruction to the user
Postconditions
  • The permission was granted to another account
Alternative flow
Exception flow
Use case title
[FR0104] Sending complex instruction using ISI DSL
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow
Use case title
[FR0105] Sending instruction and subscribing to the status of finalization
Status

DISCUSS

Preconditions
  • The user has permissions to execute requested instruction

Use case flow

  1. The user prepares the instruction parameters according to his/her needs
  2. The user sends the transaction with the instruction into the Iroha peer (<<includes>> FR0100)
  3. The user uses the same connection for obtaining the status of the instruction finalization
  4. The Iroha peer sends updates about the instruction finalization status to the user
  5. The user receives the "successfully finalized" status about the instruction
Postconditions
  • The instruction is accepted and finalized in the block-storage
  • The user did not spend additional resources for redundant network connections and requests
Alternative flow
Exception flow
  • At step 4 if the instruction cannot pass the validation, the user would not get the "successfully finalized" status; instead, he/she will get the "invalid instruction" status.
  • At step 4 if the network is in "bad" condition, the user would get the "successfully finalized" status eventually, when the network will return in a "good" state.
Use case title
[FR0106] Creation of the multi-signature account in the Iroha network
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow


Use case title
[FR0107] Changing quorum for the multi-signature account
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow
Use case title
[FR0108] Changing list of signatories for the multi-signature account
Status

DISCUSS

Preconditions
  • The user has permissions to change the list of signatories to the required account
  • The user has key pair for adding/deleting a signatory to/from the selected account

Use case flow

  1. The user prepares the instruction of adding/deleting signatories for sending
  2. The user sends the transaction with the instruction to the Iroha peer (<<include>> FR0100)
  3. The user receives the response from the Iroha peer
Postconditions
  • List of signatories for the selected account was changed correspondingly
Alternative flowN/A
Exception flow
  • On step 2, if the signatory with the current key pair exists in the list of signatories in the target account, the Iroha peer will return "already added" error status; use case flow stops.
Use case title
[FR0109] Signing multi-signature transaction
Status

DISCUSS

Preconditions
  • There is a multi-signature account in the Iroha network
  • The user has access to the one or many key pairs for the multi-signature account
  • The current amount of signatures to the multi-signature transaction is lower than a current quorum value

Use case flow

  1. The user obtains the current list of pending transactions (<<include>> FR0203)
  2. The user finds the required transaction that can be signed by his/her signatures
  3. The user signs required transaction using the available key pair by calling the corresponding method from CLI or client SDK
  4. The user sends signed transaction to the Iroha peer (<<include>> FR0100)
Postconditions
  • Amount of signatures in the signed instruction increased by 1 signature
  • Signed instruction disappears from the list of pending instructions for the current user's account
Alternative flow
  • On step 2 the user can select more than one transactions, all of them can be sent on step 4 as a separate requests
  • On step 3 the user can sign the transaction by more than one signature, and all of them can be sent as a single request per single transaction on step 4
Exception flow
  • On step 1, in case of the empty list of pending transactions, the Iroha peer will return corresponding status and the use case flow stops
  • On step 3, if the user uses key pair, which was already used for signing the transaction, the CLI/SDK will return corresponding error status; use case flow stops if there are no more available key pairs. TBD (define, will it be available to do on the client-side?)


Use case title
[FR0110] Changing the conditions for the multi-signature account
Status

DISCUSS

Preconditions
  • The user has permissions to change the conditions for the target multi-signature account

Use case flow

  1. The user requests the list of currently configured conditions for the target multi-signature account
  2. The user prepared the instruction with the list of conditions to be added/removed
  3. The user sends the transaction with the instruction to the Iroha peer (<<include>> FR0100)
  4. The Iroha peer sends the response to the user
Postconditions
  • The list of conditions for the target multi-signature account was changed correspondingly
Alternative flow
Exception flow

Acquiring data from the Iroha network by queries

Use case title
[FR0200] Acquiring data from the Iroha network by query
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow
Use case title
[FR0201] Acquiring the information about the selected account
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow
Use case title
[FR0202] Acquiring of the current permissions for the selected account
Status

DISCUSS

Preconditions

Use case flow


Postconditions
Alternative flow
Exception flow
Use case title
[FR0203] Acquiring a list of pending multi-signature instructions
Status

DISCUSS

Preconditions
  • The user has permissions to request the list of pending transactions

Use case flow

  1. The user prepares query for requesting the list of the pending transaction
  2. The user sends the query to the Iroha peer (<<include>> FR0200)
  3. The user receives the list of currently pending multi-signature transaction  TBD (should the Iroha expose all pending transactions, or we need to add the account ID / public key to filter the request?)
Postconditions
  • The user has the list of currently pending instructions
Alternative flowN/A
Exception flow
  • On step 3, if there are no currently pending transactions, the Iroha peer will return "empty response" status
Use case title
[FR0204] Acquiring a list of current conditions for a multi-signature account
Status

DISCUSS

Preconditions
  • The user has permissions to request a list of conditions to the target multi-signature account

Use case flow

  1. The user prepares query for requesting a list of currently configured conditions of signing for the target multi-signature account
  2. The user sends the query to the Iroha peer (<<include>> FR0200)
  3. The user receives the list of currently configured conditions of signing for the target multi-signature account
Postconditions
  • The user received the list of conditions for the target account
Alternative flowN/A
Exception flow
  • On step 3, if there are no currently configured conditions, the Iroha peer will return "empty response" status
  • On step 3, if the account is not multi-signature, the Iroha peer will return "not applicable" status
Use case title
[FR0205] Acquiring a block by its number
Status

DISCUSS

Preconditions
  • The user has permissions to request the block by its number

Use case flow

  1. The user prepares query for requesting the i-th block
  2. The user sends the query to the Iroha peer (<<include>> FR0200)
  3. The user receives the block description with all its' transactions etc
Postconditions
  • The user has the i-th block
Alternative flowN/A
Exception flow
  • On step 3, if there are no block specified, the Iroha peer will return "error/no such block" response
Use case title
[FR0206] Acquiring blocks subscription (can be extended with a start block number index)
Status

DISCUSS

Preconditions
  • The user has permissions to request blocks (subscription, can be separate permission or from <<include>> FR0205)

Use case flow

  1. The user prepares query for subscription for blocks
  2. The user sends the query to the Iroha peer (<<include>> FR0200)
  3. The user gets the connection to receive blocks within initialized 
Postconditions
  • The user has got stable blocks perception channel and newly arriving blocks
Alternative flowN/A
Exception flowN/A
Use case title
[FR0207] Acquiring pending transactions subscription
Status

DISCUSS

Preconditions
  • The user has permissions to request the list of pending transactions (subscription, can be separate permission or from <<include>> FR0203)

Use case flow

  1. The user prepares query for subscription for pending transactions
  2. The user sends the query to the Iroha peer (<<include>> FR0200)
  3. The user gets the connection to receive pending transactions within initialized 
Postconditions
  • The user has got stable pending transactions perception channel and newly arriving pending transactions
Alternative flowN/A
Exception flowN/A
Use case title
[FR0208] Subscribing on the query results
Status

DISCUSS

Preconditions
  • The user has permissions to get results of the target query

Use case flow

  1. The user prepares request data for the target query
  2. The user establishes permanent connection to the Iroha peer and provides the query request
  3. The Iroha peer confirms the connection and start sending updates on the query results until user closes the connection
  4. The user receives the results and performs continuous analysis of the payload
Postconditions
  • The user has continuous results of query execution
Alternative flow
Exception flow
  • On step 3, if the Iroha peer experiences issues with the network connection to other peers, the flow of results may be unplugged TBD
  • On step 3, if the user experiences issues with the network connection to the Iroha peer, the flow of results will be interrupted
  • On step 3, if the user experiences issues with the network connection to the Iroha peer, the flow of results will be interrupted
Use case title
[FR0209] Validate result of the query
Status

DISCUSS

Preconditions
  • The user has permissions to get results of the target query

Use case flow

  1. The user prepares request data for the target query
  2. The user establishes permanent connection to the Iroha peer and provides the query request
  3. Iroha peer returns response containing result of the query as well as the merkle proof of its inclusion to the latest WSV
Postconditions
  • The user has result of the query request with merkle proof of its validity
Alternative flow
Exception flow


Use case title
[FR0210] Query old Iroha state (i.e. query balance month ago)
Status

DISCUSS

Preconditions
  • The user has permissions to get results of the target query

Use case flow

  1. The user prepares request data for the target query
  2. The user establishes permanent connection to the Iroha peer and provides the query request
  3. Besides query params user provides date or block number corresponding to the state being queried
  4. Iroha peer reconstructs state for provided date or block
  5. Iroha peer returns response containing result of the query
Postconditions
  • The user has result of the query
Alternative flow
Exception flow


Non-functional requirements


Questions

Below is a list of questions to be addressed as a result of this requirements document:

QuestionOutcome

Not Doing

  • No labels