Bitcoin Forum
November 07, 2024, 11:27:10 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generating private and public key pairs not just address?  (Read 267 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: 3038
Merit: 4420


Crypto Swap Exchange


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/.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











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

Activity: 2576
Merit: 5668



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.



▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
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: 18746


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: 2478
Merit: 6315


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.

LoyceV
Legendary
*
Offline Offline

Activity: 3486
Merit: 17644


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.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
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
*
Offline Offline

Activity: 3486
Merit: 17644


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.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1385


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!