Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <bls.h>

+ Inheritance diagram for CBLSSignature:
+ Collaboration diagram for CBLSSignature:

Public Member Functions

 CBLSSignature ()
 
 CBLSSignature (const CBLSSignature &)=default
 
CBLSSignatureoperator= (const CBLSSignature &)=default
 
void AggregateInsecure (const CBLSSignature &o)
 
void SubInsecure (const CBLSSignature &o)
 
bool VerifyInsecure (const CBLSPublicKey &pubKey, const uint256 &hash) const
 
bool VerifyInsecureAggregated (const std::vector< CBLSPublicKey > &pubKeys, const std::vector< uint256 > &hashes) const
 
bool VerifySecureAggregated (const std::vector< CBLSPublicKey > &pks, const uint256 &hash) const
 
bool Recover (const std::vector< CBLSSignature > &sigs, const std::vector< CBLSId > &ids)
 
bool operator== (const C &r) const
 
bool operator!= (const C &r) const
 
 CBLSWrapper ()
 
 CBLSWrapper (const CBLSWrapper &ref)=default
 
 CBLSWrapper (CBLSWrapper &&ref)
 
- Public Member Functions inherited from CBLSWrapper< bls::InsecureSignature, BLS_CURVE_SIG_SIZE, CBLSSignature >
 CBLSWrapper ()
 
 CBLSWrapper (const CBLSWrapper &ref)=default
 
 CBLSWrapper (CBLSWrapper &&ref)
 
CBLSWrapperoperator= (const CBLSWrapper &ref)=default
 
CBLSWrapperoperator= (CBLSWrapper &&ref)
 
bool operator== (const CBLSSignature &r) const
 
bool operator!= (const CBLSSignature &r) const
 
bool IsValid () const
 
void SetBuf (const void *buf, size_t size)
 
void SetBuf (const T &buf)
 
void Reset ()
 
void GetBuf (void *buf, size_t size) const
 
void GetBuf (T &buf) const
 
const uint256GetHash () const
 
void UpdateHash () const
 
bool SetHexStr (const std::string &str)
 
void Serialize (CSizeComputer &s) const
 
void Serialize (Stream &s) const
 
void Unserialize (Stream &s, bool checkMalleable=true)
 
bool CheckMalleable (void *buf, size_t size) const
 
std::string ToString () const
 

Static Public Member Functions

static CBLSSignature AggregateInsecure (const std::vector< CBLSSignature > &sigs)
 
static CBLSSignature AggregateSecure (const std::vector< CBLSSignature > &sigs, const std::vector< CBLSPublicKey > &pks, const uint256 &hash)
 

Protected Member Functions

bool InternalSetBuf (const void *buf)
 
bool InternalGetBuf (void *buf) const
 
- Protected Member Functions inherited from CBLSWrapper< bls::InsecureSignature, BLS_CURVE_SIG_SIZE, CBLSSignature >
constexpr size_t GetSerSize () const
 

Friends

class CBLSSecretKey
 

Additional Inherited Members

- Static Public Attributes inherited from CBLSWrapper< bls::InsecureSignature, BLS_CURVE_SIG_SIZE, CBLSSignature >
static const size_t SerSize
 
- Protected Attributes inherited from CBLSWrapper< bls::InsecureSignature, BLS_CURVE_SIG_SIZE, CBLSSignature >
bls::InsecureSignature impl
 
bool fValid
 
uint256 cachedHash
 

Detailed Description

Definition at line 286 of file bls.h.

Constructor & Destructor Documentation

◆ CBLSSignature() [1/2]

CBLSSignature::CBLSSignature ( )
inline

Definition at line 295 of file bls.h.

Referenced by AggregateInsecure(), and AggregateSecure().

◆ CBLSSignature() [2/2]

CBLSSignature::CBLSSignature ( const CBLSSignature )
default

Member Function Documentation

◆ AggregateInsecure() [1/2]

◆ AggregateInsecure() [2/2]

CBLSSignature CBLSSignature::AggregateInsecure ( const std::vector< CBLSSignature > &  sigs)
static

◆ AggregateSecure()

◆ CBLSWrapper() [1/3]

CBLSWrapper< ImplType, _SerSize, C >::CBLSWrapper
inline

Definition at line 71 of file bls.h.

◆ CBLSWrapper() [2/3]

CBLSWrapper< ImplType, _SerSize, C >::CBLSWrapper
inline

Definition at line 53 of file bls.h.

◆ CBLSWrapper() [3/3]

CBLSWrapper< ImplType, _SerSize, C >::CBLSWrapper
default

◆ InternalGetBuf()

bool CBLSSignature::InternalGetBuf ( void *  buf) const
protectedvirtual

◆ InternalSetBuf()

bool CBLSSignature::InternalSetBuf ( const void *  buf)
protectedvirtual

◆ operator!=()

bool CBLSWrapper< ImplType, _SerSize, C >::operator!=
inline

Definition at line 89 of file bls.h.

◆ operator=()

CBLSSignature& CBLSSignature::operator= ( const CBLSSignature )
default

◆ operator==()

bool CBLSWrapper< ImplType, _SerSize, C >::operator==
inline

Definition at line 85 of file bls.h.

◆ Recover()

◆ SubInsecure()

◆ VerifyInsecure()

◆ VerifyInsecureAggregated()

◆ VerifySecureAggregated()

bool CBLSSignature::VerifySecureAggregated ( const std::vector< CBLSPublicKey > &  pks,
const uint256 hash 
) const

Friends And Related Function Documentation

◆ CBLSSecretKey

friend class CBLSSecretKey
friend

Definition at line 288 of file bls.h.


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