Kagome
Polkadot Runtime Engine in C++17
secp256k1_types.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CRYPTO_SECP256K1_TYPES_HPP
7 #define KAGOME_CRYPTO_SECP256K1_TYPES_HPP
8 
9 #include "common/blob.hpp"
10 
12  namespace constants {
13  static constexpr size_t kUncompressedPublicKeySize = 65u;
14  static constexpr size_t kCompressedPublicKeySize = 33u;
15  static constexpr size_t kCompactSignatureSize = 65u;
16  static constexpr size_t kGeneralPublicKeySize = 64u;
17  } // namespace constants
18 
19  using Secp256k1VerifyError = uint8_t;
20  namespace secp256k1_verify_error {
21  static constexpr Secp256k1VerifyError kInvalidRS = 0;
22  static constexpr Secp256k1VerifyError kInvalidV = 1;
24  } // namespace secp256k1_verify_error
25 
30 
34  using UncompressedPublicKey =
36 
41 
46 
51 } // namespace kagome::crypto::secp256k1
52 
53 #endif // KAGOME_CRYPTO_SECP256K1_TYPES_HPP
Blob< 32 > Hash256
Definition: blob.hpp:230
static constexpr Secp256k1VerifyError kInvalidRS
static constexpr Secp256k1VerifyError kInvalidV
static constexpr size_t kCompactSignatureSize
static constexpr size_t kCompressedPublicKeySize
static constexpr size_t kUncompressedPublicKeySize
static constexpr Secp256k1VerifyError kInvalidSignature
static constexpr size_t kGeneralPublicKeySize