Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <bls.h>

+ Inheritance diagram for CBLSSecretKey:
+ Collaboration diagram for CBLSSecretKey:

Public Member Functions

 CBLSSecretKey ()
 
void AggregateInsecure (const CBLSSecretKey &o)
 
void MakeNewKey ()
 
bool SecretKeyShare (const std::vector< CBLSSecretKey > &msk, const CBLSId &id)
 
CBLSPublicKey GetPublicKey () const
 
CBLSSignature Sign (const uint256 &hash) const
 
CBLSWrapperoperator= (const CBLSWrapper &ref)=default
 
CBLSWrapperoperator= (CBLSWrapper &&ref)
 
bool operator== (const C &r) const
 
bool operator!= (const C &r) const
 
- Public Member Functions inherited from CBLSWrapper< bls::PrivateKey, BLS_CURVE_SECKEY_SIZE, CBLSSecretKey >
 CBLSWrapper ()
 
 CBLSWrapper (const CBLSWrapper &ref)=default
 
 CBLSWrapper (CBLSWrapper &&ref)
 
CBLSWrapperoperator= (const CBLSWrapper &ref)=default
 
CBLSWrapperoperator= (CBLSWrapper &&ref)
 
bool operator== (const CBLSSecretKey &r) const
 
bool operator!= (const CBLSSecretKey &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 CBLSSecretKey AggregateInsecure (const std::vector< CBLSSecretKey > &sks)
 

Protected Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from CBLSWrapper< bls::PrivateKey, BLS_CURVE_SECKEY_SIZE, CBLSSecretKey >
static const size_t SerSize
 
- Protected Attributes inherited from CBLSWrapper< bls::PrivateKey, BLS_CURVE_SECKEY_SIZE, CBLSSecretKey >
bls::PrivateKey impl
 
bool fValid
 
uint256 cachedHash
 

Detailed Description

Definition at line 238 of file bls.h.

Constructor & Destructor Documentation

◆ CBLSSecretKey()

CBLSSecretKey::CBLSSecretKey ( )
inline

Definition at line 245 of file bls.h.

Referenced by AggregateInsecure().

Member Function Documentation

◆ AggregateInsecure() [1/2]

◆ AggregateInsecure() [2/2]

CBLSSecretKey CBLSSecretKey::AggregateInsecure ( const std::vector< CBLSSecretKey > &  sks)
static

◆ GetPublicKey()

◆ InternalGetBuf()

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

◆ InternalSetBuf()

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

◆ MakeNewKey()

◆ operator!=()

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

Definition at line 89 of file bls.h.

◆ operator=() [1/2]

CBLSWrapper& CBLSWrapper< ImplType, _SerSize, C >::operator=
default

◆ operator=() [2/2]

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

Definition at line 77 of file bls.h.

◆ operator==()

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

Definition at line 85 of file bls.h.

◆ SecretKeyShare()

◆ Sign()


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