Bitcoin Forum
September 23, 2018, 09:04:56 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: i had a doubt from a long time ..............  (Read 415 times)
blackhat988
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
October 09, 2017, 10:49:39 AM
 #1

i wanna know weather the public keys generated from one private key show same balance  in my wallet

assume that  X is a private key of my bitcoin wallet and X1 X2 X3.... are the public keys of the given private key

if i do a transaction of 1btc using the public key X1 and after the transaction the balance is 2.5 btc
later if i use the X2 public key in the blockchain.info website

will it show the same balance in my wallet as 2.5 btc or  it will show 0btc

1537736696
Hero Member
*
Offline Offline

Posts: 1537736696

View Profile Personal Message (Offline)

Ignore
1537736696
Reply with quote  #2

1537736696
Report to moderator
1537736696
Hero Member
*
Offline Offline

Posts: 1537736696

View Profile Personal Message (Offline)

Ignore
1537736696
Reply with quote  #2

1537736696
Report to moderator
Make a difference with your Ether.
Donate Ether for the greater good.
SPRING.WETRUST.IO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
aleksej996
Sr. Member
****
Offline Offline

Activity: 406
Merit: 301


Do not trust the government


View Profile WWW
October 09, 2017, 11:05:51 AM
 #2

Again with you. Go learn about public keys and you will see that.
you can only have one private key for a public key.
But you really don't understand what you are talking about here.
You don't send bitcoins to a public key, you "send" it to an address.

Please give me one example of a private key generating multiple different public keys.
Are you maybe talking about a compressed and uncompressed addresses?

Your question makes no sense, go learn about Bitcoin addresses, here is one link https://en.bitcoin.it/wiki/Address.

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

                   BitCloak Bitcoin Mixer  
  BTC & BCH | API| MULTIADDRESS| PGP PROOF|  FAST MIX |  ESCROW|  MORE !

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

bob123
Hero Member
*****
Offline Offline

Activity: 686
Merit: 568



View Profile WWW
October 09, 2017, 11:42:16 AM
 #3

An address is a visualization of a Public Key.
Each Public Key has ONE correspondending private key ("which holds the BTC").
Your Wallet generates Public/private key pairs.
If you have 0.1 btc on 1 address and 0.2 on another.. then your Wallet shows Balance of 0.3 BTC.
On Block Explorer you can search for addresses...
So 1 will Show 0.1 and the other 0.2 BTC.

pebwindkraft
Full Member
***
Offline Offline

Activity: 246
Merit: 202


View Profile
October 09, 2017, 12:24:36 PM
 #4

Quote
You don't send bitcoins to a public key, you "send" it to an address.

Please give me one example of a private key generating multiple different public keys.
Are you maybe talking about a compressed and uncompressed addresses?

After rereading his post, it comes to me that he might talk about the addresses he sees in a (HD) wallet. There you usually have one priv key, and a set of derived pubkeys.
Seeing that the post is from a fairly new member, giving him direction to bitcoin.org is surely the right way.

@blackhat988 - in short:
the addresses and wallets are effectivly representations of the data, so we as humans can easily grasp the idea and use case. A wallet is then a combination of only priv/pub keys. You need these keys to do transactions. Transactions have inputs and outputs, from which you can spend. The input usually came to you via a bitcoin address, that you once provided. The output is generated by your wallet software with the target address. When the transaction is confirmed, it is  saved in the blockchain.
And as Bob123 replied, each transaction detail can be seen, e.g. on blockchain.info, you can search for your address or your transaction number. This helps to clarify, along with bitcoin.org.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1650


3F1Y9yquzvY6RWvKbw2n2zeo9V5mvBhADU


View Profile WWW
October 09, 2017, 02:13:56 PM
 #5

After rereading his post, it comes to me that he might talk about the addresses he sees in a (HD) wallet. There you usually have one priv key, and a set of derived pubkeys.
No, that's not true. With an HD wallet, you still have a private key and public key for every single address. All an HD wallet is is that you have a seed from which all over private keys in your wallet are derived. Addresses and public keys still work in the same way as randomly generated private keys.

cr1776
Legendary
*
Offline Offline

Activity: 2002
Merit: 1007


View Profile
October 09, 2017, 04:57:33 PM
 #6

An address is a visualization of a Public Key.
Each Public Key has ONE correspondending private key ("which holds the BTC").
Your Wallet generates Public/private key pairs.
If you have 0.1 btc on 1 address and 0.2 on another.. then your Wallet shows Balance of 0.3 BTC.
On Block Explorer you can search for addresses...
So 1 will Show 0.1 and the other 0.2 BTC.


That is untrue.  Each P2PKH public key has on average 296 possible private keys.  In all likelihood you will only ever know 1 of them, but many more exist.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1650


3F1Y9yquzvY6RWvKbw2n2zeo9V5mvBhADU


View Profile WWW
October 09, 2017, 05:09:20 PM
 #7

An address is a visualization of a Public Key.
Each Public Key has ONE correspondending private key ("which holds the BTC").
That is untrue.  Each P2PKH public key has on average 296 possible private keys.  In all likelihood you will only ever know 1 of them, but many more exist.
No, that statement is true. Each ADDRESS has on average 296. Each public key has exactly one private key and vice versa. Public keys and addresses are not the same thing.

DannyHamilton
Legendary
*
Offline Offline

Activity: 2198
Merit: 1373



View Profile
October 09, 2017, 05:12:40 PM
 #8

Quote
- snip -
Each Public Key has ONE correspondending private key ("which holds the BTC").
Your Wallet generates Public/private key pairs.
- snip -

Each P2PKH public key has on average 296 possible private keys.  In all likelihood you will only ever know 1 of them, but many more exist.

You are both experiencing confusion because you have not agreed on a shared vocabulary.

bob123 is correct:
Each ECDSA public key computed with the Secp256k1 curve has exactly one private key.

cr1776 is correct:
Each base58check encoded P2PKH Bitcoin output script has on average 296 possible private keys (and 296 possible ECDSA public keys computed with the Secp256k1 curve), of which only one of each will ever be known.

To avoid the confusion, I suggest using the words "bitcoin address" when referring to the base58check encoded P2PKH Bitcoin output script, and using the words "public key" when referring to the ECDSA public key computed with the Secp256k1 curve.

cr1776
Legendary
*
Offline Offline

Activity: 2002
Merit: 1007


View Profile
October 09, 2017, 07:40:09 PM
 #9

An address is a visualization of a Public Key.
Each Public Key has ONE correspondending private key ("which holds the BTC").
That is untrue.  Each P2PKH public key has on average 296 possible private keys.  In all likelihood you will only ever know 1 of them, but many more exist.
No, that statement is true. Each ADDRESS has on average 296. Each public key has exactly one private key and vice versa. Public keys and addresses are not the same thing.

I think there was a confusion of terminology 😀
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!