Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: MrCrank on September 08, 2017, 06:19:36 AM



Title: How can check private key offline?
Post by: MrCrank on September 08, 2017, 06:19:36 AM
Hello,

I know that can generate bitcoin address wallet and private key offline. It's true.

I'm interested How can check private key offline?

I created addy 1MyBTCAddy with private key YYYZZZ on bitaddress.org.
I have Private key and want check valid this key or not for with 1MyBTCAddy

Thanks


Title: Re: How can check private key offline?
Post by: mocacinno on September 08, 2017, 06:24:44 AM
Hello,

I know that can generate bitcoin address wallet and private key offline. It's true.

I'm interested How can check private key offline?

I created addy 1MyBTCAddy with private key YYYZZZ on bitaddress.org.
I have Private key and want check valid this key or not for with 1MyBTCAddy

Thanks

The easyest way would probably be to download a wallet like core or electrum, put it on a usb stick and transfer it to an airgapped computer (a pc that will never be online).
There start core or electrum (while being offline) and import the private key... then check if it's valid and if the wallet is now monitoring the correct address... Afterwards clean everything up and at least reboot the airgapped pc.

There are ways to generate the address starting from a private key, but this is very technical, and rather hard to do... Using an offline wallet is easy ;)


Title: Re: How can check private key offline?
Post by: xcbtrader on September 08, 2017, 06:32:15 AM
Hello,

I know that can generate bitcoin address wallet and private key offline. It's true.

I'm interested How can check private key offline?

I created addy 1MyBTCAddy with private key YYYZZZ on bitaddress.org.
I have Private key and want check valid this key or not for with 1MyBTCAddy

Thanks

Hello

check this:

https://github.com/xcbtrader/bitcoin-address (https://github.com/xcbtrader/bitcoin-address)


Title: Re: How can check private key offline?
Post by: MrCrank on September 08, 2017, 06:50:52 AM
The easyest way would probably be to download a wallet like core or electrum, put it on a usb stick and transfer it to an airgapped computer (a pc that will never be online).
There start core or electrum (while being offline) and import the private key... then check if it's valid and if the wallet is now monitoring the correct address... Afterwards clean everything up and at least reboot the airgapped pc.

There are ways to generate the address starting from a private key, but this is very technical, and rather hard to do... Using an offline wallet is easy ;)

 :) exist any faster way to make it?
like bitaddress.org
Because if I have 100 private keys, this will be problem make it manually.

Hello

check this:

https://github.com/xcbtrader/bitcoin-address (https://github.com/xcbtrader/bitcoin-address)

Thanks, but I don't understand Spain language. I check code too, this use connect to blockchain node online


Title: Re: How can check private key offline?
Post by: eXpl0sive on September 08, 2017, 06:56:52 AM
exist any faster way to make it?
like bitaddress.org
Because if I have 100 private keys, this will be problem make it manually.

Check this:
https://github.com/ReinProject/bitcoin-signature-tool

Once you download and extract it on a PC, it can be run offline. If you put your private key in there, it will generate the public address. It is mainly useful for signing a message from private key, but you can use it to validate the key as well.

If you're not familiar with how to use it offline, you can check this tutorial:
https://steemit.com/bitcoin/@bitsignal/how-to-sign-a-bitcoin-message-using-your-private-key


Title: Re: How can check private key offline?
Post by: mocacinno on September 08, 2017, 08:28:44 AM
The easyest way would probably be to download a wallet like core or electrum, put it on a usb stick and transfer it to an airgapped computer (a pc that will never be online).
There start core or electrum (while being offline) and import the private key... then check if it's valid and if the wallet is now monitoring the correct address... Afterwards clean everything up and at least reboot the airgapped pc.

There are ways to generate the address starting from a private key, but this is very technical, and rather hard to do... Using an offline wallet is easy ;)

 :) exist any faster way to make it?
like bitaddress.org
Because if I have 100 private keys, this will be problem make it manually.

you can easily script this... A simple bash or perl script to read 100 private keys and run bitcoin-cli importprivatekey [key] then do a validateaddress and see if ismine is true...

However, after reading eXpl0sive's post, it might be easyer to follow his advice instead of mine...


Title: Re: How can check private key offline?
Post by: mocacinno on September 08, 2017, 12:12:39 PM
What is the private key?

here you go: https://en.bitcoin.it/wiki/Private_key

It might be a good idear to read up on bitcoin if you want to join a bitcoin-centered forum, or at least google your question before asking it


Title: Re: How can check private key offline?
Post by: Proceed on September 08, 2017, 09:09:18 PM
Hello,

I know that can generate bitcoin address wallet and private key offline. It's true.

I'm interested How can check private key offline?

I created addy 1MyBTCAddy with private key YYYZZZ on bitaddress.org.
I have Private key and want check valid this key or not for with 1MyBTCAddy

Thanks


You can download bitaddress.org from here https://github.com/pointbiz/bitaddress.org/archive/master.zip (https://github.com/pointbiz/bitaddress.org/archive/master.zip)
and type in your private key in the wallet details tab on a permanently offline computer.