Docsity

Blockchain: hash functions, Appunti di Informatica

Toggle sidebar
bg1
CLASS 05
Different applications of hash functions:
Comparing data (without looking at the content): fast and independent on the type of data
and its size, because hash functions are collision resistant.
Detecting changes in data in a certain point of time.
Referring to data in a change-sensitive way: hash references à combining the hash value
itself associated with stored data with information about where that data is located.
Storing data in a change-sensitive way: 2 patterns to store data: chain, tree;
Hash pointer: a pointer to where some information is stored together with a
cryptographic hash of the information, it gives you a way to verify that the information
hasn’t changed.
Chain pattern: each block tells us the where the value of the previous block was.
Markle Tree pattern: it allows to group distinct pieces of data available at the same
time and make them accessible via a single hash value.
Causing time-consuming computations: to allow computers to challenge other computers
with games (hash puzzles, where the only way is by brute computational power).
Authorizing transactions with digital signature: how does it work?
Importance of ordering: one main problem with blockchain is that the order of blocks
doesn’t always reflect the one of transactions.
The history of transactions is really the core of the blockchain. Why? Because history is the
way we reconstruct the state of the ownership. à We need a system to validate transactions:
Formal correctness: the description of a transaction contains all the required data,
and those data are correctly formatted;
Semantic correctness: meaning of a transaction and its scope (no double-spending);
Authorization: to prove that the owner of the account agrees with the transfer.
Double-spending problem: 3 concepts:
A problem of copying digital goods (violates the core principle of money);
A problem that can occur in distributed P2P systems (transferring/distributing
information to all the nodes requires time à not all nodes may know the latest state
of the system);
A threat that violates the integrity in purely distributed P2P systems (maintain data
consistency, which is an aspect of integrity).

Anteprima parziale del testo

Scarica Blockchain: hash functions e più Appunti in PDF di Informatica solo su Docsity!

CLASS 05

Different applications of hash functions: Comparing data (without looking at the content): fast and independent on the type of data and its size, because hash functions are collision resistant. Detecting changes in data in a certain point of time. Referring to data in a change-sensitive way: hash references à combining the hash value itself associated with stored data with information about where that data is located. Storing data in a change-sensitive way: 2 patterns to store data: chain, tree; Hash pointer: a pointer to where some information is stored together with a cryptographic hash of the information, it gives you a way to verify that the information hasn’t changed. Chain pattern: each block tells us the where the value of the previous block was. Markle Tree pattern: it allows to group distinct pieces of data available at the same time and make them accessible via a single hash value. Causing time-consuming computations: to allow computers to challenge other computers with games (hash puzzles, where the only way is by brute computational power). Authorizing transactions with digital signature: how does it work? Importance of ordering: one main problem with blockchain is that the order of blocks doesn’t always reflect the one of transactions. The history of transactions is really the core of the blockchain. Why? Because history is the way we reconstruct the state of the ownership. à We need a system to validate transactions: Formal correctness: the description of a transaction contains all the required data, and those data are correctly formatted; Semantic correctness: meaning of a transaction and its scope (no double-spending); Authorization: to prove that the owner of the account agrees with the transfer. Double-spending problem: 3 concepts: A problem of copying digital goods (violates the core principle of money); A problem that can occur in distributed P2P systems (transferring/distributing information to all the nodes requires time à not all nodes may know the latest state of the system); A threat that violates the integrity in purely distributed P2P systems (maintain data consistency, which is an aspect of integrity).