PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
CBLSWrapper< ImplType, _SerSize, C > Class Template Reference

#include <bls_wrapper.h>

Collaboration diagram for CBLSWrapper< ImplType, _SerSize, C >:
[legend]

Public Member Functions

 CBLSWrapper ()
 
 CBLSWrapper (const std::vector< unsigned char > &vecBytes)
 
 CBLSWrapper (const CBLSWrapper &ref)=default
 
CBLSWrapperoperator= (const CBLSWrapper &ref)=default
 
 CBLSWrapper (CBLSWrapper &&ref)
 
CBLSWrapperoperator= (CBLSWrapper &&ref)
 
bool operator== (const C &r) const
 
bool operator!= (const C &r) const
 
bool IsValid () const
 
void Reset ()
 
void SetByteVector (const std::vector< uint8_t > &vecBytes)
 
std::vector< uint8_t > ToByteVector () const
 
const uint256GetHash () const
 
template<typename Stream >
void Serialize (Stream &s) const
 
template<typename Stream >
void Unserialize (Stream &s, bool checkMalleable=true)
 
bool CheckMalleable (const std::vector< uint8_t > &vecBytes) const
 
std::string ToString () const
 

Static Public Attributes

static const size_t SerSize = _SerSize
 

Protected Member Functions

constexpr size_t GetSerSize () const
 

Protected Attributes

ImplType impl
 
bool fValid {false}
 
uint256 cachedHash
 

Friends

class CBLSSecretKey
 
class CBLSPublicKey
 
class CBLSSignature
 

Detailed Description

template<typename ImplType, size_t _SerSize, typename C>
class CBLSWrapper< ImplType, _SerSize, C >

Definition at line 38 of file bls_wrapper.h.

Constructor & Destructor Documentation

◆ CBLSWrapper() [1/4]

template<typename ImplType , size_t _SerSize, typename C >
CBLSWrapper< ImplType, _SerSize, C >::CBLSWrapper ( )
inline

Definition at line 54 of file bls_wrapper.h.

◆ CBLSWrapper() [2/4]

template<typename ImplType , size_t _SerSize, typename C >
CBLSWrapper< ImplType, _SerSize, C >::CBLSWrapper ( const std::vector< unsigned char > &  vecBytes)
inline

Definition at line 57 of file bls_wrapper.h.

◆ CBLSWrapper() [3/4]

template<typename ImplType , size_t _SerSize, typename C >
CBLSWrapper< ImplType, _SerSize, C >::CBLSWrapper ( const CBLSWrapper< ImplType, _SerSize, C > &  ref)
default

◆ CBLSWrapper() [4/4]

template<typename ImplType , size_t _SerSize, typename C >
CBLSWrapper< ImplType, _SerSize, C >::CBLSWrapper ( CBLSWrapper< ImplType, _SerSize, C > &&  ref)
inline

Definition at line 64 of file bls_wrapper.h.

Member Function Documentation

◆ CheckMalleable()

template<typename ImplType , size_t _SerSize, typename C >
bool CBLSWrapper< ImplType, _SerSize, C >::CheckMalleable ( const std::vector< uint8_t > &  vecBytes) const
inline
Todo:
not sure if this is actually possible with the BLS libs. I'm assuming here that somewhere deep inside

Definition at line 151 of file bls_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetHash()

template<typename ImplType , size_t _SerSize, typename C >
const uint256& CBLSWrapper< ImplType, _SerSize, C >::GetHash ( ) const
inline

Definition at line 124 of file bls_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSerSize()

template<typename ImplType , size_t _SerSize, typename C >
constexpr size_t CBLSWrapper< ImplType, _SerSize, C >::GetSerSize ( ) const
inlineconstexprprotected

Definition at line 49 of file bls_wrapper.h.

◆ IsValid()

template<typename ImplType , size_t _SerSize, typename C >
bool CBLSWrapper< ImplType, _SerSize, C >::IsValid ( ) const
inline

Definition at line 87 of file bls_wrapper.h.

Here is the caller graph for this function:

◆ operator!=()

