Bitcoin Forum
April 19, 2024, 04:55:22 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help me to understand private key of crypto currency  (Read 442 times)
laraveldeveloper (OP)
Jr. Member
*
Offline Offline

Activity: 59
Merit: 1

Node,Laravel,Angular,Reactjs,Vuejs,HTML,CSS


View Profile
April 05, 2018, 04:47:51 AM
Merited by suchmoon (1)
 #1

I am a developer. these days we are going to jump into Crypto well. So i have read lots of blog online how Crypto currencies works. But i am little confused for the private key.

1) Where it is stored in decentralised ledger.
2) How it is validated while sending payment to any other key.

guys please help me to under the concept of private key. 
1713502522
Hero Member
*
Offline Offline

Posts: 1713502522

View Profile Personal Message (Offline)

Ignore
1713502522
Reply with quote  #2

1713502522
Report to moderator
1713502522
Hero Member
*
Offline Offline

Posts: 1713502522

View Profile Personal Message (Offline)

Ignore
1713502522
Reply with quote  #2

1713502522
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
bitperson
Full Member
***
Offline Offline

Activity: 210
Merit: 119


View Profile
April 05, 2018, 04:52:39 AM
Merited by achow101 (2), DarkStar_ (2), suchmoon (1), ABCbits (1)
 #2

I am a developer. these days we are going to jump into Crypto well. So i have read lots of blog online how Crypto currencies works. But i am little confused for the private key.

1) Where it is stored in decentralised ledger.
2) How it is validated while sending payment to any other key.
Private keys aren't stored on the blockchain, just in the individual wallet of their owner. This is important because anyone with access to the private key can spend that user's bitcoins.

Transactions are validated by checking that their cryptographic signature corresponds to the public key of the sender. This is proof that the transaction was signed using the user's private key.

Have you read the Bitcoin whitepaper already?

How to ask questions the smart way
When you’re happy with the answers in a thread you have started, please click ‘lock topic’ to prevent spam.
1AWrZWnN4ThpGB5z24WTzsoZRMqvLpDGYU
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 05, 2018, 05:14:38 AM
Merited by suchmoon (1)
 #3

I am a developer. these days we are going to jump into Crypto well. So i have read lots of blog online how Crypto currencies works. But i am little confused for the private key.

1) Where it is stored in decentralised ledger.
Private keys are not (and should not be) stored in a decentralised ledger. The Blockchain (aka "The decentralised ledger" as you've called it) is public and simply records reassignment of "ownership" of bitcoins from one public key to another.

Private keys are exactly that... PRIVATE... they are not meant to be shared and should be kept safe, secure and guarded appropriately.


Quote
2) How it is validated while sending payment to any other key.
When attempting to transfer coins from a public key to another public key, you prove "ownership" by cryptographically signing the transaction using the appropriate private key that matches the public key you are transferring FROM. The various nodes will then check that the signature provided matches the public key. If it does not (ie. the transaction is not signed, or signed with the incorrect private key) then the transaction will be rejected by the network as invalid.

Note... you CANNOT derive a private key from a signature that has been put on a transaction.

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
laraveldeveloper (OP)
Jr. Member
*
Offline Offline

Activity: 59
Merit: 1

Node,Laravel,Angular,Reactjs,Vuejs,HTML,CSS


View Profile
April 05, 2018, 06:04:15 AM
 #4



Can you guys tell me some good explanation about signature in above image so i can under stand the private key concept.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
April 05, 2018, 08:33:38 AM
 #5

Can you guys tell me some good explanation about signature in above image so i can under stand the private key concept.

I think HCP already explained it pretty well.

For another small explanation visit this site: https://bitcoin.org/en/how-it-works.
A slightly more detailed conclusion: https://coinsutra.com/bitcoin-private-key/.

Or, probably one of the best sources (if not the best), the original Whitepaper by Satoshi.

laraveldeveloper (OP)
Jr. Member
*
Offline Offline

Activity: 59
Merit: 1

Node,Laravel,Angular,Reactjs,Vuejs,HTML,CSS


View Profile
April 07, 2018, 06:42:19 AM
 #6

Basically private key is use to store public key data into the wallet Right .There is no other existence of private key while transaction. Miners validate the public key and then they will add new block to the ledger.
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4158


