Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

CBLSIESMultiRecipientBlobs Class Reference

#include <bls_ies.h>

+ Inheritance diagram for CBLSIESMultiRecipientBlobs:
+ Collaboration diagram for CBLSIESMultiRecipientBlobs:

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
 
template<typename Stream , typename Operation >
ADD_SERIALIZE_METHODS void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

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

Detailed Description

Definition at line 78 of file bls_ies.h.

Member Typedef Documentation

◆ Blob

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

Definition at line 81 of file bls_ies.h.

◆ BlobVector

Definition at line 82 of file bls_ies.h.

Member Function Documentation

◆ Decrypt()

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

◆ Encrypt() [1/2]

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

Definition at line 67 of file bls_ies.cpp.

References InitEncrypt().

Referenced by CBLSIESMultiRecipientObjects< Object >::Encrypt().

◆ Encrypt() [2/2]

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

◆ InitEncrypt()

void CBLSIESMultiRecipientBlobs::InitEncrypt ( size_t  count)

◆ SerializationOp()

template<typename Stream , typename Operation >
ADD_SERIALIZE_METHODS void CBLSIESMultiRecipientBlobs::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 104 of file bls_ies.h.

References blobs, ephemeralPubKey, ivSeed, and READWRITE.

Member Data Documentation

◆ blobs

BlobVector CBLSIESMultiRecipientBlobs::blobs

◆ ephemeralPubKey

CBLSPublicKey CBLSIESMultiRecipientBlobs::ephemeralPubKey

Definition at line 85 of file bls_ies.h.

Referenced by Decrypt(), InitEncrypt(), and SerializationOp().

◆ ephemeralSecretKey

CBLSSecretKey CBLSIESMultiRecipientBlobs::ephemeralSecretKey

Definition at line 90 of file bls_ies.h.

Referenced by Encrypt(), and InitEncrypt().

◆ ivSeed

uint256 CBLSIESMultiRecipientBlobs::ivSeed

Definition at line 86 of file bls_ies.h.

Referenced by Decrypt(), InitEncrypt(), and SerializationOp().

◆ ivVector

std::vector<uint256> CBLSIESMultiRecipientBlobs::ivVector

Definition at line 91 of file bls_ies.h.

Referenced by Encrypt(), and InitEncrypt().


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