Heling cold solitary self-eighty-eighth Tian know python block chain 002

Heling cold solitary self-eighty-eighth Tian know python block chain 002

【main content】

Baidu search to understand the basics of block chain, sharing time 23 minutes.

(Also finishing taking notes took about 70 minutes)

Details see the end the process of learning the learning process screen video.

The main continuing yesterday's blog to learn:

https://blog.csdn.net/Blockchain_lemon/article/details/81161449

Thanks to the selfless sharing bloggers.

 

[Study notes]

First, the block chain digital currency wallet

In yesterday's study, I realized the problem and block chain digital currency was born to be solved. Since it is not a trusted third party to solve the center of the guarantees directly to the next point they can still trust each other transaction, then any node of a block chain, need to have their wallets.

Each node has its own wallet pair

Public Key

with

Private key

The public and private key there is a corresponding relationship, in the algorithm is simultaneously generated. (Specific algorithm I do not have a deep understanding, this is not as elaborated.)

The public key is any of a purse can be directly open to the entire chain block, the entire block to facilitate the chain is verified using the node, while the public key directly through a certain algorithm to obtain the corresponding direct purse address (there may be multiple addresses pointing to the same wallet).

(A) Public Key

It can be obtained by the elliptic curve calculation algorithm secret key from the public key, which is irreversible process: K = k * G. Where k is the private key, G is referred to as a constant point generation point, and K is the resulting public key.

That is, has the private key can calculate the public key, but only know the public key can not figure out the private key.

(B) purse address

Wallet digital currency is actually an address (can have multiple addresses point to the same purse), all information is stored in a block chain itself, who has the private key that address, who owns the purse, which experience can handle card belonging to this address all digital currency.

(C) private

Therefore, the private key for digital wallet money for proof of ownership is crucial, digital currency will generally private owner to transcribe this piece of paper, put in a safe place save cautious, or using hardware including cold storage wallet private information, including digital currency, safes and other security put in place save cautious.

 

 

Second, how to transfer money from digital wallet address

A node (which can be understood as the sale and purchase transaction of one of the parties) initiates the payment, the first public announcement of the information they purse, plus a private key signature, and broadcast to the entire chain block all network nodes.

(A) private key signature

Official digital signature algorithm has been beyond my knowledge of mathematical foundations, and therefore can not fully understand, but I basically read about its meaning, and that is simply popular description:

When a node publicly broadcast their transactions, public key information is naturally out of public broadcasting, while the private key information through a certain algorithm to give information on a signature consisting of at least two coding algorithm obtained after this signature also broadcast information with the public together to block chain network, of course, where it is impossible to imagine that we only get information by signing anti-key launch it came. The private key signature process is complete this transaction broadcasting.

(B) how to verify the legality of a broadcast deal

How the other nodes receive a broadcast of a transaction node to verify the broadcast chain is in line with the contract algorithm block it, namely how to verify the originating node to other nodes trade mark ownership of a public key corresponding wallet it?

Simply put, it is to verify proof of relevance to both (specific algorithm I do not yet understand thoroughly) make specific private key signature and public key algorithm. My understanding is that, although there is no verification node can be reduced to give the private key itself, but still can verify the signature with the private key corresponding to the public key is therefore to prove the legality of the transaction.

 

Three functions, miners and miners

(A) miner

Miners block chain network node is a special role, my understanding is, simply, to verify other nodes broadcast the legitimacy of the transaction work is done by the miners, at the same time, if the miners verify the legitimacy of a transaction after that, it will add a new block from mined in this transaction or transaction information while multi-pen onto this block, and added to the block in the chain before.

(B) how miners digging new block

Because so many miners node, while the same transaction can only be recorded to a new block and added to the end of the longest chain block chain, then decide how the new block which miners are valid it?

This competition mechanism into - the workload proved to be miners complex arithmetic operations to solve a complex algorithmic problems (specifically a lot of problems, I did not fully understand, such as the common arithmetic problem: for to be considered valid or "digging "Hash value of the block, and the block Nonce need to satisfy certain conditions. for example, four leading digit needs Hash value equal to" 0000 ". we can increase the complexity of mining by more complex conditions, for example, we can increasing the number of the beginning of the Hash value of 0. miners need to address the problem is to find a password Nonce value, the Hash value satisfies mining conditions), the first node to which the miners algorithm to solve this problem, then you get right down to produce a new block , this new block will be generated by the miners at a node, the new block is recorded at the time of broadcast information legitimate transactions, and attach it to the chain block chain manipulation longer, waiting for the next to join the new block.

I have this basic understanding of why the miners block chain network node is a very important component, because miners block chain is key to ensuring no centralized trust formation.

In order to encourage the participation of miners, a miner node successfully compete for the opportunity to generate new next block, will get monetary awards of digital networks, so this is the most simple sense of the mining.

