Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

rpcevo.cpp File Reference
#include <base58.h>
#include <consensus/validation.h>
#include <core_io.h>
#include <init.h>
#include <messagesigner.h>
#include <rpc/safemode.h>
#include <rpc/server.h>
#include <txmempool.h>
#include <utilmoneystr.h>
#include <validation.h>
#include <netbase.h>
#include <evo/specialtx.h>
#include <evo/providertx.h>
#include <evo/deterministicmns.h>
#include <evo/simplifiedmns.h>
#include <bls/bls.h>
#include "masternode/masternode-meta.h"
+ Include dependency graph for rpcevo.cpp:

Go to the source code of this file.

Functions

std::string GetHelpString (int nParamNum, std::string strParamName)
 
static CKey ParsePrivKey (CWallet *pwallet, const std::string &strKeyOrAddress, bool allowAddresses=true)
 
static CKeyID ParsePubKeyIDFromAddress (const std::string &strAddress, const std::string &paramName)
 
static CBLSPublicKey ParseBLSPubKey (const std::string &hexKey, const std::string &paramName)
 
static CBLSSecretKey ParseBLSSecretKey (const std::string &hexKey, const std::string &paramName)
 
void protx_list_help ()
 
static bool CheckWalletOwnsKey (CWallet *pwallet, const CKeyID &keyID)
 
static bool CheckWalletOwnsScript (CWallet *pwallet, const CScript &script)
 
UniValue BuildDMNListEntry (CWallet *pwallet, const CDeterministicMNCPtr &dmn, bool detailed)
 
UniValue protx_list (const JSONRPCRequest &request)
 
void protx_info_help ()
 
UniValue protx_info (const JSONRPCRequest &request)
 
void protx_diff_help ()
 
static uint256 ParseBlock (const UniValue &v, std::string strName)
 
UniValue protx_diff (const JSONRPCRequest &request)
 
void protx_help ()
 
UniValue protx (const JSONRPCRequest &request)
 
void bls_generate_help ()
 
UniValue bls_generate (const JSONRPCRequest &request)
 
void bls_fromsecret_help ()
 
UniValue bls_fromsecret (const JSONRPCRequest &request)
 
void bls_help ()
 
UniValue _bls (const JSONRPCRequest &request)
 
void RegisterEvoRPCCommands (CRPCTable &tableRPC)
 Register Evo RPC commands. More...
 

Variables

static const CRPCCommand commands []
 

Function Documentation

◆ _bls()

◆ bls_fromsecret()

◆ bls_fromsecret_help()

void bls_fromsecret_help ( )

Definition at line 1232 of file rpcevo.cpp.

References HelpExampleCli().

Referenced by bls_fromsecret().

◆ bls_generate()

◆ bls_generate_help()

void bls_generate_help ( )

Definition at line 1202 of file rpcevo.cpp.

References HelpExampleCli().

Referenced by bls_generate().

◆ bls_help()

void bls_help ( )

Definition at line 1266 of file rpcevo.cpp.

Referenced by _bls().

◆ BuildDMNListEntry()

◆ CheckWalletOwnsKey()

static bool CheckWalletOwnsKey ( CWallet pwallet,
const CKeyID keyID 
)
static

Definition at line 904 of file rpcevo.cpp.

References CWallet::HaveKey().

Referenced by BuildDMNListEntry(), and protx_list().

◆ CheckWalletOwnsScript()

static bool CheckWalletOwnsScript ( CWallet pwallet,
const CScript script 
)
static

Definition at line 915 of file rpcevo.cpp.

References ExtractDestination(), CBasicKeyStore::HaveCScript(), and CWallet::HaveKey().

Referenced by BuildDMNListEntry(), and protx_list().

◆ GetHelpString()

std::string GetHelpString ( int  nParamNum,
std::string  strParamName 
)

Definition at line 38 of file rpcevo.cpp.

References strprintf.

Referenced by protx_info_help().

◆ ParseBlock()

static uint256 ParseBlock ( const UniValue v,
std::string  strName 
)
static

◆ ParseBLSPubKey()

static CBLSPublicKey ParseBLSPubKey ( const std::string &  hexKey,
const std::string &  paramName 
)
static

◆ ParseBLSSecretKey()

static CBLSSecretKey ParseBLSSecretKey ( const std::string &  hexKey,
const std::string &  paramName 
)
static

◆ ParsePrivKey()

static CKey ParsePrivKey ( CWallet pwallet,
const std::string &  strKeyOrAddress,
bool  allowAddresses = true 
)
static

◆ ParsePubKeyIDFromAddress()

static CKeyID ParsePubKeyIDFromAddress ( const std::string &  strAddress,
const std::string &  paramName 
)
static

Definition at line 149 of file rpcevo.cpp.

References DecodeDestination(), JSONRPCError(), RPC_INVALID_PARAMETER, and strprintf.

◆ protx()

◆ protx_diff()

◆ protx_diff_help()

void protx_diff_help ( )

Definition at line 1095 of file rpcevo.cpp.

Referenced by protx_diff().

◆ protx_help()

void protx_help ( )

Definition at line 1141 of file rpcevo.cpp.

Referenced by protx().

◆ protx_info()

◆ protx_info_help()

void protx_info_help ( )

Definition at line 1059 of file rpcevo.cpp.

References GetHelpString(), and HelpExampleCli().

Referenced by protx_info().

◆ protx_list()

◆ protx_list_help()

void protx_list_help ( )

Definition at line 885 of file rpcevo.cpp.

Referenced by protx_list().

◆ RegisterEvoRPCCommands()

void RegisterEvoRPCCommands ( CRPCTable tableRPC)

Register Evo RPC commands.

Definition at line 1307 of file rpcevo.cpp.

References CRPCTable::appendCommand(), ARRAYLEN, commands, name, and tableRPC.

Referenced by RegisterAllCoreRPCCommands().

Variable Documentation

◆ commands

const CRPCCommand commands[]
static
Initial value:
=
{
{ "evo", "bls", &_bls, {} },
{ "evo", "protx", &protx, {} },
}
UniValue protx(const JSONRPCRequest &request)
Definition: rpcevo.cpp:1167
UniValue _bls(const JSONRPCRequest &request)
Definition: rpcevo.cpp:1280

Definition at line 1300 of file rpcevo.cpp.

Referenced by RegisterEvoRPCCommands().

Released under the MIT license