Pages:
Author

Topic: where are private keys stored? (Read 701 times)

legendary
Activity: 3052
Merit: 1273
June 22, 2020, 07:42:00 PM
#34
Hello community. Where does the blockchain store private keys for bitcoin addresses? They must really be stored somewhere. If I have for an example an online wallet with a private key, I think my private key is stored somewhere and not in my PC.

It is stored on your PC only. If not, how will the wallet access the same and give you back your public keys in return?
It's you who need to store them at a safe and secure place like -
1. Paper wallet
2. Hardware wallets
3. Cryptosteel
4. Memory card or USB drive (not just one but few copies)
hero member
Activity: 1708
Merit: 651
SmartFi - EARN, LEND & TRADE
June 22, 2020, 06:55:00 PM
#33
Let us take an example of an online wallet which I have and have private keys. It is on ethereum block chain from etherdelta. When you create an account there you get a private key. But is that private key only available or recognized when I use the device through which I created the account? It is definitely not because I can import my account to say a metamask extension to another device .

It all depends on the program code, if the source code is open, then finding out whether the application stores private keys is not difficult.
There are applications that store all the information in the root of the phone, as a rule, these applications come from intruders.
full member
Activity: 616
Merit: 108
io.ezystayz.com
June 21, 2020, 07:10:07 PM
#32
Hello community. Where does the blockchain store private keys for bitcoin addresses? They must really be stored somewhere. If I have for an example an online wallet with a private key, I think my private key is stored somewhere and not in my PC.

To my understanding, i believe you are talking about the blockchain wallet platform that provides wallet for bitcoin and other top assets on both web and mobile apps and not Blockchain as the technology behind cryptocurrency. Blockchain wallet is a custodian wallet and they have access to your private keys and to certain extent even your  activities on the wallet platform. However, if your to use a non custodian wallet, you will be the one responsible for keeping your keys safe and it will not be on any server unless you uploaded it
hero member
Activity: 2590
Merit: 644
June 21, 2020, 06:27:47 PM
#31
So is it right to say in case of etherdelta the private key is stored in my browser cache? If yes that means anyone who can access my cache can also see my key?
^ Probably yes, in this case, don't use your main wallet when you are using the Etherdelta exchange platform. This is what I had did before when I was active collecting token from the airdrop and sell on the DEX. Make a brand new Myethereum wallet as your disposable wallet to import your private key, either me, I did not feel safe trusting your private on DEX exchange. 
Nevertheless, the suggestion above was right. Metamask is very safe to use but there are certain disadvantages of using chrome extension that I don't like.
legendary
Activity: 2520
Merit: 2853
Top Crypto Casino
June 21, 2020, 06:17:25 PM
#30
So is it right to say in case of etherdelta the private key is stored in my browser cache? If yes that means anyone who can access my cache can also see my key?
the safest way to use Ethetdelta is to connect to it using MetaMask. This way you will be sure that your private key never leaves your computer. Whenever you want to make a transaction you will be asked to sign it using MetaMask and you don't have to provide the PK.
One more thing, ED uses a smart contract and basically you have to deposit your coins on that smart contract to be able to trade them. AFAIK, the private key you create using ED is used to interact with the contract and is saved only on your browser. If you lose it, thete is no way to recover it and no one have access to it unless your computer gets compromised or you log in to a phishing website.
full member
Activity: 233
Merit: 100
June 21, 2020, 12:59:50 PM
#29
So is it right to say in case of etherdelta the private key is stored in my browser cache? If yes that means anyone who can access my cache can also see my key?

