Kagome
Polkadot Runtime Engine in C++17
kagome::primitives::Transcript Class Referencefinal

#include <transcript.hpp>

Collaboration diagram for kagome::primitives::Transcript:

Public Member Functions

 Transcript ()=default
 
 Transcript (const Transcript &)=default
 
Transcriptoperator= (const Transcript &)=default
 
 Transcript (Transcript &&)=delete
 
Transcriptoperator= (Transcript &&)=delete
 
template<typename T , size_t N>
void initialize (const T(&label)[N])
 
template<typename T , size_t N, typename K , size_t M>
void append_message (const T(&label)[N], const K(&msg)[M])
 
template<typename T , size_t N>
void append_message (const T(&label)[N], const uint64_t value)
 
auto data ()
 
auto data () const
 
bool operator== (const Transcript &other) const
 

Private Member Functions

template<typename T >
void decompose (const T &value, uint8_t(&dst)[sizeof(value)])
 

Private Attributes

Strobe strobe_
 

Detailed Description

C++ implementation of https://github.com/dalek-cryptography/merlin

Definition at line 17 of file transcript.hpp.

Constructor & Destructor Documentation

kagome::primitives::Transcript::Transcript ( )
default
kagome::primitives::Transcript::Transcript ( const Transcript )
default
kagome::primitives::Transcript::Transcript ( Transcript &&  )
delete

Member Function Documentation

template<typename T , size_t N, typename K , size_t M>
void kagome::primitives::Transcript::append_message ( const T(&)  label[N],
const K(&)  msg[M] 
)
inline

Definition at line 52 of file transcript.hpp.

template<typename T , size_t N>
void kagome::primitives::Transcript::append_message ( const T(&)  label[N],
const uint64_t  value 
)
inline

Definition at line 64 of file transcript.hpp.

auto kagome::primitives::Transcript::data ( )
inline

Definition at line 70 of file transcript.hpp.

auto kagome::primitives::Transcript::data ( ) const
inline

Definition at line 74 of file transcript.hpp.

template<typename T >
void kagome::primitives::Transcript::decompose ( const T &  value,
uint8_t(&)  dst[sizeof(value)] 
)
inlineprivate

Definition at line 21 of file transcript.hpp.

template<typename T , size_t N>
void kagome::primitives::Transcript::initialize ( const T(&)  label[N])
inline

Definition at line 45 of file transcript.hpp.

Transcript& kagome::primitives::Transcript::operator= ( const Transcript )
default
Transcript& kagome::primitives::Transcript::operator= ( Transcript &&  )
delete
bool kagome::primitives::Transcript::operator== ( const Transcript other) const
inline

Definition at line 78 of file transcript.hpp.

Member Data Documentation

Strobe kagome::primitives::Transcript::strobe_
private

Definition at line 18 of file transcript.hpp.


The documentation for this class was generated from the following file: