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