Bitcoin Forum
May 04, 2024, 01:34:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Project Development / Pickaxe Power - Bitcoin and Altcoin Address Generator (Split Key) on: February 26, 2017, 03:14:49 AM
Closed Thread

2  Bitcoin / Project Development / Trying to create a FPGA miner with vanity address split-key generator on: December 05, 2016, 05:47:04 AM
Hi sorry to bring up a old thread, but I am trying to create a fpga miner this is the part of the code im stuck with :
https://bitcointalk.org/index.php?topic=1704597

if someone wants to help that be great, @ThePicachu any guidance ?
3  Bitcoin / Development & Technical Discussion / C - Generate Public key of (public key hex + private key hex) - any help ? on: December 05, 2016, 03:41:38 AM
Following this topic : https://bitcointalk.org/index.php?topic=90587.20

Can anyone help me, I am try to take a public key and private key, and create a split address public key, here is my code :

The out put is a char ptr which I convert to const after.
Code:

char* convert_public_key_and_private_wif_to_pubkey(const char* pub_key, const char* priv_key) {
    EC_GROUP* ecgrp;
    EC_KEY* miner_key;
    EC_POINT* tmpg;
    EC_POINT* ppnt;
    BIGNUM order;
    BIGNUM cofactor;
    BIGNUM bnbase;
    BIGNUM bnpriv;
   
   
    unsigned char eckey_buf[128], *pend;
   
    // Init BiGNUMs
    BN_init(&bnbase);
    BN_init(&order);
    BN_init(&cofactor);
    BN_init(&bnpriv);
   
    // Set Bignum Base.
    BN_set_word(&bnbase, 58);
   
    // Init Context.
    BN_CTX bnctx = BN_CTX_new();
   
    // Init Curve.
    ecgrp = EC_GROUP_new_by_curve_name(NID_secp256k1);
    miner_key = EC_KEY_new_by_curve_name(NID_secp256k1);
   
    // Init Group from Public Key.
    tmpg = EC_POINT_hex2point(ecgrp, pub_key, NULL, NULL);
   
    // Get group order.
    EC_GROUP_get_order(ecgrp, &order, NULL);
   
    // Get Cofactor.
    EC_GROUP_get_cofactor(ecgrp, &cofactor, NULL);
   
    // Set Generator.
    EC_GROUP_set_generator(ecgrp, tmpg, &order, &cofactor);
   
    // Init Key.
    EC_KEY bnkey = EC_KEY_new();
   
    // Set key group.
    EC_KEY_set_group(bnkey, ecgrp);
    EC_GROUP pgroup = EC_KEY_get0_group(miner_key);
    ppnt = EC_POINT_new(pgroup);
   
    // Precompute.
    EC_KEY_precompute_mult(bnkey, bnctx);
   
    // Set private key.
    BN_init(&bnpriv);
    BN_bin2bn(priv_key, 64, &bnpriv);
    EC_KEY_set_private_key(miner_key, bnpriv);
    EC_POINT_mul(pgroup, ppnt, miner_key, NULL, NULL, NULL);
    EC_KEY_set_public_key(miner_key, ppnt);
   
    // Add keys together.
    BN_mod_add(&order,
               EC_KEY_get0_private_key(bnkey),
       EC_KEY_get0_private_key(miner_key),
               &cofactor,
               bnctx);

    // Get and return public key.
    pend = eckey_buf;
    i2o_ECPublicKey(bnkey, &pend);
    return pend;
}


I get the following errors :
Code:
util.c: In function 'convert_public_key_and_private_wif_to_pubkey':
util.c:48:5: error: variable 'bnctx' has initializer but incomplete type
     BN_CTX bnctx = BN_CTX_new();
     ^
util.c:48:12: error: storage size of 'bnctx' isn't known
     BN_CTX bnctx = BN_CTX_new();
            ^
util.c:67:5: error: variable 'bnkey' has initializer but incomplete type
     EC_KEY bnkey = EC_KEY_new();
     ^
util.c:67:12: error: storage size of 'bnkey' isn't known
     EC_KEY bnkey = EC_KEY_new();
            ^
util.c:71:5: error: variable 'pgroup' has initializer but incomplete type
     EC_GROUP pgroup = EC_KEY_get0_group(miner_key);
     ^
util.c:71:14: error: storage size of 'pgroup' isn't known
     EC_GROUP pgroup = EC_KEY_get0_group(miner_key);
              ^
util.c:79:15: warning: pointer targets in passing argument 1 of 'BN_bin2bn' differ in signedness [-Wpointer-sign]
     BN_bin2bn(priv_key, 64, &bnpriv);
               ^
In file included from util.c:5:0:
/usr/include/openssl/bn.h:442:9: note: expected 'const unsigned char *' but argument is of type 'const char *'
 BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
         ^
util.c:80:39: error: incompatible type for argument 2 of 'EC_KEY_set_private_key'
     EC_KEY_set_private_key(miner_key, bnpriv);
                                       ^
In file included from util.c:6:0:
/usr/include/openssl/ec.h:819:5: note: expected 'const BIGNUM * {aka const struct bignum_st *}' but argument is of type 'BIGNUM {aka struct bignum_st}'
 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv);
     ^
util.c:81:32: warning: passing argument 3 of 'EC_POINT_mul' from incompatible pointer type [-Wincompatible-pointer-types]
     EC_POINT_mul(pgroup, ppnt, miner_key, NULL, NULL, NULL);
                                ^
