Crypto Academy / Season 3 / Week 2 - Homework Post for @pelon53

in hive-108451 •  3 years ago 

Hash

Resistance collision

Collision is the coming together of two bodies or the clashing together of two bodies during motion while resistance means the act of moving or resisting from something so with this two definitions we can say that resistance collision or collision resistance is a property of a cryptographic hash function in which it isimpossible to computationally see a collision on the hash. .

Each has functions that has large inputs than outputs will have collisions, resistance to collision doesn't necessarily means there won't be collision but it will be very rare to find. This simply means we can't find two different Inputs with the dame output. If we have 2 inputs M and M the result will be h(M)=h(M) and M≠M

Preimage resistance

.
Preimage resistance is another property of a hash function that is hard to turn upside down or change the position. If an element is given in a hash function it should be impossible to computationally find an input that correspond to that element. This means if we have a hash value H, it is not possible to computationally find an input M such that h(M) = H.

How to use tronscan to verify hash of block and trànsaction.

20210710_114019.png

To use tronscan to verify the hash of both the block and transactions, it should be noted that Tronscan is mainly for checking hash transactions of the Tron blockchain network. First we login to the platform by inputting tronscan.org in the browser search page, it will then take you to the homepage as shown in the screenshot above.
.

20210710_114047.png

Details of all transactions performed will be shown. To check for the last block that was created, you click on the number of blocks as shown by the arrow in the screenshot.

It will take you to the interface where you can view the various blocks that has been created right down to the one created seconds ago. In this tutorial we will be checking the hash of the last block created as shown in the screenshot above. To check the details of the block, just click on the block number and all information about the block will be shown.

20210710_114107.png

20210710_114110.png

20210710_114113.png

20210710_114115.png

This particular block has a total transcation of 357txn. This shows that a block will be built after multiple transactions has been carried out at that time to reduce the space used up. In the second screenshot we have various transactions under that same block, with details of the time and wallets in which the transaction took place. Amongst this transaction 300 was a transfer from a wallet to another wallet.

20210710_114138.png

Also on the block we can check for the token type that the transactions were done either a trc 20 token or a trc 10 token.

20210710_114322.png

20210710_114325.png

Also transactions details can be checked by clicking on the hash of the transactions listed under a block, as shown above. This overview shows every detail of the transaction and if the transaction was successful or not.

You might be wondering if a transaction is carried out between yourself and someone how can you confirm the transaction on tronscan, it is quite easy just ask the person for the transaction hash in his or her wallet after the transaction and verify on the tronscan.

20210710_114345.png

After getting the hash address paste it on the search bar in Tronscan and press search, the details of the transaction will be shown. As seen above the transaction was failed, which means the token sent to the wallet address wasn't recieved and it was reversed back to the sender.

HOW TO USE ETHERSCAN

Etherscan usage is just like the tronscan the only difference is the kind of token in which they verify their transaction. Etherscan helps to verify transactions on the Ethereum block chain. It shows every transaction done at every second on the block chain.

To check transactions on the etherscan, first load the website on your browser with etherscan.io. after which you can check for the various features of the platform. To check the block hash and transaction hash, after loading the website, you scroll down till you see where details of block is shown. Then click on the block heights no and the details of the block will be shown to you.

20210710_114402.png

20210710_114406.png

20210710_114409.png

After clicking an overview of the block will be shown. Showing the amount of transactions done in that block, the timestamp, the difficulty, the rewards and all of other informations. The hash of the block will be shown as well. Each hash address is unique to each block and each transactions.

To check the transactions done on the block, click the transactions as directed by the arrow and a list of the transactions will be shown, with other details like the time it was done, the type of transaction done, wallets that was transferred from and transferred to and the hash address of the transactions.

20210710_114430.png

20210710_114432.png

The transaction details can further be checked to see if the transaction was successful by clicking the transaction hash it will show us further details.

To verify transactions by oneself using the etherscan after given the hash address of the transaction, one just have to load the page and input the hash address in the search bar and click search the transaction details will appear and one can verify if the transaction is true or not.

20210710_114453.png

SHA-256

SHA-256 which is a variant from SHA-2 was developed by the United State national security agency in the year 2001. The word SHA means Secure Hash Algorithm. The secure hashing algorithm 256 is a hash function and mining algorithm used by Bitcoin, it is a hash function that produces 256biys long value. It helps in verifying transactions, managing and creating addresses. The hash algorithm is highly secured and can't be decrypted because its not encrypted in the first place.
.

20210710_114514.png

How to create a SHA-256

There are lot of online tools that can help one in getting SHA - 256 for words that one which to turn into a hash function.
.

Let's do 2 example in this lesson.

First we will be creating a hash for the word cryptoacademy.

To create the word first load the link https://passwordsgenerator.net/sha256-hash-generator/. After loading it shows you the space where you can input the words you want to convert to a hash

In the screenshot above, the hash of the word cryptoacademy is derived as above in the screenshot.

0592F5DD27DC72E675B2AB9C77487A69FAAF84196597FA052ECO99C18EE7C4C5

20210710_114533.png

We create another one for the word CryptoAcademy

and we get the hash as shown in the screenshot below, we got the hash D03CA34B258E6E0FD06B2070DDE61B50BD4EEF6161A8EDAA4A420C9AE1BEB7F9

20210710_114553.png

Difference between Hash and cryptographic.

A hash is a function which is used in converting a value or word from one to another. A hash is used most especially in cryptography because it is used to cover up original data with other value which can't be discrypted unless looked up on a hash table. A good hash function should not be editable.

This hash functions are unique and unreapeatable which means there can't be two hashes that are identical, it is also constructed in such a way that they are all of the same length ND they are very efficient and safe.
The hash has been designed to help in creating cryptocurency addresses, mining procedures and smart contracts.

While

Cryptography is a technology used in securing data through the use of codes and preventing third party from gaining access into another person data without authorization so as not to alter the data to their own benefits.

Cryptography can be referred to as the foundation of blockchain. The word crypto graphy is splitter into two crypt meaning hidden and graphy meaning writing so in other words cryptography means hidden writing.

The main difference between the hash and the cryptography is that hash is the function used in cryptography to create encrypted data or values used in generating addresses under crypto. The cryptography is not feasible without the hash.

@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...