Post
Topic
Board Development & Technical Discussion
Re: Question on BTC - about creating new addresses at the beginning
by
Aura
on 01/08/2018, 12:54:51 UTC
Hi,

In what way did Satoshi, at the beginning of BTC mining, decide to implement, in the original btc client, the process of creating a new purse for which a reward was awarded from each new block?
I hope I designed the idea correctly)

You are not getting rewarded for generating an address which is in essence just a RIPEMD-160 hash of the public key but rather for proof-of-work. This is the process of finding a hash for a block of data that meets the requirements of a valid block (you might have seen all block headers starting with a bunch of zeroes). This is done by changing a number called the nonce and hashing all the data together. This requires a lot of computing resources and therefore rewards you.


Someone from you parsed the source code - how are these functions spelled out, logically?
It is open-source, you can find the original reference client on Github, with documentation.
https://github.com/bitcoin/bitcoin


He did not invent passwords for each purse to each block, it is clear that this was all automatic, but either it was originally an abyss, because for him the idea was higher than money, or it was preceded by a certain algorithm that was tied to ... which ones parameters / criteria / pr .. ??

Sorry if not on the topic, I want to understand logic.
The data that is hashed cannot be foreseen, as it includes all the transaction made on the network. You also need to include the previous block header, to prevent attackers from changing previous blocks. So, it is not pre-generated but totally based on math.