In file included from util.c:6:0:
/usr/include/openssl/ec.h:685:5: note: expected 'const BIGNUM * {aka const struct bignum_st *}' but argument is of type 'EC_KEY * {aka struct ec_key_st *}'
 int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n,
     ^
util.c:94:12: warning: pointer targets in return differ in signedness [-Wpointer-sign]
     return pend;
            ^
util.c:71:14: warning: unused variable 'pgroup' [-Wunused-variable]
     EC_GROUP pgroup = EC_KEY_get0_group(miner_key);
              ^
util.c:67:12: warning: unused variable 'bnkey' [-Wunused-variable]
     EC_KEY bnkey = EC_KEY_new();
            ^
util.c:48:12: warning: unused variable 'bnctx' [-Wunused-variable]
     BN_CTX bnctx = BN_CTX_new();
            ^
make: *** [<builtin>: util.o] Error 1

BUILD FAILED (exit value 2, total time: 8s)

I took code from the first page and parts from vanitygen, I cannot find the vanityminer code correctly so anyhelp would be appreciated !
4  Economy / Computer hardware / [SOLD] 1 x Sapphire (2GB) 6950 & 1 x Gigabyte (1GB) 6950 - [BTC][ESCROW][UK] on: August 20, 2014, 02:42:41 PM
Im selling my last 2 GPU's, not much mining has been done on these two, I only mined talkcoin (nist5) on them so not much abuse rofl.

I will only ship these in the uk, I will accept btc only and it will be over escrow (I have messaged gweedo, will update when he responds), I will require the shipping to be finalized early as I have to pay for the shipping,
However you will get a tracking number and a place to check up on its progress to your desired shipping address, I will also send the tracking number along with said link and the shipping address (along with pictures of the gpus packed up to prove they will be well packaged) to the escrow'er so they can validate I have shipped it out and it was delivered to the provided address. once it has been delivered to the address I require the funds to be finalized and sent over, I will pay the escrow fee, on behalf of the buyer.

Any questions please inquire, if both are snapped up by the same buyer then the shipping will be only £15 as the shipping price reflects the weight and insurance.

1 x Gigabyte Raedon HD (1GB) 6950 (GV-R6950C-1GD) - No Alternative bios switch.

Comes with GPU, Original Box + All manuals & Driver Disc
I have cleaned the gpu with cleaning alcohol and reapplyed heat sync paste.

Pictures :
http://i60.tinypic.com/hx2gzo.jpg
http://i58.tinypic.com/2wmni9f.jpg
http://i57.tinypic.com/2r5cjz8.jpg
http://i62.tinypic.com/xfovok.jpg

Price : £65
Shipping : UK Only Tracked Shipping (1/2 days)  - Cost : £10

1 x Sapphire Raedon HD (2GB) 6950 (6970 Unlocked) - Alternative bios switch.

Comes with GPU, 2x 6pin to 4pin molex only, I dont have the original box and manual's, however it will be packaged well and in a msi box with foam.

I have cleaned the gpu with cleaning alcohol and reapplyed heat sync paste.

http://i60.tinypic.com/1o9.jpg
http://i58.tinypic.com/xkrk21.jpg
http://i59.tinypic.com/2rh9ru8.jpg
http://i60.tinypic.com/ot3eah.jpg

Price : £65
Shipping : UK Only Tracked Shipping (1/2 days)  - Cost : £10


GPU's Have been sold externally, topic is now locked, Ciao Smiley
5  Bitcoin / Project Development / [Anouncement] New P2P / Escrow Crypto Currency Exchange - We need your help ! on: March 18, 2014, 07:57:25 PM
We're currently developing a safe, stable crypto currency exchange that works via p2p and escrow, we're not willing to go into much detail other than we will not have a online wallet functionality, all the trading is done from your computer / desktop via giving the software (will be 100% open source) permission to control your wallet, there is alot of things that could go wrong so we are keeping this hush until we can safely say it is secure.

We are very close to testing this and getting it online for a closed public beta, however we can not do this without your support ! We're currently looking to start getting new hardware, servers, employees, offices to officially start the launch, So if you can help us via donating it would speed this process up alot and by donating we will also honor all donaters with rewards on the system itself and you will also be the first set of public testers to test before we launch it publicly.

Please note if you are willing to donate (Also to make sure no one claims your donation) if you could sign a message for us with the address you sent your donation from; Via the wallet-qt / wallet-daemon with the following message (replace as stated) :

Hello,

I have donated the following amount [ 0.00CUR ] to help you get online !
My Email is [ email@youaresendingfrom.com ] and the transaction ID was :
[...]

[Your Name]

The email us at : bitmcex@gmail.com with the signed message and address to validate yourself and to make sure we know who you are so we can get in touch when it comes to public testing. If you would like to make a cash / fiat donation then please email / get in touch with us, You can also email us if you have any querys. Further more, You can follow us on twitter @ bitmcex for the latest developments.

Jed / [ Hect0r ]

Donation Address :

BTC :1BfUzgsvrYdhSxBFAPGb2rAm4DWM7Qx7yu

LTC :LXrYGpyDBseMnjhd9cFNwvFA2caC8KSb4j

FTC :6i3gyQXGCgTroJcdiPmiqz1FBdVvxxw3sM

VTC :VctZxPuJLMk6Cq2RA4TbKkVmF87nbDtxpo

Thank you, http://www.bit-mania.org
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!