Pages:
Author

Topic: How Bitcoin Addresses are generated? Understand the Math behind Bitcoin (Read 1134 times)

legendary
Activity: 1918
Merit: 1728
Wow, this is really a good teachings that requires a big sum for before learning, we got it here free from OP, nice one, you really a life changing person that love inspiring people with secrets behind bitcoin addresses generation, thank you.

I'm glad you liked it!

Bump!
Thanks for bumping! I am having trouble finding your thread.

You did this program using Java right? Do you have any resources that offers specific function that is used to generate bitcoin addresses using C++ library? Though I quite understand what is the process of address generation under the hood, I think it would be a good experience for me to create similar program that is written using C++.

Thank you so much.

I have written code in Javascript and NodeJS (not Java). Yes, there is an extensive and well-maintained Bitcoin Library in C++ namely libbitcoin. Then of course, you have Bitcoin Core. You can easily create Bitcoin Addresses in both of these. Both got some cool pre-written C++ functions. But if you are interested in writing everything from scratch like I did in OP then I don't think there is any specific resource available in C++. Maybe somebody has written an article on the same which you maybe able to find on Search Engine. Smiley 
legendary
Activity: 1904
Merit: 1563
Bitcoin Casino Est. 2013
Bump!
Thanks for bumping! I am having trouble finding your thread.

You did this program using Java right? Do you have any resources that offers specific function that is used to generate bitcoin addresses using C++ library? Though I quite understand what is the process of address generation under the hood, I think it would be a good experience for me to create similar program that is written using C++.

Thank you so much.
sr. member
Activity: 1232
Merit: 379
Wow, this is really a good teachings that requires a big sum for before learning, we got it here free from OP, nice one, you really a life changing person that love inspiring people with secrets behind bitcoin addresses generation, thank you.
legendary
Activity: 1918
Merit: 1728
legendary
Activity: 2422
Merit: 1834
Crypto for the Crypto Throne!
Glad you came by. Thanks for your edits, I made necessary changes in introduction as well as point (1) i.e. the definition of Public Address. Please check and tell me if anything else needed correction. .

Yep, now everything is pretty good. I remember that i had some more remarks about your text, and i will try too look into it a bit later, but for now i'm a little busy. But yeah, intro is now looking good.

Ok! So let's start with the topic. To use Bitcoin, user generally needs two things: Private Key and Bitcoin Address. Bitcoin Address is an identifier which looks like this: 18J6ai34uzGofUuzbiwhXJzKzdx1efDBqA. User have to share it with sender to receive payment. Whereas private key is a key which user have to input in wallet to access the funds received.

legendary
Activity: 1918
Merit: 1728
Overall this make me dizzy, "this need for further study" my brain said. First time reading about this on how the address generated from.

Yeah! Topic is a little bit excessively detailed. There are surely easy way to do so. For example, you can do what this thread is doing in few lines with Python by importing libraries. But that isn't the purpose of this thread. Rather I tried to go under the hood by writing bare implementation of every code. Right from taking random string, creating private key with it, using elliptic curve cryptography then deriving bitcoin address and WIF. Everything is written from scratch so that non-technical members can actually see how everything really happens.
newbie
Activity: 3
Merit: 0
Overall this make me dizzy, "this need for further study" my brain said. First time reading about this on how the address generated from.
legendary
Activity: 1918
Merit: 1728
Public Key is the key that is shared to the sender and the world. Example: 18J6ai34uzGofUuzbiwhXJzKzdx1efDBqA. Whereas Private Key is the key which is used to access the funds received on Public Key.

Please, correct this in your post. If you done your guide to get merits, then you can leave it as is. But if you think, that some JS developer may read it and try to do something using your guide, then you don't have any other possibility except to chenge it.

18J6ai34uzGofUuzbiwhXJzKzdx1efDBqA is an address (abstract term) which is double hash of public key. (!!!)

For anyone who wrote at least 1 line of code in their life it's obvious that such incorrect information will result in butthurt. You shouldn't   misunderstand people who will try to use you guide. Thanks

The later review will appear soon

Glad you came by. Thanks for your edits, I made necessary changes in introduction as well as point (1) i.e. the definition of Public Address. Please check and tell me if anything else needed correction. While writing such lengthy guide, it is normal to do such mistakes. As I said earlier, this guide have over 21K characters and I manually typed each line.

PS: I am never looking for merits. If I was really a merit hunter then you would most probably be seeing 2000+ merits on my profile, it won't be difficult for me. However, I don't have such temptations.
legendary
Activity: 2422
Merit: 1834
Crypto for the Crypto Throne!
Public Key is the key that is shared to the sender and the world. Example: 18J6ai34uzGofUuzbiwhXJzKzdx1efDBqA. Whereas Private Key is the key which is used to access the funds received on Public Key.

Please, correct this in your post. If you done your guide to get merits, then you can leave it as is. But if you think, that some JS developer may read it and try to do something using your guide, then you don't have any other possibility except to change it.

18J6ai34uzGofUuzbiwhXJzKzdx1efDBqA is an address (abstract term) which is double hash of public key. (!!!)

For anyone who wrote at least 1 line of code in their life it's obvious that such incorrect information will result in butthurt. You shouldn't   misunderstand people who will try to use you guide. Thanks

The later review will appear soon
copper member
Activity: 145
Merit: 0
Very Nice post Sir!

