Homework on Hash Functions - Questions

  1. A hash function takes a string of data and converts it into 256 bits. This process is impossible to reverse and provides a unique identifier for your data.
  2. In Bitcoin the Hash function is used to hash transaction data. Also mining and finding a nonce requires finding a number that generates a specified hash in combination with data unique to that block.
  3. Collision resistant means two different things not getting the same hash.
1 Like

1.A unique label to verify legitimate peace of information
2.When a miner finish the book of transactions creates a unique hash to validate a new bitcoin block. Each block includes it’s hash and the hash of the previous block in simple words hashes are the inputs and outputs to connect the blocks.
3.It should be impossible that two random inputs create the same hash output.

1 Like
  • Hash functions are one way functions where each input produces an output or digital fingerprint.
  • Hash functions in Bitcoins are using in mining for new transactions on the blockchain. The inputs for the hash function are the unconfirmed transactions plus additional data related to time and the previous transaction. To solve the block miners try to combine all of the inputs along with data of their own so the outputs start with a bunch of 0’s. It takes a lot of computing power and guessing
  • Collision resistance means that is very difficult to find 2 inputs that produce the same output in a hash function. This is an important property in cryptographic hash functions.
1 Like
  1. Describe hash functions with your own words
    code of letters and numbers coded for a set input.

  2. How are hash functions used in cryptocurrencies like bitcoin? (Try to research this on your own, we will cover this later in the course but challenge yourself and see if you can find information on this already now).
    Hash functions create blocks from their output

  3. What does it mean when we say that hash functions need to be collision resistant? (We didn’t use the term “collision resistant” in the lecture, but you will easily find this on Google, we add this question intentionally to make you research information on your own, that’s how you learn best).

Two different inputs should never produce the same output. If they do ist should be computationaly impossible to recognize.

1 Like
  1. Describe hash functions with your own words
    Hash Functions are a very complex function, in which a unique input is calculated to create an out put that acts like a digital fingerprint. A hash function is a One way function, meaning the input will show us the output, but we can never use the output to calculate the input, making the function very secure.

  2. How are hash functions used in cryptocurrencies like bitcoin? (Try to research this on your own, we will cover this later in the course but challenge yourself and see if you can find information on this already now).

Hash functions are part of the block hashing algorithm- this is used to write new transactions into the blockchain through mining.

  1. What does it mean when we say that hash functions need to be collision resistant? (We didn’t use the term “collision resistant” in the lecture, but you will easily find this on Google, we add this question intentionally to make you research information on your own, that’s how you learn best).

Collision Restraint in hashing functions mean that the same output cannot be created by two different inputs.

1 Like
  1. Describe hash functions with your own words

-A hash function is a unique function that produces a unique output to any given variable

  1. How are hash functions used in cryptocurrencies like bitcoin? (Try to research this on your own, we will cover this later in the course but challenge yourself and see if you can find information on this already now).
  • hash functions are part of the block hashing algorithm which is used to write new transactions into the blockchain through the mining process. The inputs for the function are all of the most recent, not yet confirmed transactions. Hash functions play a big role in proof of work algorithm to solve a block when mining.
  1. What does it mean when we say that hash functions need to be collision resistant? (We didn’t use the term “collision resistant” in the lecture, but you will easily find this on Google, we add this question intentionally to make you research information on your own, that’s how you learn best).

-Collision resistance must be in place for a hash function to be cryptographically secure, collision resistance makes it to where you can’t figure out any two inputs to match the output

1 Like
  1. A hash function is the output of a hash algorithm, which is a universal translator for computers. It is able to take any form or size of data (digits, letters or larger media files) and translates them into an alphanumeric string of a certain size, for example SHA-256.

2.Hash functions are part of the block hashing algorithm which is used to write new transactions into the blockchain through the mining process. To successfully solve a block, miners try to combine all of the inputs with their own arbitrary piece of input data in such a way that the resulting hash starts with a certain number of zeroes.

3.Collision resistance is the property of a hash function that that it is computationally infeasible to find two colliding inputs. It is important when you are relying on hash functions to always map two inputs to two different values.

1 Like

1 - hash function is a computer function that converts any data into a fixed size data. we can only go from input to output and there is no way to go from output to input except from guessing and because the the data we have to guess from is so so large, the probability of succeed is almost zero.
2 - hashes used in cryptocurrencies for store the previous data and to be sure that the old data has not been changed and is valid. also hashes are used to create public key from public key.
3 - collision resistant means that a function can not have 2 different inputs have the same output. hash functions are not collision resistant in theory because the output word is very limited and small relative to input word and we are sure that there are 2 data that have the same output, but again because the output world is so huge the probability of finding two piece of data that have the same output is near zero and we assume t hat a hash function is collision resistant.

