Hashing

Hashing

Update: 2020-06-04
Share

Description

Hashing is the process of deriving fixed-length strings from arbitrary-length data. It is generally used to represent data in a more compact and consistent format. For example, a small string like the name of a person and a large file like their resume could both be represented by two different strings of the same length by hashing them (individually) using the same hash function.

Hash FunctionsHashing is done using programs called hash functions. There are several hash functions based on different algorithms. The main characteristics of good hash functions are:


  1. Deterministic — It should generate the same hash from a particular input on any system or hardware.


  2. Irreversible — The hashing process could not be reversed to get the input back.


  3. Fixed-length output — The outputs from a hash function are of the same length irrespective of the length of the input.


  4. Collision-free — The same hash must not be produced for two different inputs.

Hashing in BlockchainIn the context of blockchains, hashing is used in several places. Some of these are:

  1. The cryptographic signing of transactions and blocks. Hashing is generally part of all signing algorithms. All transactions in a blockchain are signed by users and all blocks are signed by their respective miner or producer nodes.


  2. Representation of transactions and blocks using their hashes. In a blockchain, the transactions and blocks are generally represented using their hashes.


  3. Merkle trees used for storage — all non-leaf nodes are hashes of their children. The storage root hash changes even if there is a slight change or update in any of the data stored in the blockchain.


Music: https://www.purple-planet.com
Comments 
In Channel
Block Rewards

Block Rewards

2020-08-0304:48

Block Finality

Block Finality

2020-07-1304:59

Fork

Fork

2020-07-0604:32

Blockchain Governance

Blockchain Governance

2020-07-0204:54

Smart Contracts

Smart Contracts

2020-06-2204:45

Wallets

Wallets

2020-06-1804:47

Accounts and Keys

Accounts and Keys

2020-06-1504:43

Signing

Signing

2020-06-0805:14

Hashing

Hashing

2020-06-0404:42

Consensus

Consensus

2020-05-2505:10

Blockchain

Blockchain

2020-05-2104:54

Download from Google Play
Download from App Store
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

Hashing

Hashing

Gautam Dhameja