Bitcoin Forum
June 06, 2024, 05:25:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: HASH function  (Read 88 times)
Light1992 (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 20, 2023, 12:53:13 AM
 #1

Hi
Please guys,what type of hash functions is used when there is a variable number of items to be hashed,such as the many state changes in a block?
MusaMohamed
Sr. Member
****
Offline Offline

Activity: 924
Merit: 301



View Profile
July 20, 2023, 02:30:10 AM
Merited by ImThour (1)
 #2

In Bitcoin, hash functions are used for transactions, block hashes and addresses. Two hash functions used in Bitcoin are Hash SHA-256 and Hash RIPEMD-160.

Hash function for dummies
Hash function for beginners
A quick guide on `How the hash of Bitcoin block is calculated?
Zaguru12
Hero Member
*****
Offline Offline

Activity: 714
Merit: 896



View Profile WWW
July 20, 2023, 05:09:26 AM
 #3

Hi
Please guys,what type of hash functions is used when there is a variable number of items to be hashed,such as the many state changes in a block?

A Merkle tree or hash tree which totals all the various number of hashes. https://www.includehelp.com/mcq/what-type-of-hash-function-is-used-when-there-is-a-variable-number-of-items-to%20be.aspx

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
Jon_Hodl
Member
**
Offline Offline

Activity: 221
Merit: 93

Humble Bitcoin Stacktivist


View Profile WWW
July 20, 2023, 09:43:19 PM
 #4

In Bitcoin, hash functions are used for transactions, block hashes and addresses. Two hash functions used in Bitcoin are Hash SHA-256 and Hash RIPEMD-160.

Hash function for dummies
Hash function for beginners
A quick guide on `How the hash of Bitcoin block is calculated?

He nailed it right on the head. I have been using this tool (https://sha256algorithm.com/) to better understand how it works at a more technical level but it takes time. This tool enables you to hash anything and walk through each and every step to fully understand what happens at each and every step. I have also been lucky enough to have one of the cryptographers at a local meetup help me to understand things but it's an uphill battle.

I'm here to chew bubblegum and stack sats....and I'm all out of bubblegum. - Learn More About Bitcoin: What Is Bitcoin?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!