PIVX Core  5.6.99
P2P Digital Currency
Functions | Variables
bls Namespace Reference

Functions

std::string EncodeSecret (const CChainParams &params, const CBLSSecretKey &key)
 
std::string EncodePublic (const CChainParams &params, const CBLSPublicKey &pk)
 
Optional< CBLSSecretKeyDecodeSecret (const CChainParams &params, const std::string &keyStr)
 
Optional< CBLSPublicKeyDecodePublic (const CChainParams &params, const std::string &keyStr)
 

Variables

const size_t ConvertedBlsSkSize = (BLS_CURVE_SECKEY_SIZE * 8 + 4) / 5
 
const size_t ConvertedBlsPkSize = (BLS_CURVE_PUBKEY_SIZE * 8 + 4) / 5
 

Function Documentation

◆ DecodePublic()

Optional< CBLSPublicKey > bls::DecodePublic ( const CChainParams params,
const std::string &  keyStr 
)

Definition at line 68 of file key_io.cpp.

Here is the caller graph for this function:

◆ DecodeSecret()

Optional< CBLSSecretKey > bls::DecodeSecret ( const CChainParams params,
const std::string &  keyStr 
)

Definition at line 63 of file key_io.cpp.

Here is the caller graph for this function:

◆ EncodePublic()

std::string bls::EncodePublic ( const CChainParams params,
const CBLSPublicKey pk 
)

Definition at line 55 of file key_io.cpp.

Here is the caller graph for this function:

◆ EncodeSecret()

std::string bls::EncodeSecret ( const CChainParams params,
const CBLSSecretKey key 
)

Definition at line 50 of file key_io.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ ConvertedBlsPkSize

const size_t bls::ConvertedBlsPkSize = (BLS_CURVE_PUBKEY_SIZE * 8 + 4) / 5

Definition at line 61 of file key_io.cpp.

◆ ConvertedBlsSkSize

const size_t bls::ConvertedBlsSkSize = (BLS_CURVE_SECKEY_SIZE * 8 + 4) / 5

Definition at line 60 of file key_io.cpp.