hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_add_signatory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_ADD_SIGNATORY_HPP
7 #define IROHA_PROTO_ADD_SIGNATORY_HPP
8 
10 #include "commands.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16  class AddSignatory final : public CopyableProto<interface::AddSignatory,
17  iroha::protocol::Command,
18  AddSignatory> {
19  public:
20  template <typename CommandType>
21  explicit AddSignatory(CommandType &&command);
22 
23  AddSignatory(const AddSignatory &o);
24 
25  AddSignatory(AddSignatory &&o) noexcept;
26 
27  const interface::types::AccountIdType &accountId() const override;
28 
29  const interface::types::PubkeyType &pubkey() const override;
30 
31  private:
32  const iroha::protocol::AddSignatory &add_signatory_;
33 
34  const interface::types::PubkeyType pubkey_;
35  };
36 
37  } // namespace proto
38 } // namespace shared_model
39 
40 #endif // IROHA_PROTO_ADD_SIGNATORY_HPP
const interface::types::AccountIdType & accountId() const override
Definition: proto_add_signatory.cpp:28
AddSignatory(CommandType &&command)
Definition: proto_add_signatory.cpp:13
const interface::types::PubkeyType & pubkey() const override
Definition: proto_add_signatory.cpp:32
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
Definition: public_key.hpp:16
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
Definition: proto_add_signatory.hpp:16