• Dili ve Kuru Değiştir
  • Tercih Ayarları
    Yükselen/düşen rengi
    Değişikliğin Başlangıç-Bitiş Zamanı
  • Gündemdeki Aramalar
    AI16Z +15.81% #280
    Piyasa değerine göre sıralama #280
    PLUME +12.68% #255
    Piyasa değerine göre sıralama #255
    GOAT +19.42% #386
    Piyasa değerine göre sıralama #386
    SWARMS +39.86% #832
    Piyasa değerine göre sıralama #832
    PNUT +11.69% #235
    Piyasa değerine göre sıralama #235
    EIGEN +8.68% #184
    Piyasa değerine göre sıralama #184
    MERL +17.12% #501
    Piyasa değerine göre sıralama #501
    PRCL +23.54% #804
    Piyasa değerine göre sıralama #804
    FIDA +12.39% #462
    Piyasa değerine göre sıralama #462
    USUAL +8.62% #518
    Piyasa değerine göre sıralama #518
Cryptopedia

Cryptopedia

Hash Algorithm

A hash is a value computed from a base input number using a hashing function. The hash algorithm plays an important role in the blockchain technology. The one-way hash function, a scattering function, converts a variable-length input into a fixed-length binary sequence. However, this process is irreversible. The hash value generated after hashing varies a lot although the inputs have small differences. That’s why the hash algorithm is suitable for encryption.

For instance, hashed by SHA1, the sequences of Gate and Gate1 are different despite their fixed length:
5701b5f6feaa9aaae618dd553adc29893963cc1a;
b3607aef90d33224f0ab1b2663407af3571e4798;

There are numerous types of the hash algorithm. Generally speaking, a longer length of sequence means stronger security. SHA256, SHA1, and MD5 are common hash algorithms. As for Bitcoin, SHA256 is applied in its network.

Main Applications of the Hash Algorithm in the Bitcoin Network:
1. Generating the Address of a Node
The address of a node is similar to the number of a bank card. Bitcoins are transferred through addresses.
To generate an address, a public key is run through both the SHA256 hashing algorithm and the RIPEMD160 hashing algorithm repeatedly, before encoding it with BASE58.

2. Mining
Bitcoin is mined through a proof-of-work consensus algorithm, which involves hashing. First, a block header is hashed repeatedly by miners by altering the nonce value. Through this process, miners can produce the target hash value, completing a proof of work.

3. Merkle Tree
A Merkle tree is one of the important information stored in the block header. The root hash of a Merkle tree is the hash of all the hashes of all the transaction data in a block. In a block header, its components include the Merkle root hash, the hash of the previous block, the version number of the software, the timestamp, the bits, and the nonce.

Besides what has mentioned above, the hash algorithm is applied in many other ways in the blockchain network, such as forming a blockchain. The algorithm is central to the protection and transmission of transaction data in a block.

Gate TR tarafından yazılmıştır. Lütfen kaynağa başvurun.

İlgili:

Şurada Paylaş:

Önerilen

Dil ve bölge
kur

Dil ve bölgeyi seçin

Gate.TR'ye mi gideceksiniz?
Gate.TR artık aktif.
Tıklayıp Gate.TR'ye gidebilir veya Gate TR'da kalabilirsiniz.