Skip to content

Commit 22b8274

Browse files
committed
added images from multiformats pres
1 parent 38d6f61 commit 22b8274

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,37 @@ They disagree. :(
112112
Warning: **obviously multihash values bias the first two bytes**. Do not expect them to be uniformly distributed. The entropy size is `len(multihash) - 2`. Skip the first two bytes when using them with bloom filters, etc. Why not _ap_pend instead of _pre_pend? Because when reading a stream of hashes, you can know the length of the whole value, and allocate the right amount of memory, skip it, or discard it.
113113

114114
License: MIT
115+
116+
## Visual Examples
117+
118+
These are visual aids that help tell the story of why Multihash matters.
119+
120+
![](https://github.com/multiformats/multiformats/tree/eb22cd807db692877a9094b5bfb4d2997fd0278a/img/multihash.001.jpg)
121+
122+
#### Consider these 4 different hashes of same input
123+
124+
![](https://github.com/multiformats/multiformats/tree/eb22cd807db692877a9094b5bfb4d2997fd0278a/img/multihash.002.jpg)
125+
126+
#### Same length: 256 bits
127+
128+
![](https://github.com/multiformats/multiformats/tree/eb22cd807db692877a9094b5bfb4d2997fd0278a/img/multihash.003.jpg)
129+
130+
#### Different hash functions
131+
132+
![](https://github.com/multiformats/multiformats/tree/eb22cd807db692877a9094b5bfb4d2997fd0278a/img/multihash.004.jpg)
133+
134+
#### Idea: self-describe the values to distinguish
135+
136+
![](https://github.com/multiformats/multiformats/tree/eb22cd807db692877a9094b5bfb4d2997fd0278a/img/multihash.005.jpg)
137+
138+
#### Multihash: fn code + length prefix
139+
140+
![](https://github.com/multiformats/multiformats/tree/eb22cd807db692877a9094b5bfb4d2997fd0278a/img/multihash.006.jpg)
141+
142+
#### Multihash: a pretty good multiformat
143+
144+
![](https://github.com/multiformats/multiformats/tree/eb22cd807db692877a9094b5bfb4d2997fd0278a/img/multihash.007.jpg)
145+
146+
#### Multihash: has a bunch of implementations already
147+
148+
![](https://github.com/multiformats/multiformats/tree/eb22cd807db692877a9094b5bfb4d2997fd0278a/img/multihash.008.jpg)

0 commit comments

Comments
 (0)