-
Special functions which output is really, really hard to link back to its output.
-
Many things from deriving public keys to block signatures, verifying if an unspent transaction can be spent by a specific key and much more.
-
Most hash functions are not really collision resistant. But it basically means that you get the same output for two or more different inputs (which is also really, really hard to achieve).
1 Describe hash functions with your own words
A cryptographic blockbox, when you put something in the box a string of numbers and letters comes out which will never be able you to define the input. The same input gives always the same output even when you change one little thing.
- 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).
- By creating addresses, private and public keys. Transforming transactions which can be recorded as hashes in a ledger.
- 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).
if it is hard to find two inputs that hash to the same output; that is, two inputs a and b such that H ( a ) = H ( b ), and a ≠ b
- Hash Functions are one way functions which transform input text to unique output.
- Hash functions are used to encrypt the transaction data so its secure and only the intended recipient can decrypt it.
- Each input is transformed to unique output and probability of two different inputs transforming to same output is infeasible if not impossible.
- Describe hash functions with your own words:
Hash functions are one-way functions, follow certain mathematical algorithm, with any input, get fixed size output.
- 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).
Cryptocurrencies like bitcoin, the transactions are taken as an input and run through a hashing function which gives an output of a fixed length.
- 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 resistant means: given two different inputs A and B where H (A) and H (B) are their respective hashes, it is infeasible for H (A) to be equal to H (B).
For cryptocurrencies, hash functions have to follow this property. Otherwise the output can’t be unique.
-
A hash function can create a unique string of alphanumerical values based on any data that will change drastically if it recognizes any changes in the original data set. Hash functions are a special type of function that have certain properties making it ideal for cryptography. The properties described in our reading that cryptographic hash functions contain were deterministic, the original data will always result in the same output hash, quick computation, it’s real fast, pre-image resistant, it’s infeasible to determine the inputt given the output, the hash changes completely with small changes in the input, it’s collision resistant, each input will have its own unique hash for the most part, and it’s puzzle friendly, it’s infeasible to determine the input hash (before concatenation) such that its result is equal or less than the difficulty level (in mining.)
-
Hash functions are used to prevent new Bitcoin from being minted except through mining. This is because the data inputted in a hash cannot be altered or erased after enough on-chain confirmations, meaning the work required to secure that block cannot be copied, erased, or reversed. Hashing also keeps Bitcoin secure by encrypting transactions data through SHA-256. This data is kept secure by adding more data that has been hashed on top of it in a connected block. In order to compromise the data in the first block, you would need to first compromise the second, appended block. The difficulty to do this makes it highly infeasible after six or more blocks have been confirmed.
-
We mean that two different inputs should not equal the same hash output. If this is the case, the inputs are presumed to be equal. However, while we need hash functions to be collision resistant, they are not always. Hence the use of the word “resistant” over “proof.” But the number of times collisions do occur is so infinitesimally small that they are negligible in real-world use cases. This is why there is a much higher likelihood that two inputs with the same hash output are equal than it being a case of collision resistance.
- A hash function is like a digital fingerprint for a data object. Essentially you put a string on any length in and get a fixed length output. The output for a given string should always be the same (using the same hashing function).
- The inputs in to the bitcoin hash function are the most recent none confirmed transactions. The hash is run on this by miners who try to calculate the hash to add the new block to the chain.
- Collision resistant means it is statistically unlike to generate the same hash for a different input.
-
Hash functions take an input and produce a fixed-length output (digital fingerprint) that is different for every input. They are used as a means of data integrity since even the slight change in the input produces a really different output.
-
Hash functions used in mining blocks and eventually verify new transactions in bitcoin.
-
Collision resistant property of a hash function means that there is no two inputs that result in the same output in a hash function.
- Describe hash functions with your own words
You have an input and run it thru a ‘hash generator’ (e.g. sha-256) and it will create a unique fingerprint wich cannot be reversed.
- 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).
Every transaction (ledger) will be hashed together with the hash of the previous block to create a new block. And so on. This way, when a previous block has been altered, the chain will be invalid.
- 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).
You need to be sure there is no chance to have 2 different inputs generating the same output hash. When this happens it is called a collision.
- An Hash function processes strings of any size and return an output string of a fixed size. its needs to be infeasible to discover the input based on the output. For the hashing algorithm to be considered secure.
- Hash function are used to create digital signature, the id of the block, based on the hash of all transaction and data contain in this block and also with a nonce. Hash merkle trees more lighter and easier to navigate then have a giant transaction database and having to parce trough it every time you need to refer to it.
- That It must never or almost never produce the same output from 2 different input. this would mean that the hash function is less reliable. Hence judged insecure.
-
Hash function is a mathematical function which takes an input of variable length and gives an output of a fixed lanegth. It has important properties of being cillision resistant and the pre-image resistance is negligible.
-
Hash functions are used in bitcoin to perform chaining. Once the transactions in the block are stored, the hash is calculated using the hash function. This hash will be stored in the upcoming block, which results in chaining. This also will provide data integrity because if someone tries to manipulate the data, the hash of that block will change and this will breake the chain making the block invalid.
-
It means that if two different input are provided, the Y must be different. No two different input will lead to same output.
- Describe hash functions with your own words
Hash function is a set of data. For every input that is given, it will give an unique output for it (digital fingerprint)
- 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 function is used for every transaction and the output data is stored in a blockchain
- 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
Each input will have it’s own unique hash output so 2 inputs should never have the same output
1. Describe hash functions with your own words
It is a function that gets an input, does some calculations and gives you a fixed lenght output (that is allways the same for the same input) that you cannot reverse to get the input again. But you still can verify if the input has been changed or not by hashing the input again and check if the output is still the same.
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).
The info in the blocks are hashed and the hash is used to link the blocks together. So the hash of the previous block is inside the current block. So if you want to change some info in a certain block, you must recalculate all hashed of all previous blocks too.
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).
when a collision happens it means that you suddenly have 2 different inputs with the same hashed output. This makes the algorithm unusable.
-
Hash functions are unique digital imprints that are produced from input to output. And always one way - input to output.
-
Hash functions are used in cryptocurrencies like bitcoin by being part of the block hashing algorithms. To successfully ‘solve’ a block, miners try to combine all of the inputs with their own input data in a way where the resulting hash starts with a certain number of zeroes.
-
Collision resistant means that for the most part each input will have its own unique hash.
-
Hash functions work by taking an input no matter how big or small into the hash and getting a fixed 256bit output.
-
A hash function in Bitcoin is used to hash transactions in each block. Since each transaction has a unique output the blockchain now becomes very secure.
-
Collision resistant means not 2 different inputs cant have the same output.
- Describe hash functions with your own words
a Hash function is a cryptographic function that creates a unique output for a given input. That output may not be reversed to reveal the original input unless authorised.
- 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).
The hash function is used in bitcoin to codify the inputs of the transactions that comprise each block on the blockchain which in turn become an integral part of subsequent blocks. Because each hash is unique to the relevant input a change in data will in turn result in a different hash output which will in turn travel up through the subsequent blocks making them null and void.
- 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 Resistant Hash is where the probability of a hash function outputting the same hash for two different inputs is extremely unlikely.
- Describe hash functions with your own words
A mathematical function that gives a unique fingerprint to any piece of information
- How are hash functions used in cryptocurrencies like bitcoin?
In the bitcoin protocol, hash functions are part of the block hashing algorithm which is used to write new transactions into the blockchain through the mining process.
- What does it mean when we say that hash functions need to be collision resistant?
a hash function is collision resistant if it is hard to find two inputs that hash to the same output
- A hash funtion its a kind of resume funtion of a set of elements input into another subset of elements outputs.
- They have certain properties:
- deterministic: Same input result in same output.
- quick computation: Its fast to obtain H(x) of a given input x.
- pre-image resistant: given a H(x) is not feasible to obtain x.
- small changes in the input changes alot the result of the output
- colision resistant: given two inputs x and y its infeasible that H(x) = H(y)
- puzzle frendly: for every output “Y”, if k is chosen from a distribution with high min-entropy it is
infeasible to find an input x such that H(k|x) = Y. - is in 2.
- Hash functions is basically taking an input and hashing/ applying mathematical/ operations to produce and output so that it becomes proctically impossible to find the input given the output.
- Hash functions are used to calculate public addressed from private keys and seed phrases, to find nonces and to calculate unique identifiers for every block.
- It means no 2 inputs should have the same output.
1- Hash Function: Is a one way function that gives a unique output for each input.
2- Bitcoin transactions are hashed using SHA-256 and when a new block is need to be added, then the hashing of the old block is added to the new blocked and all hashed together
3- There must be no two different inputs that give the same output
Homework on Hash Functions - Questions
- Describe hash functions with your own words
Hash function is a crypthographic hash which gives unique output for every unique input. No matter of the size of the input you will always get the fixed output made of 16^16 (consist of 0-9 & a-f).
- 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).
In the context of cryptocurrencies like Bitcoin, the transactions are taken as an input and run through a hashing algorithm (Bitcoin uses SHA-256) which gives an output of a fixed length.
Every newly added block consist the hash of the previous one and creates new for the subsequent block. It all together creates harmony, if you change anything in the history, it will change the hash of that particular block and the chain will collapse.
- 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).
A hash function is collision resistant if it is hard to find two inputs that hash to the same output.
Collision resistance does not mean that no collisions exist; simply that they are hard to find.