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"
13 
14 namespace shared_model {
15  namespace proto {
16 
17  class CreateAccount final : public interface::CreateAccount {
18  public:
19  explicit CreateAccount(iroha::protocol::Command &command);
20 
21  const interface::types::PubkeyType &pubkey() const override;
22 
23  const interface::types::AccountNameType &accountName() const override;
24 
25  const interface::types::DomainIdType &domainId() const override;
26 
27  private:
28  const iroha::protocol::CreateAccount &create_account_;
29 
30  const interface::types::PubkeyType pubkey_;
31  };
32 
33  } // namespace proto
34 } // namespace shared_model
35 
36 #endif // IROHA_PROTO_CREATE_ACCOUNT_HPP
const interface::types::AccountNameType & accountName() const override
Definition: proto_create_account.cpp:21
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:53
const interface::types::DomainIdType & domainId() const override
Definition: proto_create_account.cpp:26
const interface::types::PubkeyType & pubkey() const override
Definition: proto_create_account.cpp:17
Definition: create_account.hpp:19
Definition: proto_create_account.hpp:17
std::string AccountNameType
Type of account name.
Definition: types.hpp:68
Definition: public_key.hpp:16
Definition: command_executor.hpp:12
CreateAccount(iroha::protocol::Command &command)
Definition: proto_create_account.cpp:13