hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
add_signatory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_ADD_SIGNATURE_HPP
7 #define IROHA_ADD_SIGNATURE_HPP
8 
9 #include <string>
10 #include "crypto/keypair.hpp"
11 #include "model/command.hpp"
12 
13 namespace iroha {
14  namespace model {
15 
19  struct AddSignatory : public Command {
23  std::string account_id;
24 
29 
30  bool operator==(const Command &command) const override;
31 
33 
34  AddSignatory(const std::string &account_id, const pubkey_t &pubkey)
35  : account_id(account_id), pubkey(pubkey) {}
36  };
37  } // namespace model
38 } // namespace iroha
39 #endif // IROHA_ADD_SIGNATURE_HPP
pubkey_t pubkey
Definition: add_signatory.hpp:28
Definition: command.hpp:14
bool operator==(const Command &command) const override
Definition: model_operators.cpp:115
std::string account_id
Definition: add_signatory.hpp:23
Definition: block_query.hpp:16
AddSignatory()
Definition: add_signatory.hpp:32
AddSignatory(const std::string &account_id, const pubkey_t &pubkey)
Definition: add_signatory.hpp:34
Definition: add_signatory.hpp:19