View Profile
April 07, 2018, 06:53:13 AM
Merited by AdolfinWolf (1)
 #7

Basically private key is use to store public key data into the wallet Right .
Private keys can be used to derive the public key and its hash which can in turn allow the wallet to identify all the relevant transactions related to the wallet. The main function of the private key is to sign the transaction.
There is no other existence of private key while transaction. Miners validate the public key and then they will add new block to the ledger.
Incorrect. Private keys are the main thing when making a transaction. Without a private key, the transaction wouldn't have a signature and it would be invalid. Private keys are used to generate a signature to validate that the inputs can be spent.

Everyone that runs a node will validate the signature, not only the miners. The miners have to check the validity of the transaction first before generating the merkle root and try to mine a block.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
April 07, 2018, 01:41:17 PM
 #8

Basically private key is use to store public key data into the wallet Right .

The private key is used to derive the public key, to sign transactions/messages and prove the ownership of the corresponding public key.



There is no other existence of private key while transaction. Miners validate the public key and then they will add new block to the ledger.

The private key itself is not 'stored inside' the transaction. But it is used to create a valid signature which basically says: 'I want to spend the UTXO from this public key'.
A valid signature can only be created with the private key corresponding to this public key. This signature can then be verified with the public key.
Miners do validate the transaction before including it into a block. After a block containing this transaction has been added to the blockchain,
every full node does validate the whole block for itself. This prevents miner from adding transactions with an invalid signature into a block.

wilwxk
Sr. Member
****
Offline Offline

Activity: 476
Merit: 314


View Profile
April 09, 2018, 01:28:19 AM
 #9

The private and public key are part of a system called asymmetrical cryptography.

Fisrt you have the private keys, it will control all of your money and the other keys (so you dont want to announce it.
With your private key you can generate the public key, if you have only the public key you cannot recover the secret key, so its safe to announce it (but there is no reason for).
And with your public key you can generate the address, which is only a few of hash functions applied at the public key, is with this hash which you will want to announce and receive money.

Why we cant announce our private keys ? only the private key can sign a transaction with the coins which you posses, nobody can guess your private key using only the signature too.

About the descentralized part of the bitcoin, is that the whole ecosystem of the bitcoin do not depends only of a group person/server/node, and nobody can make a chose in the blockchain alone without any consensus of the other nodes.

If you want to learn more, visit the wiki of the bitcoin or explore the links of the posts above.
Trollinator
Member
**
Offline Offline

Activity: 238
Merit: 15


View Profile
April 10, 2018, 06:52:17 AM
 #10

First thing you need to know about cryptos, be weary of advice online and in group. Not everyone is a scammer and you can get good advice from the public; however, some scammers may also attempt to mislead you. So any information you get online, double check with multiple sources...
MrCrank
Sr. Member
****
Offline Offline

Activity: 1336
Merit: 258



View Profile
April 11, 2018, 09:26:47 AM
 #11

I am a developer. these days we are going to jump into Crypto well. So i have read lots of blog online how Crypto currencies works. But i am little confused for the private key.

1) Where it is stored in decentralised ledger.
2) How it is validated while sending payment to any other key.

guys please help me to under the concept of private key. 

If easy to say: Private key is individual password for access your bitcoin.
Private key not stored.. generated only one time for one public wallet (address wallet).
All details you can read on https://en.bitcoin.it/
laraveldeveloper (OP)
Jr. Member
*
Offline Offline

Activity: 59
Merit: 1

Node,Laravel,Angular,Reactjs,Vuejs,HTML,CSS


View Profile
April 12, 2018, 05:41:19 AM
 #12

I am a developer. these days we are going to jump into Crypto well. So i have read lots of blog online how Crypto currencies works. But i am little confused for the private key.

1) Where it is stored in decentralised ledger.
2) How it is validated while sending payment to any other key.

guys please help me to under the concept of private key.  

If easy to say: Private key is individual password for access your bitcoin.
Private key not stored.. generated only one time for one public wallet (address wallet).
All details you can read on https://en.bitcoin.it/

You mean private key is not part of block chain blocks. Private key is a part of wallet which are using to store bitcoin by us. Then how we can validate particular transaction comes form which wallet.Is it possible to transfer one wallet btc to different wallet btc like we can say coinbase to blockchain wallet?
fargoway
Newbie
*
Offline Offline

Activity: 164
Merit: 0


