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 
12 #include "commands.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
17 
18  class CreateAccount final : public CopyableProto<interface::CreateAccount,
19  iroha::protocol::Command,
20  CreateAccount> {
21  public:
22  template <typename CommandType>
23  explicit CreateAccount(CommandType &&command);
24 
25  CreateAccount(const CreateAccount &o);
26 
27  CreateAccount(CreateAccount &&o) noexcept;
28 
29  const interface::types::PubkeyType &pubkey() const override;
30 
31  const interface::types::AccountNameType &accountName() const override;
32 
33  const interface::types::DomainIdType &domainId() const override;
34 
35  private:
36  const iroha::protocol::CreateAccount &create_account_;
37 
38  const interface::types::PubkeyType pubkey_;
39  };
40 
41  } // namespace proto
42 } // namespace shared_model
43 
44 #endif // IROHA_PROTO_CREATE_ACCOUNT_HPP
const interface::types::AccountNameType & accountName() const override
Definition: proto_create_account.cpp:32
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:49
const interface::types::DomainIdType & domainId() const override
Definition: proto_create_account.cpp:37
const interface::types::PubkeyType & pubkey() const override
Definition: proto_create_account.cpp:28
CreateAccount(CommandType &&command)
Definition: proto_create_account.cpp:13
Definition: proto_create_account.hpp:18
std::string AccountNameType
Type of account name.
Definition: types.hpp:65
Definition: public_key.hpp:16
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45