LCOV - code coverage report
Current view: top level - irohad/model - signature.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 1 1 100.0 %
Date: 2019-03-07 14:46:43 Functions: 4 4 100.0 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #ifndef IROHA_SIGNATURE_HPP
       7             : #define IROHA_SIGNATURE_HPP
       8             : 
       9             : #include "crypto/keypair.hpp"
      10             : 
      11             : namespace iroha {
      12             :   namespace model {
      13             : 
      14             :     /**
      15             :      * Signature is a Model structure to store crypto information
      16             :      */
      17             :     struct Signature {
      18             :       Signature() = default;
      19             :       Signature(sig_t signature, pubkey_t public_key)
      20           3 :           : signature(signature), pubkey(public_key) {}
      21             : 
      22             :       sig_t signature;
      23             : 
      24             :       using SignatureType = decltype(signature);
      25             : 
      26             :       pubkey_t pubkey;
      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

Generated by: LCOV version 1.13