Steemit Crypto Academy, Season 3: Week 4 | Homework post for @pelon53

in hive-108451 •  4 years ago  (edited)

2A84E2E2-0379-45AC-B132-92699F4ABA87.jpeg

Introduction

Hello to everyone. This week's homework topic is hashe rate and the merkle tree. Thank you in advance to everyone who reads my homework. I wish you all a healthy and beautiful day

6A327051-140D-4AC3-8EF2-EC0F834518AB.jpeg

Questions 1

Explique en detalle el hash rate.

Hashe rate is also known as hash rate. Hashe rate refers to the operating speed of any device we are mining. Speed ​​is a very important factor in mining. Mining devices make hundreds, thousands, millions of estimations per second.

Hash rate is also one of the most important elements of the blockchain world. It first appeared with the emergence of the first cryptocurrency (BTC).

Cryptocurrency mining involves creating blocks through many complex calculations. These blocks are like a mathematical problem. Mining devices make predictions of millions of transactions per second, as we said before.
Hashe rate is also a term used to measure the security and strength of a blockchain. For this reason, the higher the hash rate of any blockchain network, the stronger it will be against what we call a 51% attack. In short, the more miners you have, the stronger your blockchain network will be and the lower the hacking rate.
Hashe rate is expressed numerically as shown in the table below. Hash rate = calculated in hashes per second. (h/s).

• Kilo Hash : 1.000 hashes
• Mega Hash : 1,000,000 hashes
• Giga Hash : 1,000,000,000 hashes
• Tera Hash : 1,000,000,000,000, hash
• Peta Hash: 1,000,000,000,000,000 hashes
• Exa Hash : 1,000,000,000, 000,000,000, hash

21305A6F-CCF8-486F-AE29-B5BECCFFDBC8.jpeg

Questions 2

Realice el siguiente Árbol Merkle:

Transacción (hojas del árbol): Steem1; Steem2; Steem3; Steem4; Steem5; Steem6; Steem7; Steem8.

Llegué hasta el Root Hash. Y coloque cada hash generado usando SHA-256, muestre captures de pantalla.

Diga los pasos a seguir para verificar si Steem6 está incluido en el Árbol Markle.

Steem1: 7760E25BCB80ADF1DD92DB339BF5790A59E90CD54EFA072F1250DCE13FA97045

B228D26B-0D5E-4B6B-8A5F-DFDD4A74A297.jpeg

Steem2: FE00506E91CF52BC4B35321E6B978D1A7349397B19C6C1C01E095971FDEC9741

7A72B524-DC49-4DA4-8DFE-93548282F48C.jpeg

Steem3: A9418332E0C351D6A50C835AA9E57D514F0573C231D491E97726DB8A5844F2DC

C13EAE6A-0029-4A97-98A3-0353F25DA45B.jpeg

Steem4: 22F4EC8E20C9CCAF2C313B23F18981B1C73BF39081BCD739E5D998A95A46AB30

762E7671-6D3D-4BC7-9554-EA57A2BBC3CE.jpeg

Steem5: 2A3C87336683AB0DDFA56AFEFC740E6C13A02FEA0A43D6797343B26D7AF0C57B

26362EA8-F13F-4148-AA50-1F16D8B2C049.jpeg

Steem6: A7BAA6DE0C0658E9E3681966E542BACD116529F5AE9A2D9126CDB1C1D5BC1278

FBCA17D0-2281-4B30-8FE7-427E8B456F72.jpeg

Steem7:

D441688DDA7F9285E8811728DD9A3955CF74F0A3C7600C1589D0F1D3B48FFAC7

A83C6D71-3502-462D-A61B-83BA8B91B17C.jpeg

Steem8: F2E38ED4FF662087B6E9BEAFA4158EBC488B995732057BDA019A6A77FFB5F9F5

74B04FFB-5343-449D-BDA8-72683EFD146F.jpeg

First Level Merkle Tree Branches

Steem1Steem2: A5568957014F6AC3866923C7DE20D375E706B8D8C9F453636E90B9965ABEC62B

204FAE3E-8DE3-4625-8E9A-148D62B26519.jpeg

Steem3Steem4: 18D25196DB699F6AB9222B7302EB8A6F6EBFADEC703C07DD5DB8D9455913A499

61CDD18C-5597-43C2-B783-DC937CC2FB9D.jpeg

Steem5Steem6: D118E137F92A0DBEA138B6BF70C7714153A7BC393CD0272A44BD94864645224B

4C65D48B-C37F-42B5-9BA8-BC3EF8C9B761.jpeg

Steem7Steem8: A81D57BA11AEDFA9EFBBA42F6523D75D1EFA50B22C5E3557A21CEFFE87DDFC4A

5E8ED230-62BC-4920-86F0-C8F2832A9DC3.jpeg

Second-level Merkle Tree Branches

Steem1Steem2Steem3Steem4: 8A248C05E69C4F1AA403AD18A7F445FF500C42483DA425CE0C980CDB2FD1AD9B

B247396F-6770-41BC-88D9-82612A6E9B14.jpeg

Steem5Steem6Steem7Steem8: 8B0935AEAB3F51BFA2B0750703EE2387E2B20EB19B0D24227E180C03A851AF17

BE011F3B-87BF-495A-9F9B-0CA3CA592861.jpeg

Merkle Tree Root Hashe<\center>

Steem1Steem2Steem3Steem4Steem5Steem6Steem7Steem8: 9C2FC83F36D59B8ED5033D2BCC417728583C8DAA0AA9868FD374BE3619D6E4F9

D17932D8-157D-4A03-8160-7FE061D5538E.jpeg

