Bitcoin Forum
May 13, 2024, 07:23:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: public address in my wallet?  (Read 282 times)
firstbt (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 3


View Profile
March 12, 2021, 02:46:42 AM
 #21

Let's say I entered the legacy bitcoin address...and then message...

Actually to sign message, private key is needed...so when the legacy public address is generated in my wallet, it keeps track of the private key and public key...technically, we can't know the private key from the public key, but in the wallet, when they generate public key, internally, they keep track of pair of private key and public key...so...when they entered the legacy public address when signing message, then from the wallet behind, it looks up to find out the private key from the public key to sign the message...is my understanding correct? So they actually used the private key that is found from lookup table inside wallet data structure...Correct?

Then...that message will be verified with the public key..then..
You enter the Bitcoin address so it should lookup your private key from your address.

The message is actually verified against your Bitcoin address as that is one of the three elements given to the person verifying it. Due to the unique characteristic of ECDSA, it is possible to derive the possible ECDSA public key from the signature itself. It is converted into the corresponding Bitcoin addresses during verification and then verified against the address given by the other party.

"The message is actually verified against your Bitcoin address as that is one of the three elements given to the person verifying it. Due to the unique characteristic of ECDSA, it is possible to derive the possible ECDSA public key from the signature itself. It is converted into the corresponding Bitcoin addresses during verification and then verified against the address given by the other party."

This is the KEY. I realized that this is the way how Bitcoin could verify the signature. Awesome. BTW, I found some examples that a public key is recovered from a signature using Javascript. However, I am looking for some example how this can be done with Org.BouncyCastle library. Do you know by any chance where I could get that information to recover the public key from a signature using that specific library?

Thanks,
1715628199
Hero Member
*
Offline Offline

Posts: 1715628199

View Profile Personal Message (Offline)

Ignore
1715628199
Reply with quote  #2

1715628199
Report to moderator
1715628199
Hero Member
*
Offline Offline

Posts: 1715628199

View Profile Personal Message (Offline)

Ignore
1715628199
Reply with quote  #2

1715628199
Report to moderator
1715628199
Hero Member
*
Offline Offline

Posts: 1715628199

View Profile Personal Message (Offline)

Ignore
1715628199
Reply with quote  #2

1715628199
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
firstbt (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 3


View Profile
March 17, 2021, 01:26:07 PM
 #22

Just out of curiosity...

Let's say A user bitcoin address is abcd who has 10 bitcoins...
Say...Luckily, B user got exactly same bitcoin address, which is abcd....let's just ASSUME that...In this case, both A and B user would see 10 bitcoins balances in their screen?
Then I guess whoever spends that money first would be their money then?

Thanks,
Pmalek
Legendary
*
Offline Offline

Activity: 2758
Merit: 7140



View Profile
March 17, 2021, 01:43:08 PM
 #23

<snip>
Such a collision is theoretically possible but very, very, very... unlikely. If both users generated the addresses with an awful RNG, such a collision could potentially happen. I have never read any reports of anyone reporting it though. If that happens, both users would be able to spend the coins if they still have the correct private keys of that address.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
hosseinimr93
Legendary
*
Offline Offline

Activity: 2394
Merit: 5237



View Profile
March 17, 2021, 02:20:42 PM
 #24

-------
There are 2160 possible bitcoin addresses and as stated by Pmalek such a collision is almost impossible.
Assuming there are 10 billion bitcoin users (even higher than current population of the world) and each of them has 1 billion bitcoin addresses, the chance to generate an address colliding with an existing one would be about 1 in 296.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: « 1 [2]  All
  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!