Electroneum
Namespaces | Macros | Functions | Variables
gen_multisig.cpp File Reference

Generates a set of multisig wallets. More...

#include <iostream>
#include <sstream>
#include <boost/program_options.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include "include_base_utils.h"
#include "crypto/crypto.h"
#include "common/i18n.h"
#include "common/command_line.h"
#include "common/util.h"
#include "common/scoped_message_writer.h"
#include "wallet/wallet_args.h"
#include "wallet/wallet2.h"
Include dependency graph for gen_multisig.cpp:

Namespaces

 genms
 
 anonymous_namespace{gen_multisig.cpp}
 

Macros

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "wallet.gen_multisig"
 

Functions

const char * genms::tr (const char *str)
 
static bool generate_multisig (uint32_t threshold, uint32_t total, const std::string &basename, network_type nettype, bool create_address_file)
 
int main (int argc, char *argv[])
 

Variables

const command_line::arg_descriptor< std::string > anonymous_namespace{gen_multisig.cpp}::arg_filename_base = {"filename-base", genms::tr("Base filename (-1, -2, etc suffixes will be appended as needed)"), ""}
 
const command_line::arg_descriptor< std::string > anonymous_namespace{gen_multisig.cpp}::arg_scheme = {"scheme", genms::tr("Give threshold and participants at once as M/N"), ""}
 
const command_line::arg_descriptor< uint32_t > anonymous_namespace{gen_multisig.cpp}::arg_participants = {"participants", genms::tr("How many participants will share parts of the multisig wallet"), 0}
 
const command_line::arg_descriptor< uint32_t > anonymous_namespace{gen_multisig.cpp}::arg_threshold = {"threshold", genms::tr("How many signers are required to sign a valid transaction"), 0}
 
const command_line::arg_descriptor< bool, falseanonymous_namespace{gen_multisig.cpp}::arg_testnet = {"testnet", genms::tr("Create testnet multisig wallets"), false}
 
const command_line::arg_descriptor< bool, falseanonymous_namespace{gen_multisig.cpp}::arg_stagenet = {"stagenet", genms::tr("Create stagenet multisig wallets"), false}
 
const command_line::arg_descriptor< bool, falseanonymous_namespace{gen_multisig.cpp}::arg_create_address_file = {"create-address-file", genms::tr("Create an address file for new wallets"), false}
 
const command_line::arg_descriptor< std::vector< std::string > > anonymous_namespace{gen_multisig.cpp}::arg_command = {"command", ""}
 

Detailed Description

Generates a set of multisig wallets.

Macro Definition Documentation

◆ ELECTRONEUM_DEFAULT_LOG_CATEGORY

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "wallet.gen_multisig"

Function Documentation

◆ generate_multisig()

static bool generate_multisig ( uint32_t  threshold,
uint32_t  total,
const std::string &  basename,
network_type  nettype,
bool  create_address_file 
)
static

◆ main()

int main ( int  argc,
char *  argv[] 
)