Pretty nice how you Have used the codes and pictures to send the full message across to BitcoinTalk viewers.
im a newbie member and i want to write these type of post to give some info to beginners
well thank you for  posting such a great informative post
legendary
Activity: 2730
Merit: 7065
Farewell, Leo. You will be missed!
I translated and posted the translation of your thread into the Croatian local forum. Excellent work once again!
This is the link to my translation:
https://bitcointalksearch.org/topic/kako-se-generiraju-bitcoin-adrese-matematika-na-kojoj-se-bitcoin-adrese-temelje-5225719
legendary
Activity: 1918
Merit: 1728
-snip-

Welcome to the thread. I was waiting for someone from that Russian community to finally come here and write the things rather than being cocky intellectuals in their own board. Google Translate translates Russian perfectly and I have already read everything discussed in Russian thread.

No doubt, whatever discussed among Russian folks is absolutely correct. I even made one edit already after reading reply in Russian board. If you guys have problem with any line or mistyped terminology then you are most welcome to reply here and I will correct the things. I already made 8 edits based on recommendations in the thread.

Now coming to the content of this thread. I completely disagree with the statement that this stuff is some basic bitcoin stuff. Go on and search 'Bitcoin for beginners' on Youtube and find a single video which explains the concept behind creating bitcoin address let alone the coding part. I bet you won't find any.

Secondly I am not some professional Bloomberg or BBC writer who is getting paid in K's for every article. This article contains over 21000 characters and everyone is allowed to make some conceptual mistakes when writing something that long. That's why I am open to edits.

Thirdly, I don't think mistakes highlighted is misguiding the reader at all. Technically yeah, that may be wrong a little bit but my motive was to make this thread accessible to everyone. If I just have to write the textbook terminology then Bitcoin Wiki is far better than writing own custom threads.

Lastly, picking a piece of thread may sound incorrect but read the whole thread and I cleared everything in detail as the thread progresses.
legendary
Activity: 3444
Merit: 10537
Bitcoin turned 10 years old, and they all write instructions on how addresses are generated and even manage to get lost in terminology. For whom is this article? What is new in this information that the sectarians merited it together? How many more years does the community intend to chew on the ABC book?
Bitcoin is 11 years old not 10 and it is still Bitcoin that is that old not the newcomers who keep coming along every day! posts like this are giving them a simple look under the hood and if they weren't created here i assure you that most newcomers would never even see it elsewhere even though there are already many better instructions such as Mastering Bitcoin by A.A.

It is unfortunate that the technically illiterate article has earned so many Merits in the English-language part of the forum. Degradation is evident.
it may contain some small mistakes here and there and may not be as well versed as what experts have written but it is far from being "technically illiterate".

...
However, the author’s phrase:
This is the P2PKH format of public key. It is widely used for sending/receiving bitcoins. There are various rounds of different hashing algorithm involved to generate P2PKH key from hex of public key.
confirms my idea that the author has a terminological mess in his head about addresses and public keys.

Instead of the word address, the author uses the non-existent term P2PKH key, which misleads the reader.
if we are going to nitpick then we should do it correctly!
first of all the full text that should have been quoted is this:
1) [18J6ai34uzGofUuzbiwhXJzKzdx1efDBqA] Public Address: This is the P2PKH format of public key.
which makes it a lot more accurate. not to mention that the word "address" is already there!

secondly the word is not "address", the correct term is "script" since P2PKH is a script type not an address type, the term "address" is commonly used in its place to simplify it but since it is a nitpicking as i said the nit should be accurate itself!
legendary
Activity: 2044
Merit: 1231
I use the words from that post in Russian "Bitcoin turned 10 years old, and they all write instructions on how addresses are generated and even manage to get lost in terminology. For whom is this article? What is new in this information that the sectarians merited it together? How many more years does the community intend to chew on the ABC book?"

It is unfortunate that the technically illiterate article has earned so many Merits in the English-language part of the forum. Degradation is evident.

...
However, the author’s phrase:
This is the P2PKH format of public key. It is widely used for sending/receiving bitcoins. There are various rounds of different hashing algorithm involved to generate P2PKH key from hex of public key.
confirms my idea that the author has a terminological mess in his head about addresses and public keys.

Instead of the word address, the author uses the non-existent term P2PKH key, which misleads the reader.





Russian translation




This is far more impressive than I expected on the Beginners board! That must have been a lot of work, well done!

hero member
Activity: 2506
Merit: 628
I don't take loans, ask for sig if I ever do.
Great post! Pretty nice how you both used codes and pictures to send the full message across to your viewers. Currently studying Fullstack javascript so I may try and read on about this sometime later after I finish studying it. Might turn out to be a good reference in terms of studying it.
sr. member
Activity: 1106
Merit: 310
very impressive, the conversion of the bitcoin address is like conversion of ip v6, but more complex, thank you for the information,
hero member
Activity: 994
Merit: 593
aka JAGEND.
Thank you for posting this extraordinary thread. I'm sure this thread consume your time a lots. You are cool. Once again, thank you.
(Finally, I have a nutritional thread to read before going to bed).
legendary
Activity: 2954
Merit: 2145
So what is the ultimate solution? The best way is to use the keys generated by wallets but if you want to independently dive into the quest, use secure generators like randomBytes npm module in Node.js.

randomBytes npm module is kinda useless in node, since it just calls node's own crypto module, so you can bypass that module and call it directly - https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback

And browsers are also equipped with strong pseudorandom generator - it is used in production by browser-based wallets like MEW and MetaMask.
legendary
Activity: 2436
Merit: 1189
Need Campaign Manager?PM on telegram @sujonali1819
It’s a really heard job done by webtrics Since I have not much knowledge about Technical things, so I need more time to understand this  Grin I will read more this thread to understand how actually it works. It's really a good job buddy. Keep it up and go ahead.
Pages:
Jump to: