hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_create_account.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_CREATE_ACCOUNT_HPP
7 #define IROHA_PROTO_CREATE_ACCOUNT_HPP
8 
10 
11 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
16  class CreateAccount final : public interface::CreateAccount {
17  public:
18  explicit CreateAccount(iroha::protocol::Command &command);
19 
20  const std::string &pubkey() const override;
21 
22  const interface::types::AccountNameType &accountName() const override;
23 
24  const interface::types::DomainIdType &domainId() const override;
25 
26  private:
27  const iroha::protocol::CreateAccount &create_account_;
28  };
29 
30  } // namespace proto
31 } // namespace shared_model
32 
33 #endif // IROHA_PROTO_CREATE_ACCOUNT_HPP
const interface::types::AccountNameType & accountName() const override
Definition: proto_create_account.cpp:20
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:56
const interface::types::DomainIdType & domainId() const override
Definition: proto_create_account.cpp:25
Definition: create_account.hpp:19
Definition: proto_create_account.hpp:16
std::string AccountNameType
Type of account name.
Definition: types.hpp:71
const std::string & pubkey() const override
Definition: proto_create_account.cpp:16
Definition: command_executor.hpp:12
CreateAccount(iroha::protocol::Command &command)
Definition: proto_create_account.cpp:13