PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Static Public Member Functions | List of all members
CBLSSecretKey Class Reference

#include <bls_wrapper.h>

Inheritance diagram for CBLSSecretKey:
[legend]
Collaboration diagram for CBLSSecretKey:
[legend]

Public Member Functions

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
 
bool Recover (const std::vector< CBLSSecretKey > &keys, const std::vector< CBLSId > &ids)
 
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 std::vector< unsigned char > &vecBytes)
 
 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 Reset ()
 
void SetByteVector (const std::vector< uint8_t > &vecBytes)
 
std::vector< uint8_t > ToByteVector () const
 
const uint256GetHash () const
 
void Serialize (Stream &s) const
 
void Unserialize (Stream &s, bool checkMalleable=true)
 
bool CheckMalleable (const std::vector< uint8_t > &vecBytes) const
 
std::string ToString () const
 

Static Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 201 of file bls_wrapper.h.

Member Function Documentation

◆ AggregateInsecure() [1/2]

void CBLSSecretKey::AggregateInsecure ( const CBLSSecretKey o)

Definition at line 27 of file bls_wrapper.cpp.

Here is the call graph for this function:

◆ AggregateInsecure() [2/2]

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

Definition at line 34 of file bls_wrapper.cpp.

Here is the call graph for this function:

◆ GetPublicKey()

CBLSPublicKey CBLSSecretKey::GetPublicKey ( ) const

Definition at line 99 of file bls_wrapper.cpp.

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

◆ MakeNewKey()

void CBLSSecretKey::MakeNewKey ( )

Definition at line 54 of file bls_wrapper.cpp.

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

◆ operator!=()

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

Definition at line 82 of file bls_wrapper.h.

◆ operator=() [1/2]

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

Definition at line 70 of file bls_wrapper.h.

◆ operator=() [2/2]

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

◆ operator==()

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

Definition at line 78 of file bls_wrapper.h.

◆ Recover()

bool CBLSSecretKey::Recover ( const std::vector< CBLSSecretKey > &  keys,
const std::vector< CBLSId > &  ids 
)

Definition at line 127 of file bls_wrapper.cpp.

Here is the call graph for this function:

◆ SecretKeyShare()

bool CBLSSecretKey::SecretKeyShare ( const std::vector< CBLSSecretKey > &  msk,
const CBLSId id 
)

Definition at line 70 of file bls_wrapper.cpp.

Here is the call graph for this function:

◆ Sign()

CBLSSignature CBLSSecretKey::Sign ( const uint256 hash) const

Definition at line 112 of file bls_wrapper.cpp.

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

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