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

#include <bls_wrapper.h>

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

Public Member Functions

 CBLSPublicKey ()
 
void AggregateInsecure (const CBLSPublicKey &o)
 
bool PublicKeyShare (const std::vector< CBLSPublicKey > &mpk, const CBLSId &id)
 
bool DHKeyExchange (const CBLSSecretKey &sk, const CBLSPublicKey &pk)
 
CBLSWrapperoperator= (const CBLSWrapper &ref)=default
 
CBLSWrapperoperator= (CBLSWrapper &&ref)
 
bool operator== (const C &r) const
 
bool operator!= (const C &r) const
 
 CBLSWrapper ()
 
 CBLSWrapper (const std::vector< unsigned char > &vecBytes)
 
 CBLSWrapper (const CBLSWrapper &ref)=default
 
 CBLSWrapper (CBLSWrapper &&ref)
 
- Public Member Functions inherited from CBLSWrapper< bls::G1Element, BLS_CURVE_PUBKEY_SIZE, CBLSPublicKey >
 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 CBLSPublicKey &r) const
 
bool operator!= (const CBLSPublicKey &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 CBLSPublicKey AggregateInsecure (const std::vector< CBLSPublicKey > &pks)
 

Friends

class CBLSSecretKey
 
class CBLSSignature
 

Additional Inherited Members

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

Detailed Description

Definition at line 221 of file bls_wrapper.h.

Constructor & Destructor Documentation

◆ CBLSPublicKey()

CBLSPublicKey::CBLSPublicKey ( )
inline

Definition at line 232 of file bls_wrapper.h.

Here is the caller graph for this function:

Member Function Documentation

◆ AggregateInsecure() [1/2]

void CBLSPublicKey::AggregateInsecure ( const CBLSPublicKey o)

Definition at line 160 of file bls_wrapper.cpp.

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

◆ AggregateInsecure() [2/2]

CBLSPublicKey CBLSPublicKey::AggregateInsecure ( const std::vector< CBLSPublicKey > &  pks)
static

Definition at line 167 of file bls_wrapper.cpp.

Here is the call graph for this function:

◆ CBLSWrapper() [1/4]

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

Definition at line 54 of file bls_wrapper.h.

◆ CBLSWrapper() [2/4]

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

Definition at line 64 of file bls_wrapper.h.

◆ CBLSWrapper() [3/4]

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

◆ CBLSWrapper() [4/4]

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

Definition at line 57 of file bls_wrapper.h.

◆ DHKeyExchange()

bool CBLSPublicKey::DHKeyExchange ( const CBLSSecretKey sk,
const CBLSPublicKey pk 
)

Definition at line 215 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.

◆ PublicKeyShare()

bool CBLSPublicKey::PublicKeyShare ( const std::vector< CBLSPublicKey > &  mpk,
const CBLSId id 
)

Definition at line 186 of file bls_wrapper.cpp.

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

Friends And Related Function Documentation

◆ CBLSSecretKey

friend class CBLSSecretKey
friend

Definition at line 223 of file bls_wrapper.h.

◆ CBLSSignature

friend class CBLSSignature
friend

Definition at line 224 of file bls_wrapper.h.


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