Hashes
Until now, we have explored the concepts that make up a transaction and how you can send transactions yourself. One of these concepts is that transactions are signed. When a transaction is signed, it generates a hash or digital signature that is based on the content of the transaction. The hash verifies that the data sent in a transaction is not compromised or has not changed during its travel.
A hash is calculated by executing a hash function, which is called hashing. Before I go into the detail of the hash functions that are used within different blockchains, I'm first going to take you through the concept of such functions. A hash function takes any input data, and produces an output, which, based on the algorithm used, has a different ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access