8F6BCF5C-ECC3-4137-9498-0FA84FA0AA1E.jpeg

Steem6 Verification Steps

  • First, steem5 is verified.
  • Then Steem7Steem8 in our second branch is verified.
  • After verifying Steem7Steem8, we move to our 3rd branch and the hash values ​​of Steem1Steem2Steem3Steem4 on the other side are verified.
  • In our last step, we reach our Steem1Steem2Steem3Steem4Steem5Steem6Steem7Steem8 value, which is the main root of our Merkle tree, where we can see the values ​​of all our hash values.

009997CA-1D70-4CEC-AFA3-5F1402E5A8B3.jpeg

Questions 3

3.- Usando el SHA-256; debes colocar cada hash completo en el Árbol Merkle.

Transacción (hojas del árbol): SCA1; SCA2; SCA3; SCA4; SCA5; SCA6; SCA7; SCA8. Explique cada paso, muestre captures de pantalla.

Si el número de las hojas del árbol es impar, ¿Qué debes hacer? Explique.

Merkle Tree

SCA1: 13E0A04BB0E669E1C638DBE3A704743F99F162B25245E4D8C064D35BA38FA8C8

E234CAF0-0186-4795-AA41-80E8D63CD634.jpeg

SCA2: 27849353A9C8CC4E948EB6E5748EDD79CB83513D8C0ADAF3E8C83D3792C9149B

814813BA-5FC4-4BF4-915F-D01E41DE157A.jpeg

SCA3: 67E872F952C105C35E0BCE130536D061F4999DCA5593754BA9BA7BE59B8E7C0D

1AF29140-8AD8-4B97-85F6-0EDB0A361B93.jpeg

SCA4: 491928A32BAE70A12FA251412BBFD7C9999F317BA6BF577C283C724225270A43

92796308-9D5D-409E-B148-C99DE81FBAC8.jpeg

SCA5: 99C078C39CDE7F47799E0E8691460A9F3E83E78D498EA989308FCFCC58907B19

DFB28882-C953-4570-9578-56D5AD2BC98A.jpeg

SCA6: 7A648D887B124DB14E96E23BA92783E7F26D00957C19B9B8229632C2C1873729

258D3B14-B49C-468E-867D-6C74677D19B2.jpeg

SCA7: 7E0BBD6BA4BA9896F9911AF46B06DD2C47535F9C80B29D693FDF6B9319D0D68E

51C0C8A7-5BC1-4B43-9BD4-5D9910876B08.jpeg

SCA8: 562ABCEEB497E1FE7AE275A883FD5EF9D92A05F5C19D82ABAA0DC1571B7DF3AD

1ACFBDCF-86DD-478C-BD77-D56EED5C4E72.jpeg

First Level Merkle Tree Branches

SCA1SCA2: 91B09BBA815748166FB36413342C7E4E7E809F4BAC538C0418841A4476B527EF

5F0F563D-8C9C-43B2-96B2-BF4DB02FB4E3.jpeg

SCA3SCA4: B49B48697A3ACBC5E3D2E36B6EE49C44020D88E664C5C1AA7A7CF34058177379

6E7633FE-9B4F-4FC5-8426-F29DC5C21FD3.jpeg

SCA5SCA6: F026924CD1285FF92C2A2DE9B9313027EB67273A82375C939348C887F6B52F77

36C241DF-DAEC-44A4-8868-6885E0BAD791.jpeg

SCA7SCA8: AA55EC5A6B11393B289C4B2B6916172ACC2941C5C978FB1D7BF02696BAB323A4

1509AA1A-EA7E-43E7-8B5E-EE332B4939E4.jpeg

Second Level Merkle Tree Branches

SCA1SCA2SCA3SCA4: F50DC120CBF6C46923037F6D7F41D4153ECC9AB7430DDA662C142DB1FFE483F7

9D1532AA-E3D7-43CD-AFD6-CE624468E4B0.jpeg

SCA5SCA6SCA7SCA8: A3D8CA8494CC426ABD5E1FC5FA0FEAE4F2B2ECE4C4CECDCA05E19EB66542533F

AF8040DF-25EB-42F8-AF79-B50D2C0EC256.jpeg

Merkle Tree Root

SCA1SCA2SCA3SCA4SCA5SCA6SCA7SCA8: CB40CA6DB72DD507CF9118963F94B7740822258E74AFB0FD45D89DB35D24B386

C81BB07F-C75D-4D18-A00A-2D6E391FA803.jpeg

  • The Merkle Tree, which we created thanks to all the leaves we found, is as in the screenshot below.

CE3E2C5F-B571-4303-8EA8-8ED54ED6E13F.jpeg

What happens when the number of leaves in a Markle tree is odd?

In the structure of the Merkle tree, the leaves that make up each branch must be present in pairs. Otherwise we will not be able to verify any branch of the tree. If there is a branch that is in the form of a single leaf in any way, we cannot reach our root hashe value.
If it is found as odd in any way, we can reach our root hash value by multiplying our non-pair hash value.

Example:

00B03FA5-B65A-4304-836D-11CAC3CDBC6F.jpeg

In case we encounter a Merkle Tree as in the figure;

B85E1C5B-1BE3-44B9-8312-3FF1CFFAAB21.jpeg

We multiply our Hash value in the form and make it double and we reach our root Hash value.

F23AEFF9-5936-43E1-9275-E3C2EEBDB2C9.jpeg

Conclusion

What is the hash rate in this lesson? and how to find merkle tree and merkle tree hash values ​​in detail.

Thank you professor @pelon53 for this nice lesson.

Also, thank you again to everyone who read my homework.

CC: @steemitblog @pelon53

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
Loading...