Bitcoin Forum
May 24, 2024, 12:50:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generating private and public key pairs not just address?  (Read 247 times)
release (OP)
Member
**
Offline Offline

Activity: 184
Merit: 14


View Profile
December 07, 2020, 11:33:54 AM
 #1

Hi guys. I know how to generate a new private key and address pair as their are a few simple resources online for that. However I want a resource that will also generate the public key not just the address. I'd also like to see the keys in different formats if possible.

Years ago there was a site I used to use where it displayed public key and the keys in hex etc.

Any help will be appreciated.

Thanks
ranochigo
Legendary
*
Offline Offline

Activity: 2982
Merit: 4193



View Profile
December 07, 2020, 11:49:45 AM
 #2

You mean the ECDSA keypair? This site has quite a few useful resources and I assume that's what you're talking about: http://gobittest.appspot.com/.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
hosseinimr93
Legendary
*
Offline Offline

Activity: 2408
Merit: 5249



View Profile
December 07, 2020, 02:27:28 PM
Merited by dbshck (4), ABCbits (1), bitmover (1)
 #3

You can use bitaddress to derive the public key.
You only need to click on "Wallet Details" button and enter your private key.



If you enter your private key, bitaddress will give you the public key and private key in different formats.
Below is an example.





You can also use iancoleman to generate numerous private key and public key pairs.
Just click on "generate" button. iancoleman will give you all private keys, public keys and addresses generated from a BIP39 seed phrase.



.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
release (OP)
Member
**
Offline Offline

Activity: 184
Merit: 14


View Profile
December 08, 2020, 12:00:45 AM
 #4

Much appreciated yes those resources are exactly what U needed thanks
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18565


View Profile
December 08, 2020, 12:37:45 AM
 #5

Iancoleman has another page available at https://iancoleman.io/bitcoin-key-compression/ which will give more functionality than his BIP39 page for this purpose. You can paste in a compressed or uncompressed private or public key, and it will return the other type of private key (if you pasted a private key), and both types of public key and address.

It is worth pointing out that if you plan to use any of the addresses you are generating here, then you absolutely must download the site in question from the relevant GitHub, verify it, and run it on an airgapped computer. Sending coins to addresses generated on live sites will likely lead to your coins being stolen.
bitmover
Legendary
*
Offline Offline

Activity: 2310
Merit: 5962


bitcoindata.science


View Profile WWW
December 08, 2020, 02:17:43 AM
 #6

It is worth pointing out that if you plan to use any of the addresses you are generating here, then you absolutely must download the site in question from the relevant GitHub, verify it, and run it on an airgapped computer. Sending coins to addresses generated on live sites will likely lead to your coins being stolen.

I agree.
I will emphasize that those tools were not create to generate wallets and put your life savings in it. Those tools exist for educational/research purposes.

The best option would be not to fund those address with any relevant amount. Too many risks involved. Just add a few satoshis to make the tests you need, after following o_e_l_e_o suggestions.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV
Legendary
*
Online Online

Activity: 3318
Merit: 16688


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 08, 2020, 09:18:41 AM
 #7

Another option: you can use Electrum to get the public key: go to the Addresses tab, right-click an address > Details.

Renegade83
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 08, 2020, 06:15:42 PM
 #8

i have a weird question, i know generally if there is no way to generate a private key from a public key, however, if i had the public key and say, 44 of the 51 characters of the private key, could i possibly use them to fill in the missing digits? backstory: i bought a paper wallet and when the cops tore my car apart looking for something that wasnt tgere, they trampled my paper wallet. i can r ead all of the public key and all bu t like 7 or 8 digits of the private. is it possible to decipher the missing characters?
LoyceV
Legendary
*
Online Online

Activity: 3318
Merit: 16688


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 08, 2020, 06:46:20 PM
 #9

7 or 8 digits of the private. is it possible to decipher the missing characters?
You may be able to brute-force this. The last few keys are a checksum, so if you're missing the end, it's less work to find the key.
However, this isn't the right topic for this, you should create a new topic.

PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
December 08, 2020, 07:17:18 PM
 #10

i have a weird question, i know generally if there is no way to generate a private key from a public key, however, if i had the public key and say, 44 of the 51 characters of the private key, could i possibly use them to fill in the missing digits? backstory: i bought a paper wallet and when the cops tore my car apart looking for something that wasnt tgere, they trampled my paper wallet. i can r ead all of the public key and all bu t like 7 or 8 digits of the private. is it possible to decipher the missing characters?

Sure.
Take a look at my program here: https://github.com/PawelGorny/WifSolver

Depending on which characters are missing, solution will come sooner or later... Check examples.
aplistir
Full Member
***
Offline Offline

Activity: 378
Merit: 197



View Profile
December 09, 2020, 01:35:19 PM
 #11

You can use bitaddress to derive the public key.
You only need to click on "Wallet Details" button and enter your private key.

Bitaddress is an excellent tool. BUT never use it from the web-page. You are supposed to download a copy of bitaddress to your own machine, and use it locally. Preferably offline and after verifying the download.

You really wouldn't want to put bitcoins to an address, which has a private key that has been in the internet  Sad

As said, Electrum is a good choice too. Just double check that you download it from the right web-page. As there are web-pages that look a lot like official  Electrum pages, but give you a hacked version of it.  And you will end up losing your coins if you use them.


My Address: 121f7zb2U4g9iM4MiJTDhEzqeZGHzq5wLh
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!