secp256k1android/libs/secp256k1-cxx/secp256k1-cxx.cpp
bool Secp256K1::createPublicKeyFromPriv(const std::vector<uint8_t>& privateKey)
{
    privKey = privateKey;
    //verify priv key
    if (!verifyKey()) {
        throw Secp256K1Exception("Unable to create and verify key:  ");
    }

    if (!createPublicKey()) {
        throw Secp256K1Exception("Unable to create publick key");
    }
    return true;
}
/**
 * @brief verifies private key and generates corresponding public key
 * @param privateKey - in hexadecimal
 */
@brief verifies private key and generates corresponding public key
@param privateKey - in hexadecimal
@brief verifies private key and generates corresponding public key @param privateKey - in hexadecimal
bool Secp256K1::createPublicKeyFromPriv(const std::vector<uint8_t>& privateKey)
{
    privKey = privateKey;
    if (!verifyKey()) {
        throw Secp256K1Exception("Unable to create and verify key:  ");
    }
    if (!createPublicKey()) {
        throw Secp256K1Exception("Unable to create publick key");
    }
    return true;
}
bool Secp256K1 :: createPublicKeyFromPriv ( const std :: vector < uint8_t > & privateKey ) { privKey = privateKey ; if ( ! verifyKey ( ) ) { throw Secp256K1Exception ( " " ) ; } if ( ! createPublicKey ( ) ) { throw Secp256K1Exception ( " " ) ; } return true ; }
@brief verifies private key and generates corresponding public key
 @param privateKey - in hexadecimal
@brief verifies private key and generates corresponding public key @param privateKey - in hexadecimal
//verify priv key