src/rpcwallet.cpp
Value makekeypair(const Array& params, bool fHelp)
{
    if (fHelp || params.size() > 1)
        throw runtime_error(
            "makekeypair [prefix]\n"
            "Make a public/private key pair.\n"
            "[prefix] is optional preferred prefix for the public key.\n");

    string strPrefix = "";
    if (params.size() > 0)
        strPrefix = params[0].get_str();
 
    CKey key;
    key.MakeNewKey(false);

    CPrivKey vchPrivKey = key.GetPrivKey();
    Object result;
    result.push_back(Pair("PrivateKey", HexStr<CPrivKey::iterator>(vchPrivKey.begin(), vchPrivKey.end())));
    result.push_back(Pair("PublicKey", HexStr(key.GetPubKey().Raw())));
return result;
}
// triangles: make a public-private key pair
make a public-private key pair
make a public - private key pair
Value makekeypair(const Array& params, bool fHelp)
{
    if (fHelp || params.size() > 1)
        throw runtime_error(
            "makekeypair [prefix]\n"
            "Make a public/private key pair.\n"
            "[prefix] is optional preferred prefix for the public key.\n");
    string strPrefix = "";
    if (params.size() > 0)
        strPrefix = params[0].get_str();
    CKey key;
    key.MakeNewKey(false);
    CPrivKey vchPrivKey = key.GetPrivKey();
    Object result;
    result.push_back(Pair("PrivateKey", HexStr<CPrivKey::iterator>(vchPrivKey.begin(), vchPrivKey.end())));
    result.push_back(Pair("PublicKey", HexStr(key.GetPubKey().Raw())));
return result;
}
Value makekeypair ( const Array & params , bool fHelp ) { if ( fHelp || params . size ( ) > 1 ) throw runtime_error ( " \n " " \n " " \n " ) ; string strPrefix = " " ; if ( params . size ( ) > 0 ) strPrefix = params [ 0 ] . get_str ( ) ; CKey key ; key . MakeNewKey ( false ) ; CPrivKey vchPrivKey = key . GetPrivKey ( ) ; Object result ; result . push_back ( Pair ( " " , HexStr < CPrivKey :: iterator > ( vchPrivKey . begin ( ) , vchPrivKey . end ( ) ) ) ) ; result . push_back ( Pair ( " " , HexStr ( key . GetPubKey ( ) . Raw ( ) ) ) ) ; return result ; }
triangles: make a public-private key pair
triangles : make a public - private key pair