LCOV - code coverage report
Current view: top level - irohad/model/commands - add_signatory.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 0 1 0.0 %
Date: 2019-03-07 14:46:43 Functions: 8 11 72.7 %

          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_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             : 
      16             :     /**
      17             :      * Attach signatory for account
      18             :      */
      19             :     struct AddSignatory : public Command {
      20             :       /**
      21             :        * Account to add new signatory
      22             :        */
      23             :       std::string account_id;
      24             : 
      25             :       /**
      26             :        * New signatory is identified with public key
      27             :        */
      28             :       pubkey_t pubkey;
      29             : 
      30             :       bool operator==(const Command &command) const override;
      31             : 
      32             :       AddSignatory() {}
      33             : 
      34             :       AddSignatory(const std::string &account_id, const pubkey_t &pubkey)
      35           0 :           : account_id(account_id), pubkey(pubkey) {}
      36             :     };
      37             :   }  // namespace model
      38             : }  // namespace iroha
      39             : #endif  // IROHA_ADD_SIGNATURE_HPP

Generated by: LCOV version 1.13