View Profile
April 12, 2018, 07:32:21 AM
 #13

Then how we can validate particular transaction comes form which wallet.
Public key helps with it.
Is it possible to transfer one wallet btc to different wallet btc like we can say coinbase to blockchain wallet?
Yes, of course. The same thing if you transfer your money between different accounts in different banks
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
April 13, 2018, 08:44:09 AM
 #14

You mean private key is not part of block chain blocks. Private key is a part of wallet which are using to store bitcoin by us. Then how we can validate particular transaction comes form which wallet.

Anything signed with a private key can be verified with the corresponding public key.
I suggest you read this article about asymmetric cryptography.
This should let you understand the whole private-/public key infrastructure.


Is it possible to transfer one wallet btc to different wallet btc like we can say coinbase to blockchain wallet?

You can transfer BTC's from any address to any other address. This does require an on-chain transaction, of course.
Either between online wallets (what your question is) or to any other wallet (e.g. desktop-, mobile-, hardware- or paper wallet).

hurry_hore
Member
**
Offline Offline

Activity: 294
Merit: 13


View Profile
April 16, 2018, 01:44:21 PM
 #15

I am a developer. these days we are going to jump into Crypto well. So i have read lots of blog online how Crypto currencies works. But i am little confused for the private key.

1) Where it is stored in decentralised ledger.
2) How it is validated while sending payment to any other key.

guys please help me to under the concept of private key. 

Above mostly presented very descriptive of private key concept technically, I just want to simplify the concept to you of this private key in common or daily activities used. Let's assume this to bank account, with this approach you can consider public address as bank account and private key to be considered as PIN (Personal Identification Number). You can share your bank account (Public Address) to everyone while your fund inside the wallet is still safe, but you DO NOT share your PIN to everyone as someone can access your bank account easily.

Hope you can more understand the concept.

▁▁▁▁▁                 SECURE AND LICENSED CRYPTOCURRENCY EXCHANGE                 ▁▁▁▁▁
INVECH     WHITEPAPER | ANN THREAD | FACEBOOK | TWITTER | TELEGRAM | MEDIUM     INVECH
▔▔▔▔▔                   JOIN INVECH INITIAL EXCHANGE OFFERING NOW!                   ▔▔▔▔▔
onurgozupek
Hero Member
*****
Offline Offline

Activity: 1284
Merit: 591


In #Bitcoin me trust


View Profile WWW
April 16, 2018, 02:01:57 PM
 #16

Private keys are not stored in the blockchain, they are only used to *validate* your transaction. Think like you are storing MD5 or SHA1 encrypted passwords for login system of a website. Do you "know" what the password is? You only validate if the user's password is equal of the stored one with encrypted input. But on blockchain there are no passwords stored, only they are being validated according to the algorithm.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
April 17, 2018, 08:55:18 AM
 #17

Private keys are not stored in the blockchain, they are only used to *validate* your transaction.

Private keys are used to sign transactions.
Public keys are used to verify the signature.



Think like you are storing MD5 or SHA1 encrypted passwords for login system of a website.

MD5 and SHA are hash functions.
Hash functions are 'one-way functions'. This means it is relatively easy to calculate a hash, but *impossible* to calculate the input out from the hash.

Encryption on the other hand has to work in both directions (encrypting and decrypting).

Ahed.s
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
April 17, 2018, 01:24:05 PM
 #18

When someone sends you cryptocoins through block chain they are sending them to a hashed version called public key ,the another hidden key is called the private key  it's used to drive the public key
Slava79
Member
**
Offline Offline

Activity: 182
Merit: 17

¯\_(ツ)_/¯


View Profile
April 24, 2018, 02:39:26 PM
 #19

I am a developer. these days we are going to jump into Crypto well. So i have read lots of blog online how Crypto currencies works. But i am little confused for the private key.

1) Where it is stored in decentralised ledger.
2) How it is validated while sending payment to any other key.

guys please help me to under the concept of private key.  

I can assume you are coming from JavaScript background, according to text in profile. In this case you probably find helpful the "crypto" library from NodeJS https://nodejs.org/api/crypto.html , especially the ECDH part https://nodejs.org/api/crypto.html#crypto_class_ecdh

It also has some examples and explanations.

Building a JavaScript Smart Contracts Engine
Github | Site | Chat
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!