Pages:
Author

Topic: Simple private key to public key converter - page 2. (Read 683 times)

member
Activity: 184
Merit: 14
January 21, 2021, 03:34:27 AM
#3
If you are looking for a challenge, this Javascript code will do it (requires Node.js):

Code:
 Crypto = require('crypto');
  ecdh = Crypto.createECDH('secp256k1');
  ecdh.setPrivateKey(privKey);
  publicKey = ecdh.getPublicKey(null, 'compressed');

Lol thank you. Do you know python?
legendary
Activity: 4522
Merit: 3426
January 21, 2021, 03:27:49 AM
#2
If you are looking for a challenge, this Javascript code will do it (requires Node.js):

Code:
 Crypto = require('crypto');
  ecdh = Crypto.createECDH('secp256k1');
  ecdh.setPrivateKey(privKey);
  publicKey = ecdh.getPublicKey(null, 'compressed');
member
Activity: 184
Merit: 14
January 21, 2021, 02:56:57 AM
#1
I am hoping someone can provide mean script preferably python that converts private key in binary and/or hex and converts to public key. Preferably just the X coordinate. Y coordinate is fine also or compressed/uncompressed. Don't need the address generated I can do that myself just wanted a stand alone script. Thanks
Pages:
Jump to: