PIVX Core  5.6.99
P2P Digital Currency
Public Types | Public Member Functions | Public Attributes | List of all members
CBLSIESMultiRecipientBlobs Class Reference

#include <bls_ies.h>

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

Public Types

typedef std::vector< unsigned char > Blob
 
typedef std::vector< BlobBlobVector
 

Public Member Functions

bool Encrypt (const std::vector< CBLSPublicKey > &recipients, const BlobVector &_blobs)
 
void InitEncrypt (size_t count)
 
bool Encrypt (size_t idx, const CBLSPublicKey &recipient, const Blob &blob)
 
bool Decrypt (size_t idx, const CBLSSecretKey &sk, Blob &blobRet) const
 
 SERIALIZE_METHODS (CBLSIESMultiRecipientBlobs, obj)
 

Public Attributes

CBLSPublicKey ephemeralPubKey
 
uint256 ivSeed
 
BlobVector blobs
 
CBLSSecretKey ephemeralSecretKey
 
std::vector< uint256ivVector
 

Detailed Description

Definition at line 75 of file bls_ies.h.

Member Typedef Documentation

◆ Blob

typedef std::vector<unsigned char> CBLSIESMultiRecipientBlobs::Blob

Definition at line 78 of file bls_ies.h.

◆ BlobVector

Definition at line 79 of file bls_ies.h.

Member Function Documentation

◆ Decrypt()

bool CBLSIESMultiRecipientBlobs::Decrypt ( size_t  idx,
const CBLSSecretKey sk,
Blob blobRet 
) const

Definition at line 109 of file bls_ies.cpp.

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

◆ Encrypt() [1/2]

bool CBLSIESMultiRecipientBlobs::Encrypt ( const std::vector< CBLSPublicKey > &  recipients,
const BlobVector _blobs 
)

Definition at line 64 of file bls_ies.cpp.

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

◆ Encrypt() [2/2]

bool CBLSIESMultiRecipientBlobs::Encrypt ( size_t  idx,
const CBLSPublicKey recipient,
const Blob blob 
)

Definition at line 94 of file bls_ies.cpp.

Here is the call graph for this function:

◆ InitEncrypt()

void CBLSIESMultiRecipientBlobs::InitEncrypt ( size_t  count)

Definition at line 81 of file bls_ies.cpp.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

CBLSIESMultiRecipientBlobs::SERIALIZE_METHODS ( CBLSIESMultiRecipientBlobs  ,
obj   
)
inline

Definition at line 97 of file bls_ies.h.

Member Data Documentation

◆ blobs

BlobVector CBLSIESMultiRecipientBlobs::blobs

Definition at line 84 of file bls_ies.h.

◆ ephemeralPubKey

CBLSPublicKey CBLSIESMultiRecipientBlobs::ephemeralPubKey

Definition at line 82 of file bls_ies.h.

◆ ephemeralSecretKey

CBLSSecretKey CBLSIESMultiRecipientBlobs::ephemeralSecretKey

Definition at line 87 of file bls_ies.h.

◆ ivSeed

uint256 CBLSIESMultiRecipientBlobs::ivSeed

Definition at line 83 of file bls_ies.h.

◆ ivVector

std::vector<uint256> CBLSIESMultiRecipientBlobs::ivVector

Definition at line 88 of file bls_ies.h.


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