What is a hash function? What are the characteristics of a good hash function? Where do hash functions appear and why do I hear about them all the time?
If you want to understand the fundamental tool of crypto, this guide is for you!
(2/7) The purpose of a hash function is to transform any amount of data into a compact, uniform value. The input can be of arbitrary length but the output is always the same length.
The length is decided by the hash function; it can be as small or large as desired.
(3/7) Hash functions have many different uses, but all uses rely on the same fundamental properties:
- quick and efficient to compute
- outputs should be randomly distributed between all possible outputs
- difficult (if not impossible) to reverse engineer an input from an output
(4/7) If your hashing function has an output with 3 characters and you feed it 1MM pieces of data, much of it will result in the same output.
However, if the output is long enough, a good hash function will have no collisions (two inputs resulting in the same output).
(5/7) With a strong hashing function, we have the ability to take any data and compress it into a verifiable signature.
If the data is public, then anyone can recreate the signature and verify that the data matches its label.
(6/7) If the data is private, it can form the basis of identity.
Any private information fed into a (good) hash function will instantly become lost but form the basis of a unique, un-replicable signature.
(7/7) From here, we can go further: signatures created by two private identities can create a 3rd shared secret - the basis of encryption.
Encryption, cryptography, cryptocurrency When it comes down to it... hash functions are the foundation of crypto!
Sent $ETH? LP'ed into an AMM? Deployed a new contract? Everything you do on the World Computer leaves an on-chain record. Ever wonder what's inside your transactions?
A field-by-field guide to the atomic unit of Ethereum computing
(2/18) @ethereum is the World Computer: a globally shared utility that exists between a network of 1000s of computers
Users interact with Ethereum through a wallet (like @MetaMask), which creates and sends txns to the network. Once accepted, the txns are written into a block.
(3/18) Perquisite - hashing, (applying a hash function)
Hash function: a piece of code used to transform any amount of data into a compact, uniform value. The input can be of arbitrary length but the output is always the same length.
(3/13) A Merkle Tree uses hashing to build a data structure that allows for quick, efficient, verifiable proof that a transaction was included in a much larger data set.
Also called a hash tree, they are named after Ralph Merkle (who proposed them in 1987).
(2/12) @ethereum is the World Computer, an internet-native public utility with built-in property rights.
Any developer can deploy (nearly) anything on-chain. Arbitrary applications are very difficult to integrate, and so the community has developed a set of token standards.
From 1492 to 2022, the context, technology and vision of the World Computer. The complete, top-to-bottom case for $ETH.
An (unprecedented) mega-thread.
(2/21) @ethereum is... complicated. This guide (attempts to) build the macro case for Ethereum by combining layers of topic-specific Twitter threads, allowing each concept to be further explored.
(3/21) ~500k years ago a few apes climbed down out of the trees and humanity was born. This made many people very angry and has been widely regarded as a bad move.
Nevertheless, from that day forward humans got to work.
How mass communication technology changes people, how people change society, and how these transitions happen throughout history.
The world is changing right now, anon. Do you understand what's happening?
(2/20) In 1994, Jim Clark and @pmarca founded Mosaic Communications and released Netscape, introducing the general public to the internet.
By now, in 2022, the internet has touched every aspect of human life. In less than 30 years global society has completely changed.
(3/20) Many of the consequences are obvious (you're reading this on Twitter right now) while other more subtle (the fact that Facebook posts can reshape families).
Living in the present, it's near impossible to understand how the holistic consequences.
How did the printing press change Medieval European society? How did one unknown professor use it to become the most famous man in Europe? What horrors did it unleash?
What does it imply for the world's next mass comms platform?
(2/14) Before 1440, mass communication did not exist. Few people could read or write, and while written works did exist, the process and materials were outrageously expensive.
The most effective way to spread a message was to spread it yourself. Or maybe rely on a few apostles.
(3/14) In (approx) 1440, German Johannes Gutenberg created a machine that drastically reduced the cost of printing books and other documents.
Those of us in 2022 know that this invention would go on to shape the world, up until and including today.