Kagome
Polkadot Runtime Engine in C++17
sr25519_types.hpp File Reference
#include <schnorrkel/schnorrkel.h>
#include <boost/multiprecision/cpp_int.hpp>
#include <gsl/span>
#include "common/blob.hpp"
#include "common/mp_utils.hpp"
#include "scale/tie.hpp"
Include dependency graph for sr25519_types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kagome::crypto::VRFOutput
 
struct  kagome::crypto::VRFVerifyOutput
 
struct  kagome::crypto::Sr25519Keypair
 
struct  kagome::crypto::Sr25519KeypairAndSeed
 

Namespaces

 kagome::crypto
 
 kagome::crypto::constants::sr25519
 
 kagome::crypto::constants::sr25519::vrf
 

Typedefs

using kagome::crypto::VRFPreOutput = std::array< uint8_t, constants::sr25519::vrf::OUTPUT_SIZE >
 
using kagome::crypto::VRFThreshold = boost::multiprecision::uint128_t
 
using kagome::crypto::VRFProof = std::array< uint8_t, constants::sr25519::vrf::PROOF_SIZE >
 

Enumerations

enum  {
  kagome::crypto::constants::sr25519::KEYPAIR_SIZE = SR25519_KEYPAIR_SIZE, kagome::crypto::constants::sr25519::SECRET_SIZE = SR25519_SECRET_SIZE, kagome::crypto::constants::sr25519::PUBLIC_SIZE = SR25519_PUBLIC_SIZE, kagome::crypto::constants::sr25519::SIGNATURE_SIZE = SR25519_SIGNATURE_SIZE,
  kagome::crypto::constants::sr25519::SEED_SIZE = SR25519_SEED_SIZE
}
 
enum  { kagome::crypto::constants::sr25519::vrf::PROOF_SIZE = SR25519_VRF_PROOF_SIZE, kagome::crypto::constants::sr25519::vrf::OUTPUT_SIZE = SR25519_VRF_OUTPUT_SIZE }
 

Functions

 KAGOME_BLOB_STRICT_TYPEDEF (kagome::crypto, Sr25519SecretKey, constants::sr25519::SECRET_SIZE)
 
 KAGOME_BLOB_STRICT_TYPEDEF (kagome::crypto, Sr25519PublicKey, constants::sr25519::PUBLIC_SIZE)
 
 KAGOME_BLOB_STRICT_TYPEDEF (kagome::crypto, Sr25519Signature, constants::sr25519::SIGNATURE_SIZE)
 
 KAGOME_BLOB_STRICT_TYPEDEF (kagome::crypto, Sr25519Seed, constants::sr25519::SEED_SIZE)
 

Class Documentation

struct kagome::crypto::VRFVerifyOutput

Output of a verifiable random function verification.

Definition at line 67 of file sr25519_types.hpp.

Collaboration diagram for kagome::crypto::VRFVerifyOutput:
Class Members
bool is_less
bool is_valid

Function Documentation

KAGOME_BLOB_STRICT_TYPEDEF ( kagome::crypto  ,
Sr25519SecretKey  ,
constants::sr25519::SECRET_SIZE   
)
KAGOME_BLOB_STRICT_TYPEDEF ( kagome::crypto  ,
Sr25519PublicKey  ,
constants::sr25519::PUBLIC_SIZE   
)
KAGOME_BLOB_STRICT_TYPEDEF ( kagome::crypto  ,
Sr25519Signature  ,
constants::sr25519::SIGNATURE_SIZE   
)
KAGOME_BLOB_STRICT_TYPEDEF ( kagome::crypto  ,
Sr25519Seed  ,
constants::sr25519::SEED_SIZE   
)