hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
signature.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SIGNATURE_HPP
7 #define IROHA_SIGNATURE_HPP
8 
9 #include "crypto/keypair.hpp"
10 
11 namespace iroha {
12  namespace model {
13 
17  struct Signature {
18  Signature() = default;
20  : signature(signature), pubkey(public_key) {}
21 
23 
24  using SignatureType = decltype(signature);
25 
27 
28  using KeyType = decltype(pubkey);
29 
30  bool operator==(const Signature &rhs) const;
31  bool operator!=(const Signature &rhs) const;
32  };
33  } // namespace model
34 } // namespace iroha
35 #endif // IROHA_SIGNATURE_HPP
Definition: signature.hpp:17
Signature(sig_t signature, pubkey_t public_key)
Definition: signature.hpp:19
bool operator==(const Signature &rhs) const
Definition: model_operators.cpp:193
Definition: block_query.hpp:16
decltype(signature) SignatureType
Definition: signature.hpp:24
decltype(pubkey) KeyType
Definition: signature.hpp:28
pubkey_t pubkey
Definition: signature.hpp:26
bool operator!=(const Signature &rhs) const
Definition: model_operators.cpp:46
sig_t signature
Definition: signature.hpp:22