LCOV - code coverage report
Current view: top level - libs/crypto - keypair.hpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 0 1 0.0 %
Date: 2018-12-05 17:11:35 Functions: 2 4 50.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_CRYPTO_KEYPAIR_HPP
       7             : #define IROHA_CRYPTO_KEYPAIR_HPP
       8             : 
       9             : #include "common/blob.hpp"
      10             : 
      11             : namespace iroha {
      12             : 
      13             :   using sig_t = blob_t<64>;  // ed25519 sig is 64 bytes length
      14             :   using pubkey_t = blob_t<32>;
      15             :   using privkey_t = blob_t<32>;
      16             : 
      17             :   struct keypair_t {
      18             :     keypair_t() = default;
      19             : 
      20             :     keypair_t(pubkey_t pubkey, privkey_t privkey)
      21           0 :         : pubkey(pubkey), privkey(privkey) {}
      22             : 
      23             :     pubkey_t pubkey;
      24             :     privkey_t privkey;
      25             :   };
      26             : }  // namespace iroha
      27             : 
      28             : #endif  // IROHA_CRYPTO_KEYPAIR_HPP

Generated by: LCOV version 1.13