And at the same time, miners face a large number of transactions broadcast from other nodes, they have only to choose what you want to verify the legitimacy of the transaction to complete the transaction and added to block the chain, then the time to initiate transactions If the node can broadcast transaction, certain additional remuneration (ie miners fee), you can attract miners prioritize such transactions broadcast.

 

 

[Learning] Postscript

First, the simple rules, complex world

Today regarded as the most superficial knowledge, but also say he understood what a block chain it!

At the moment I really felt, block chain technology itself is not a new invention, because it uses all the technology, in fact, there is already an existing or prototype, such as: p2p distributed technology, key algorithm, hash algorithm.

However, I am deeply shocked: these simple changes in technology and integration, it is enough to subvert all the achievements of a new technology! The world is more wonderful.

It is like life, what with the principle of life is made of, is not complicated, but the achievements of a rich, shiny world.

This is the most complicated thing in the world, but it is composed of the most simple rules, thought-provoking Is not it?

Principle always so simple, but yet the world is so complex and complicated that no one can master it alone, and even set the power of mankind and can not glimpse one of two.

Today's world is very complex, the future may be more complex, survival and development of life is always the biggest challenge to face, the face of increasingly complex future world, in such a decrepit body, I could not help grief from the heart, but also still have to brave. Life means not flinch, as pawns on a chess board in China, which have nothing to go back to the retreat, destined to revolutionize the face of a future, but also how to do it? Only run! And galloped off toward the running direction of the future of the faster, run!

 

 

Second, the most viable future

When I first learned that "self-organization" phenomenon of time, and thus difficult to understand the self-study contains profound truth, the whole universe is simple and grand and feel small.

The universe is so complex self-organized, which is full of confrontation and energy conversion is contradictory.

In this short space and time, survive, life, is everything you have to complete the mission?

When you see the block chain technology (such as trivial point function Bitcoin has been achieved, which is known as block chain 1) from simple rules and violence can create so viable existence, and even change the past all, what could be more change people's world view it?

I was feeling that maybe that will be filled with greater competition, only to lose the next larger gap viability of it!

How to get a better future viability of it? Only lifelong learning strike.

 

In order to catch up with the future, lifelong learning and progress, I created [growth] is to learn life-long community are welcome to aspire to lifelong learning and growing friends to join and share their learning. Qq group number: 646 854 445

Or visit: www.941xue.com

 

[Routine of self-description of the stick]

The last routine explanation, why should I insist on self-study.

First, why old age is still learning

Give up a lot to go to dinner, go HI songs to play, go to the movies, catch drama ...... time, and then engaged in the learning age, should no longer seems to have been carried out, attracted endless people around puzzled and even contempt poor ......

But I do not want to give up the vow of lifelong learning.

because--

I do not agree with the status quo my life today!

Robert Kiyosaki told us, to reflect on their current life is not what you want, is not that the best motivation and answer?

Gone through most of their lives, and then only to find once, the moment the ongoing life is not what you want, it is a kind of experience?

Only the hearts of sincere feelings in order to answer this question, and then let the rich language is not portrayed.

Half of the trek experience, but found that does not go right, how many people have the courage to admit all the past is wrong?

And I'm willing to tell the past me: "! You're wrong."

So has experienced half a lifetime mistake, big pressure and age of the head, there is hope and a half from the end of the ladder frame and down again, then hobbled to climb another ladder in it?

I prefer to believe that there is hope!

This is why I want to continue to adhere to lifelong learning all the reasons to go on.

Second, at this age still learning these techniques do make sense

Pure technology this age are in fact no meaning.

But the interest can go beyond sense.

But technology can lead to changes in thinking, this is the meaning.

Invest in their own minds, their ideas of reform, this is the best preserved, more long-term investment, in the past I have never invested before, miss too much, then invest in their own minds from the start.

Robert Kiyosaki tells us that the really rich are rich time; real freedom is freedom to decide what they are willing to do.

Because I'm willing to do something where my interest, so I hope I have the freedom of choice that day, although that day may still be today from so far away, but I want to believe that more than a day to catch a few steps away from the hope that even taking a step forward.

Furthermore, although I might then have been unable to fully complete master these techniques, but the technology itself is the awakening of the heart may be enlightened, inspired, so as long as we understand that, I believe I will leave that to run away from me the more positive the faster the closer to the next point, and will not be abandoned by the unknown future that too far.

So how can I give up chasing the pace quest?

I want to believe: feeling too late, perhaps not too late.

 

I am grateful to have been concerned, I encourage you!

If anything against this one to the advanced age until I grew up in ridiculous Alas, please let us know.

Q My number is: 578 652 607, look forward to hearing your advice.

 

 

[Simultaneous voice notes]

https://www.ximalaya.com/keji/19103006/253267521

 

[Learning] screen recording screen

Link: https: //pan.baidu.com/s/1V8usqAvsx08DvUXG1BYDwA

Extraction code: vhsv

 

Guess you like

Origin www.cnblogs.com/lhghroom/p/12301420.html