Kagome
Polkadot Runtime Engine in C++17
secp256k1_types.hpp File Reference
#include "common/blob.hpp"
Include dependency graph for secp256k1_types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 kagome::crypto::secp256k1
 
 kagome::crypto::secp256k1::constants
 
 kagome::crypto::secp256k1::secp256k1_verify_error
 

Typedefs

using kagome::crypto::secp256k1::Secp256k1VerifyError = uint8_t
 
using kagome::crypto::secp256k1::CompressedPublicKey = common::Blob< constants::kCompressedPublicKeySize >
 
using kagome::crypto::secp256k1::UncompressedPublicKey = common::Blob< constants::kUncompressedPublicKeySize >
 
using kagome::crypto::secp256k1::PublicKey = common::Blob< constants::kGeneralPublicKeySize >
 
using kagome::crypto::secp256k1::RSVSignature = common::Blob< constants::kCompactSignatureSize >
 
using kagome::crypto::secp256k1::MessageHash = common::Hash256
 

Variables

static constexpr size_t kagome::crypto::secp256k1::constants::kUncompressedPublicKeySize = 65u
 
static constexpr size_t kagome::crypto::secp256k1::constants::kCompressedPublicKeySize = 33u
 
static constexpr size_t kagome::crypto::secp256k1::constants::kCompactSignatureSize = 65u
 
static constexpr size_t kagome::crypto::secp256k1::constants::kGeneralPublicKeySize = 64u
 
static constexpr Secp256k1VerifyError kagome::crypto::secp256k1::secp256k1_verify_error::kInvalidRS = 0
 
static constexpr Secp256k1VerifyError kagome::crypto::secp256k1::secp256k1_verify_error::kInvalidV = 1
 
static constexpr Secp256k1VerifyError kagome::crypto::secp256k1::secp256k1_verify_error::kInvalidSignature = 2