template<typename ImplType , size_t _SerSize, typename C >
bool CBLSWrapper< ImplType, _SerSize, C >::operator!= ( const C &  r) const
inline

Definition at line 82 of file bls_wrapper.h.

◆ operator=() [1/2]

template<typename ImplType , size_t _SerSize, typename C >
CBLSWrapper& CBLSWrapper< ImplType, _SerSize, C >::operator= ( CBLSWrapper< ImplType, _SerSize, C > &&  ref)
inline

Definition at line 70 of file bls_wrapper.h.

◆ operator=() [2/2]

template<typename ImplType , size_t _SerSize, typename C >
CBLSWrapper& CBLSWrapper< ImplType, _SerSize, C >::operator= ( const CBLSWrapper< ImplType, _SerSize, C > &  ref)
default

◆ operator==()

template<typename ImplType , size_t _SerSize, typename C >
bool CBLSWrapper< ImplType, _SerSize, C >::operator== ( const C &  r) const
inline

Definition at line 78 of file bls_wrapper.h.

◆ Reset()

template<typename ImplType , size_t _SerSize, typename C >
void CBLSWrapper< ImplType, _SerSize, C >::Reset ( )
inline

Definition at line 92 of file bls_wrapper.h.

Here is the caller graph for this function:

◆ Serialize()

template<typename ImplType , size_t _SerSize, typename C >
template<typename Stream >
void CBLSWrapper< ImplType, _SerSize, C >::Serialize ( Stream &  s) const
inline

Definition at line 134 of file bls_wrapper.h.

Here is the call graph for this function:

◆ SetByteVector()

template<typename ImplType , size_t _SerSize, typename C >
void CBLSWrapper< ImplType, _SerSize, C >::SetByteVector ( const std::vector< uint8_t > &  vecBytes)
inline

Definition at line 97 of file bls_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToByteVector()

template<typename ImplType , size_t _SerSize, typename C >
std::vector<uint8_t> CBLSWrapper< ImplType, _SerSize, C >::ToByteVector ( ) const
inline

Definition at line 116 of file bls_wrapper.h.

Here is the caller graph for this function:

◆ ToString()

template<typename ImplType , size_t _SerSize, typename C >
std::string CBLSWrapper< ImplType, _SerSize, C >::ToString ( ) const
inline

Definition at line 164 of file bls_wrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Unserialize()

template<typename ImplType , size_t _SerSize, typename C >
template<typename Stream >
void CBLSWrapper< ImplType, _SerSize, C >::Unserialize ( Stream &  s,
bool  checkMalleable = true 
)
inline

Definition at line 140 of file bls_wrapper.h.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ CBLSPublicKey

template<typename ImplType , size_t _SerSize, typename C >
friend class CBLSPublicKey
friend

Definition at line 41 of file bls_wrapper.h.

◆ CBLSSecretKey

template<typename ImplType , size_t _SerSize, typename C >
friend class CBLSSecretKey
friend

Definition at line 40 of file bls_wrapper.h.

◆ CBLSSignature

template<typename ImplType , size_t _SerSize, typename C >
friend class CBLSSignature
friend

Definition at line 42 of file bls_wrapper.h.

Member Data Documentation

◆ cachedHash

template<typename ImplType , size_t _SerSize, typename C >
uint256 CBLSWrapper< ImplType, _SerSize, C >::cachedHash
mutableprotected

Definition at line 47 of file bls_wrapper.h.

◆ fValid

template<typename ImplType , size_t _SerSize, typename C >
bool CBLSWrapper< ImplType, _SerSize, C >::fValid {false}
protected

Definition at line 46 of file bls_wrapper.h.

◆ impl

template<typename ImplType , size_t _SerSize, typename C >
ImplType CBLSWrapper< ImplType, _SerSize, C >::impl
protected

Definition at line 45 of file bls_wrapper.h.

◆ SerSize

template<typename ImplType , size_t _SerSize, typename C >
const size_t CBLSWrapper< ImplType, _SerSize, C >::SerSize = _SerSize
static

Definition at line 52 of file bls_wrapper.h.


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