Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

CBLSWrapper< ImplType, _SerSize, C > Class Template Referenceabstract

#include <bls.h>

+ Collaboration diagram for CBLSWrapper< ImplType, _SerSize, C >:

Public Member Functions

 CBLSWrapper ()
 
 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 SetBuf (const void *buf, size_t size)
 
void Reset ()
 
void GetBuf (void *buf, size_t size) const
 
template<typename T >
void SetBuf (const T &buf)
 
template<typename T >
void GetBuf (T &buf) const
 
const uint256GetHash () const
 
void UpdateHash () const
 
bool SetHexStr (const std::string &str)
 
void Serialize (CSizeComputer &s) const
 
template<typename Stream >
void Serialize (Stream &s) const
 
template<typename Stream >
void Unserialize (Stream &s, bool checkMalleable=true)
 
bool CheckMalleable (void *buf, size_t size) const
 
std::string ToString () const
 

Static Public Attributes

static const size_t SerSize = _SerSize
 

Protected Member Functions

constexpr size_t GetSerSize () const
 
virtual bool InternalSetBuf (const void *buf)=0
 
virtual bool InternalGetBuf (void *buf) const =0
 

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 34 of file bls.h.

Constructor & Destructor Documentation

◆ CBLSWrapper() [1/3]

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

Definition at line 53 of file bls.h.

◆ CBLSWrapper() [2/3]

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

◆ CBLSWrapper() [3/3]

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

Definition at line 71 of file bls.h.

Member Function Documentation

◆ CheckMalleable()

template<typename ImplType, size_t _SerSize, typename C>
bool CBLSWrapper< ImplType, _SerSize, C >::CheckMalleable ( void *  buf,
size_t  size 
) const
inline

◆ GetBuf() [1/2]

◆ GetBuf() [2/2]

template<typename ImplType, size_t _SerSize, typename C>
template<typename T >
void CBLSWrapper< ImplType, _SerSize, C >::GetBuf ( T &  buf) const
inline

Definition at line 141 of file bls.h.

◆ GetHash()

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

◆ GetSerSize()

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

◆ InternalGetBuf()

template<typename ImplType, size_t _SerSize, typename C>
virtual bool CBLSWrapper< ImplType, _SerSize, C >::InternalGetBuf ( void *  buf) const
protectedpure virtual

◆ InternalSetBuf()

template<typename ImplType, size_t _SerSize, typename C>
virtual bool CBLSWrapper< ImplType, _SerSize, C >::InternalSetBuf ( const void *  buf)
protectedpure virtual

◆ IsValid()

◆ operator!=()

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

Definition at line 89 of file bls.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Definition at line 77 of file bls.h.

◆ operator==()

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

Definition at line 85 of file bls.h.

◆ Reset()

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

◆ Serialize() [1/2]

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

Definition at line 173 of file bls.h.

◆ Serialize() [2/2]

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

Definition at line 179 of file bls.h.

◆ SetBuf() [1/2]

◆ SetBuf() [2/2]

template<typename ImplType, size_t _SerSize, typename C>
template<typename T >
void CBLSWrapper< ImplType, _SerSize, C >::SetBuf ( const T &  buf)
inline

Definition at line 135 of file bls.h.

◆ SetHexStr()

template<typename ImplType, size_t _SerSize, typename C>
bool CBLSWrapper< ImplType, _SerSize, C >::SetHexStr ( const std::string &  str)
inline

Definition at line 157 of file bls.h.

Referenced by bls_fromsecret(), ParseBLSPubKey(), and ParseBLSSecretKey().

◆ ToString()

◆ 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 186 of file bls.h.

◆ UpdateHash()

Friends And Related Function Documentation

◆ CBLSPublicKey

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

Definition at line 37 of file bls.h.

◆ CBLSSecretKey

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

Definition at line 36 of file bls.h.

◆ CBLSSignature

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

Definition at line 38 of file bls.h.

Member Data Documentation

◆ cachedHash

◆ fValid

◆ impl

◆ SerSize


The documentation for this class was generated from the following file:
Released under the MIT license