1 Like
  1. Describe hash functions with your own words
    -Hash functions takes a unique input and gives a unique output. It is also only one way, meaning you can never derive the input from the output.

  2. How are hash functions used in cryptocurrencies like bitcoin? (Try to research this on your own, we will cover this later in the course but challenge yourself and see if you can find information on this already now).

  • They are part of the block hashing algorithm which is used to write new transactions into the blockchain through the mining process.
  1. What does it mean when we say that hash functions need to be collision resistant? (We didn’t use the term “collision resistant” in the lecture, but you will easily find this on Google, we add this question intentionally to make you research information on your own, that’s how you learn best).

-Hash functions need to be collision resistant in order for it to be hard to find two inputs that has to the same output. It makes it more secure.

1 Like
  1. Its a special function which will give exact output and that from exact data that you will be putting in. That will become your fingerprint, however, it won’t give you an opportunity to go back to the input data, so for me it also looks like hash-function works as some sort of security

  2. this is a matematical function used in cryptography. Typical hash functions take inputs of variable lengths to return outputs of fixed length

  3. It means that no two input hashes should map to the same output hash.

1 Like
  1. A hash function turns an input into a unique output that has a fixed length and structure.

  2. Hash functions are used to write new transactions into the blockchain.

  3. Collision resistant means we can not get the same output for two or more different inputs.

1 Like

1. Describe hash functions with your own words
The hash function is a process by taking an input and assigning or outputting a unique alphanumeric integer specified by the protocol / algorithym used i.e. Sha-512 Sha-256 Sha 3, etc.

2. How are hash functions used in cryptocurrencies like bitcoin? (Try to research this on your own, we will cover this later in the course but challenge yourself and see if you can find information on this already now).
Each transaction outputted is assigned its respective hash string. This string serves as the identifier for said transaction and as the continuing link in the blockchain. The strings are designed should they be altered in any fashion they will be rejected by the chain, so in a sense hash functions provide another layer of security for the blockchain process.

3. What does it mean when we say that hash functions need to be collision resistant? (We didn’t use the term “collision resistant” in the lecture, but you will easily find this on Google, we add this question intentionally to make you research information on your own, that’s how you learn best).
In order for Blockchain to be successful 2 transactions cannot have an identical output / hash, etc. Based upon this principle should 2 inputs create an identical output the blockchain can be altered (hacked) and it would not know which transaction would be the “truth” or to be rejected.

1 Like

1.A hash function is a mathematical function which converts an input into a compressed numerical value.

2.Hash functions are used in bitcoin when making a transaction, secure signiture or a secure message, the input is hashed using a numerical string of 256 bits giving the hash value.

3.A hash fuction is collision resistant if it is hard to find two inputs that hash to the same output.

1 Like

1.hash function in fact like a fingerprint, when you insert an input in the function you get a output(fingerprint) , if you change even 1 bit from your input you got an other output. and its almost impossible to discover(take a hundreds of years) the input if you get only the output ( basically a fingerprint or a signature that cannot be forged)

2.hash functions is the reason why it is impossible to change information in the blockchain and because it its a unique and revolutionary technology! that why cryptocurrency exist .

3.collision resistant its the reason why so difficult to find 2 same inputs for 1 outputs and mathematically its possible but very hard to achieve (almost impossible)

am i right? :pray:

1 Like
  1. Hashfunction is an input/language that delivers a digital fingerprint that can´t be corrupted or reversed. You cannot get the unique data that was sent back. Hash function is used as transaction data for Bitcoin
  2. They are used to create adresses in bitcoin so you can transact the the network. You have your own unique digital ledger(book)
  3. You have two input that are different, and they have different outputs. A and B must not provide the same output then it is not resistant for collision.
1 Like

Hash functions are where each unique input gives a unique output where it cannot be reversed. You can only go input<output not other direction.

By writing new transactions n the the algorithm through the process of mining

Simply put never coming out with the same output.

1 Like

1). a numeric system to represent input as a unique output. Outputs can’t be converted into the output or else bitcoin and the blockchain are broken.
2). they guarantee that the ledger wasn’t changed.
3). it means that the output has to be unique (NOT GUESSABLE) two different inputs can’t generate the same outputs ever.

1 Like
  1. Each unique input gives a unique output. A unique fingerprint for each input. U can never go from output to input. It’s like a one-way valve.
    2.Hash functions are used as a type of security,
    3.A family of functions. Two functions cant give the same output.
1 Like
  1. The output of a function created by an algorithm using a desired input is a hash function. Each individual input has it’s own output, which creates an encrypted string of alphanumeric values that as of now, cannot be reverse solved.

  2. Bitcoin uses hash functions in order to create encrypted secure password storage as well as verifying new transactions that need to be added to the blockchain.

  3. Hash functions need to be collision resistant. For instance let’s say, two different message inputs create the same output value for some reason. It is then possible for someone to intercept a message and add their message in a circumstance where the validator that verifies each message, won’t be able to tell the difference as the output values are the same.

1 Like
  1. A hash function is a mathematicafuction which converts an input into a compressed numerical
    value.

  2. A hash function is used when making a trasaction, the input is hashed using a numerical string of 256 bits, creating a unique hash value. (output)

  3. A hash function is collision resistant if it is hard to find two inputs that hash to the same output.

1 Like