PIVX Core  5.6.99
P2P Digital Currency
Namespaces | Functions | Variables
key_io.cpp File Reference
#include "bls/key_io.h"
#include "chainparams.h"
#include "bech32.h"
#include "bls/bls_wrapper.h"
Include dependency graph for key_io.cpp:

Go to the source code of this file.

Namespaces

 bls
 

Functions

std::string bls::EncodeSecret (const CChainParams &params, const CBLSSecretKey &key)
 
std::string bls::EncodePublic (const CChainParams &params, const CBLSPublicKey &pk)
 
Optional< CBLSSecretKeybls::DecodeSecret (const CChainParams &params, const std::string &keyStr)
 
Optional< CBLSPublicKeybls::DecodePublic (const CChainParams &params, const std::string &keyStr)
 

Variables

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