hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
create_account.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_CREATE_ACCOUNT_HPP
7 #define IROHA_CREATE_ACCOUNT_HPP
8 
9 #include "model/command.hpp"
10 
11 namespace iroha {
12  namespace model {
13 
17  struct CreateAccount : public Command {
21  std::string account_name;
22 
26  std::string domain_id;
27 
32 
33  bool operator==(const Command &command) const override;
34 
36 
37  CreateAccount(const std::string &account_name,
38  const std::string &domain_id,
39  const pubkey_t &pubkey)
40  : account_name(account_name), domain_id(domain_id), pubkey(pubkey) {}
41  };
42  } // namespace model
43 } // namespace iroha
44 #endif // IROHA_CREATE_ACCOUNT_HPP
Definition: command.hpp:14
CreateAccount()
Definition: create_account.hpp:35
pubkey_t pubkey
Definition: create_account.hpp:31
std::string domain_id
Definition: create_account.hpp:26
Definition: block_query.hpp:16
std::string account_name
Definition: create_account.hpp:21
bool operator==(const Command &command) const override
Definition: model_operators.cpp:124
CreateAccount(const std::string &account_name, const std::string &domain_id, const pubkey_t &pubkey)
Definition: create_account.hpp:37
Definition: create_account.hpp:17