Kagome
Polkadot Runtime Engine in C++17
|
#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"
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) | |
struct kagome::crypto::VRFVerifyOutput |
Output of a verifiable random function verification.
Definition at line 67 of file sr25519_types.hpp.
Class Members | ||
---|---|---|
bool | is_less | |
bool | is_valid |
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 | |||
) |