I don't know how etherdelta works excactly.
But it is not in the cache. It is either in the storage of your browser (most likely since i guess you don't have to "upload" it manually, right?) or a file on your computer (if you need to choose the file each time by "uploading" it).

In both cases. If someone has access to your browser (i.e. by having access to your device), and the wallet file / private keys are not encrypted, they have full access, yes.
Thanks for your insights. My worry is that since when someone opens an account with etherdelta by simply clicking NEW ACCOUNT, you get a public address and a private key which you are prompted to copy and save it somewhere else, but as long as you are trading on etherdelta there is no way to log out and log in again so your public address remains there on your browser alongside with your private key. If someone gets hold of your computer it is just a matter of clicking EXPORT KEY and he has your key! The only way to log out there is to remove account. That means when you want to trade again you have to import your account!

I do not have to upload it or a file so your assumption is correct.
full member
Activity: 233
Merit: 100
June 21, 2020, 12:43:55 PM
#28
So is it right to say in case of etherdelta the private key is stored in my browser cache? If yes that means anyone who can access my cache can also see my key?

I don't know how etherdelta works excactly.
But it is not in the cache. It is either in the storage of your browser (most likely since i guess you don't have to "upload" it manually, right?) or a file on your computer (if you need to choose the file each time by "uploading" it).

In both cases. If someone has access to your browser (i.e. by having access to your device), and the wallet file / private keys are not encrypted, they have full access, yes.
Thanks for your insights. My worry is that since when someone opens an account with etherdelta by simply clicking NEW ACCOUNT, you get a public address and a private key which you are prompted to copy and save it somewhere else, but as long as you are trading on etherdelta there is no way to log out and log in again so your public address remains there on your browser alongside with your private key. If someone gets hold of your computer it is just a matter of clicking EXPORT KEY and he has your key! The only way to log out there is to remove account. That means when you want to trade again you have to import your account!
legendary
Activity: 1624
Merit: 2481
June 21, 2020, 08:48:10 AM
#27
So is it right to say in case of etherdelta the private key is stored in my browser cache? If yes that means anyone who can access my cache can also see my key?

I don't know how etherdelta works excactly.
But it is not in the cache. It is either in the storage of your browser (most likely since i guess you don't have to "upload" it manually, right?) or a file on your computer (if you need to choose the file each time by "uploading" it).

In both cases. If someone has access to your browser (i.e. by having access to your device), and the wallet file / private keys are not encrypted, they have full access, yes.
legendary
Activity: 3808
Merit: 7912
June 20, 2020, 11:40:40 PM
#26
Quote
Private keys are generated by a complex mathematical algorithm outside the blockchain network. The public key and address are then generated from the private key automatically during each transaction. Both keys are stored inside a wallet file and managed by the wallet software.
Rerence is here: https://hackernoon.com/bitcoin-safety-a-guide-on-how-to-keep-your-wallet-and-private-keys-secure-94cf7b7f4a00#:~:text=Private%20keys%20are%20generated%20by,managed%20by%20the%20wallet%20software.

So here the software is your bitcoin core.

Quote
Where does the blockchain store private keys for bitcoin addresses?
Blockchain is not storing any private key information.


 LOL Hacker noon article.

" i. A private key

This is a 64-character long code that includes any blend of the letters A-F and the numbers 1–9.
"


Safety guide FAIL!

full member
Activity: 233
Merit: 100
June 20, 2020, 11:36:26 PM
#25
So is it right to say in case of etherdelta the private key is stored in my browser cache? If yes that means anyone who can access my cache can also see my key?
full member
Activity: 233
Merit: 100
June 20, 2020, 11:32:45 PM
#24
Your private key is (or better: should be) only stored in your wallet on your PC / mobile / whatever device you are using.
They are not stored on the blockchain at all.

Your private key is used to sign transactions. These signatures can be verified using the corresponding public key.
No one needs access to your private key to verify signatures.



So in case of etherdelta for example, it is an online wallet, do they have my private key? When you open an account there you are given a private key.

In the case of etherdelta, they don't have your private key. The private key is generated locally in your browser.
You are not given the key from their server.
So can someone access my browser cache and find the key?


I am just wondering if the blockchain has no memory how does it know whether the secret key i entered is correct or not.

You don't ever enter your private key anywhere.
You sign a transaction using your private key. And everyone can verify it by using the public key.

For visualization:
A transaction = "I want to transact X BTC from address 1 to address 2
Then you sign the transaction using the private key of address 1.
Everyone can then verify the signature by using the public key of address 1.

Please note that this visualization is not completely technically correct. But it gives you an idea how it works.
legendary
Activity: 1624
Merit: 2481
June 08, 2020, 04:56:23 AM
#23
[...] how does the other computer know if the private key I am now entering on metamask to import an account is correct or not?

A private key basically is just a big random number.
When you import a private key into a wallet, it derives the public key and the address.

If there is nothing wrong (e.g. sanity checks / amount of bits), it is a valid private key and will therefore produce a valid public key and address.
full member
Activity: 233
Merit: 100
June 08, 2020, 03:56:01 AM
#22
Thanks for replying. But my logic is still troubled. Let us say I have imported a wallet from etherdelta to a metamask extension which I have on a different pc from the one I used to create my etherdelta account. If as someone here said that private wallets are created and stored locally in my browser, how does the other computer know if the private key I am now entering on metamask to import an account is correct or not?
full member
Activity: 233
Merit: 100
June 08, 2020, 03:55:00 AM
#21
Your private key is (or better: should be) only stored in your wallet on your PC / mobile / whatever device you are using.
They are not stored on the blockchain at all.

Your private key is used to sign transactions. These signatures can be verified using the corresponding public key.
No one needs access to your private key to verify signatures.



So in case of etherdelta for example, it is an online wallet, do they have my private key? When you open an account there you are given a private key.

In the case of etherdelta, they don't have your private key. The private key is generated locally in your browser.
You are not given the key from their server.



I am just wondering if the blockchain has no memory how does it know whether the secret key i entered is correct or not.
Thanks for replying. But my logic is still troubled. Let us say I have imported a wallet from etherdelta to a metamask extension which I have on a different pc from the one I used to create my etherdelta account. If as someone here said that private wallets are created and stored locally in my browser, how does the other computer know if the private key I am now entering on metamask to import an account is correct or not?
You don't ever enter your private key anywhere.
You sign a transaction using your private key. And everyone can verify it by using the public key.

For visualization:
A transaction = "I want to transact X BTC from address 1 to address 2
Then you sign the transaction using the private key of address 1.
Everyone can then verify the signature by using the public key of address 1.

Please note that this visualization is not completely technically correct. But it gives you an idea how it works.
legendary
Activity: 1624
Merit: 2481
June 06, 2020, 06:51:41 AM
#20
I am for example using etherdelta and they have an option to import an account. I insert the public key then i go to the next step to enter the private key. Then I just enter a string of letters and numbers then it says invalid key. This surely means that etherdelta knows what is the right private key associated with that public key. Otherwise it would accept whatever input.

Etherdelta - their server - does not know anything.
The local javascript applicatoin which is running inside your browser tells you that the private key does not match the public key.



Then should we say that the only one who knows my private key is my public address?

?
When you sign a transaction (as i have described in my post earlier), you are using your private key.
Everyone in the network can then verify it using the public key.

Whether you or someone else (with access to your private key) signed the transaction does not matter.
member
Activity: 73
Merit: 17
June 05, 2020, 11:51:07 PM
#19
The core of the bitcoin protocol is in the eliptic curve math. Owner of the private key generates a transaction message and a signature of that message. Part of the transaction message is the that signature. Network can check if the signature is valid without the private key. Only transactions with valid signatures area accepted by the network. That is the beauty of the elliptic curve math. Your bitcoin address is derived from the private key using again eliptic curve and hash functions. Those functions are one way only. Somethimes math is beautiful. This is the case here for sure.
full member
Activity: 233
Merit: 100
June 05, 2020, 11:31:06 PM
#18
I have a different understanding with what you're asking. You have mentioned an online wallet and blockchain, let me ask you if you are pertaining to blockchain.com wallet? Most online wallets will provide you the recovery phrases but if that's the wallet that you'll use in storing most of your bitcoins, choose a better wallet like electrum.

I think my private key is stored somewhere and not in my PC.
In the first place, you shouldn't keep your private keys in your computer. It's advisable to write it on a paper or make an encrypted backup. Private keys are shown before you create a wallet.

I agree that electrum is the greatest tool out there for a "lite wallet", it's very complete.

For OP, the blockchain can't and shouldn't know your private keys, your private key is that, the key that opens the public address holding the bitcoins. The blockchain doesn't need to know the private key, it only needs the transaction hash to confirm whether the real owner of said public key is the one sending the funds, if it's correct, the transaction goes through, if it isn't, it's not.

Then should we say that the only one who knows my private key is my public address?
full member
Activity: 233
Merit: 100
June 05, 2020, 11:28:02 PM
#17
I am for example using etherdelta and they have an option to import an account. I insert the public key then i go to the next step to enter the private key. Then I just enter a string of letters and numbers then it says invalid key. This surely means that etherdelta knows what is the right private key associated with that public key. Otherwise it would accept whatever input.
full member
Activity: 233
Merit: 100
June 05, 2020, 11:22:33 PM
#16
I have a different understanding with what you're asking. You have mentioned an online wallet and blockchain, let me ask you if you are pertaining to blockchain.com wallet? Most online wallets will provide you the recovery phrases but if that's the wallet that you'll use in storing most of your bitcoins, choose a better wallet like electrum.

I think my private key is stored somewhere and not in my PC.
In the first place, you shouldn't keep your private keys in your computer. It's advisable to write it on a paper or make an encrypted backup. Private keys are shown before you create a wallet.

I agree that electrum is the greatest tool out there for a "lite wallet", it's very complete.

For OP, the blockchain can't and shouldn't know your private keys, your private key is that, the key that opens the public address holding the bitcoins. The blockchain doesn't need to know the private key, it only needs the transaction hash to confirm whether the real owner of said public key is the one sending the funds, if it's correct, the transaction goes through, if it isn't, it's not.
It is still confusing. How does the blockchain know if I am the real owner of the public address if it does not know my real identity (private key)??
jr. member
Activity: 52
Merit: 3
June 05, 2020, 05:01:21 PM
#15
I have a different understanding with what you're asking. You have mentioned an online wallet and blockchain, let me ask you if you are pertaining to blockchain.com wallet? Most online wallets will provide you the recovery phrases but if that's the wallet that you'll use in storing most of your bitcoins, choose a better wallet like electrum.

I think my private key is stored somewhere and not in my PC.
In the first place, you shouldn't keep your private keys in your computer. It's advisable to write it on a paper or make an encrypted backup. Private keys are shown before you create a wallet.

I agree that electrum is the greatest tool out there for a "lite wallet", it's very complete.

For OP, the blockchain can't and shouldn't know your private keys, your private key is that, the key that opens the public address holding the bitcoins. The blockchain doesn't need to know the private key, it only needs the transaction hash to confirm whether the real owner of said public key is the one sending the funds, if it's correct, the transaction goes through, if it isn't, it's not.
Pages:
Jump to: