Merge branch 'master' into feat/update-why-2

This commit is contained in:
Lars Gierth 2017-01-02 22:48:44 +01:00 committed by GitHub
commit 5f1f94f6fd
2 changed files with 123 additions and 18 deletions

View File

@ -1,10 +1,11 @@
# multicodec
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/project-multiformats-blue.svg?style=flat-square)](http://github.com/multiformats/multiformats)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![](https://img.shields.io/badge/project-multiformats-blue.svg?style=flat-square)](https://github.com/multiformats/multiformats)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs)
[![](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
> compact self-describing codecs. Save space by using predefined multicodec tables.
> Compact self-describing codecs. Save space by using predefined multicodec tables.
## Table of Contents
@ -68,7 +69,7 @@ This ["first come, first assign"](https://github.com/multiformats/multicodec/pul
- [go](https://github.com/multiformats/go-multicodec/)
- [JavaScript](https://github.com/multiformats/js-multicodec)
- [Add yours today!](https://github.com/multiformats/multicodec/edit/master/multicodec.md)
- [Add yours today!](https://github.com/multiformats/multicodec/edit/master/table.csv)
## Multicodec Path, also known as [`multistream`](https://github.com/multiformats/multistream)
@ -108,6 +109,8 @@ Contributions welcome. Please check out [the issues](https://github.com/multifor
Check out our [contributing document](https://github.com/multiformats/multiformats/blob/master/contributing.md) for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
## License
[MIT](LICENSE)
This repository is only for documents. All of these are licensed under the [CC-BY-SA 3.0](https://ipfs.io/ipfs/QmVreNvKsQmQZ83T86cWSjPu2vR3yZHGPm5jnxFuunEB9u) license © 2016 Protocol Labs Inc. Any code is under a [MIT](LICENSE) © 2016 Protocol Labs Inc.

128
table.csv
View File

@ -48,9 +48,102 @@ keccak-384, , 0x1C
keccak-512, , 0x1D
murmur3, , 0x22
,, Note: keccak has variable output length. The number specifies the core length
blake2b, , 0x40
blake2s, , 0x41
reserved for apps, appl specific range, 0x4000-0x40f0
blake2b-8,Blake2b consists of 64 output lengths that give different hashes,0xb201
blake2b-16,,0xb202
blake2b-24,,0xb203
blake2b-32,,0xb204
blake2b-40,,0xb205
blake2b-48,,0xb206
blake2b-56,,0xb207
blake2b-64,,0xb208
blake2b-72,,0xb209
blake2b-80,,0xb20a
blake2b-88,,0xb20b
blake2b-96,,0xb20c
blake2b-104,,0xb20d
blake2b-112,,0xb20e
blake2b-120,,0xb20f
blake2b-128,,0xb210
blake2b-136,,0xb211
blake2b-144,,0xb212
blake2b-152,,0xb213
blake2b-160,,0xb214
blake2b-168,,0xb215
blake2b-176,,0xb216
blake2b-184,,0xb217
blake2b-192,,0xb218
blake2b-200,,0xb219
blake2b-208,,0xb21a
blake2b-216,,0xb21b
blake2b-224,,0xb21c
blake2b-232,,0xb21d
blake2b-240,,0xb21e
blake2b-248,,0xb21f
blake2b-256,,0xb220
blake2b-264,,0xb221
blake2b-272,,0xb222
blake2b-280,,0xb223
blake2b-288,,0xb224
blake2b-296,,0xb225
blake2b-304,,0xb226
blake2b-312,,0xb227
blake2b-320,,0xb228
blake2b-328,,0xb229
blake2b-336,,0xb22a
blake2b-344,,0xb22b
blake2b-352,,0xb22c
blake2b-360,,0xb22d
blake2b-368,,0xb22e
blake2b-376,,0xb22f
blake2b-384,,0xb230
blake2b-392,,0xb231
blake2b-400,,0xb232
blake2b-408,,0xb233
blake2b-416,,0xb234
blake2b-424,,0xb235
blake2b-432,,0xb236
blake2b-440,,0xb237
blake2b-448,,0xb238
blake2b-456,,0xb239
blake2b-464,,0xb23a
blake2b-472,,0xb23b
blake2b-480,,0xb23c
blake2b-488,,0xb23d
blake2b-496,,0xb23e
blake2b-504,,0xb23f
blake2b-512,,0xb240
blake2s-8,Blake2s consists of 32 output lengths that give different hashes,0xb241
blake2s-16,,0xb242
blake2s-24,,0xb243
blake2s-32,,0xb244
blake2s-40,,0xb245
blake2s-48,,0xb246
blake2s-56,,0xb247
blake2s-64,,0xb248
blake2s-72,,0xb249
blake2s-80,,0xb24a
blake2s-88,,0xb24b
blake2s-96,,0xb24c
blake2s-104,,0xb24d
blake2s-112,,0xb24e
blake2s-120,,0xb24f
blake2s-128,,0xb250
blake2s-136,,0xb251
blake2s-144,,0xb252
blake2s-152,,0xb253
blake2s-160,,0xb254
blake2s-168,,0xb255
blake2s-176,,0xb256
blake2s-184,,0xb257
blake2s-192,,0xb258
blake2s-200,,0xb259
blake2s-208,,0xb25a
blake2s-216,,0xb25b
blake2s-224,,0xb25c
blake2s-232,,0xb25d
blake2s-240,,0xb25e
blake2s-248,,0xb25f
blake2s-256,,0xb260
multiaddrs,,
ip4, , 0x04
@ -80,13 +173,22 @@ mp4, , 0x
mkv, , 0x
IPLD formats,,
dag-pb, MerkleDAG protobuf, 0x70
dag-cbor, MerkleDAG cbor, 0x71
eth-block, Ethereum Block (RLP), 0x90
eth-tx, Ethereum Tx (RLP), 0x91
bitcoin-block, Bitcoin Block, 0xb0
bitcoin-tx, Bitcoin Tx, 0xb1
zcash-block, Zcash Block, 0xc0
zcash-tx, Zcash Tx, 0xc1
stellar-block, Stellar Block, 0xd0
stellar-tx, Stellar Tx, 0xd1
dag-pb, MerkleDAG protobuf, 0x70
dag-cbor, MerkleDAG cbor, 0x71
eth-block, Ethereum Block (RLP), 0x90
eth-block-list, Ethereum Block List (RLP), 0x91
eth-tx-trie, Ethereum Transaction Trie (Eth-Trie), 0x92
eth-tx, Ethereum Transaction (RLP), 0x93
eth-tx-receipt-trie, Ethereum Transaction Receipt Trie (Eth-Trie), 0x94
eth-tx-receipt, Ethereum Transaction Receipt (RLP), 0x95
eth-state-trie, Ethereum State Trie (Eth-Secure-Trie), 0x96
eth-account-snapshot, Ethereum Account Snapshot (RLP), 0x97
eth-storage-trie, Ethereum Contract Storage Trie (Eth-Secure-Trie), 0x98
bitcoin-block, Bitcoin Block, 0xb0
bitcoin-tx, Bitcoin Tx, 0xb1
zcash-block, Zcash Block, 0xc0
zcash-tx, Zcash Tx, 0xc1
stellar-block, Stellar Block, 0xd0
stellar-tx, Stellar Tx, 0xd1

1 codec description code
48 reserved for apps blake2b-24 appl specific range 0x4000-0x40f0 0xb203
49 multiaddrs blake2b-32 0xb204
50 ip4 blake2b-40 0x04 0xb205
51 ip6 blake2b-48 0x29 0xb206
52 tcp blake2b-56 0x06 0xb207
53 udp blake2b-64 0x0111 0xb208
54 blake2b-72 0xb209
55 blake2b-80 0xb20a
56 blake2b-88 0xb20b
57 blake2b-96 0xb20c
58 blake2b-104 0xb20d
59 blake2b-112 0xb20e
60 blake2b-120 0xb20f
61 blake2b-128 0xb210
62 blake2b-136 0xb211
63 blake2b-144 0xb212
64 blake2b-152 0xb213
65 blake2b-160 0xb214
66 blake2b-168 0xb215
67 blake2b-176 0xb216
68 blake2b-184 0xb217
69 blake2b-192 0xb218
70 blake2b-200 0xb219
71 blake2b-208 0xb21a
72 blake2b-216 0xb21b
73 blake2b-224 0xb21c
74 blake2b-232 0xb21d
75 blake2b-240 0xb21e
76 blake2b-248 0xb21f
77 blake2b-256 0xb220
78 blake2b-264 0xb221
79 blake2b-272 0xb222
80 blake2b-280 0xb223
81 blake2b-288 0xb224
82 blake2b-296 0xb225
83 blake2b-304 0xb226
84 blake2b-312 0xb227
85 blake2b-320 0xb228
86 blake2b-328 0xb229
87 blake2b-336 0xb22a
88 blake2b-344 0xb22b
89 blake2b-352 0xb22c
90 blake2b-360 0xb22d
91 blake2b-368 0xb22e
92 blake2b-376 0xb22f
93 blake2b-384 0xb230
94 blake2b-392 0xb231
95 blake2b-400 0xb232
96 blake2b-408 0xb233
97 blake2b-416 0xb234
98 blake2b-424 0xb235
99 blake2b-432 0xb236
100 blake2b-440 0xb237
101 blake2b-448 0xb238
102 blake2b-456 0xb239
103 blake2b-464 0xb23a
104 blake2b-472 0xb23b
105 blake2b-480 0xb23c
106 blake2b-488 0xb23d
107 blake2b-496 0xb23e
108 blake2b-504 0xb23f
109 blake2b-512 0xb240
110 blake2s-8 Blake2s consists of 32 output lengths that give different hashes 0xb241
111 blake2s-16 0xb242
112 blake2s-24 0xb243
113 blake2s-32 0xb244
114 blake2s-40 0xb245
115 blake2s-48 0xb246
116 blake2s-56 0xb247
117 blake2s-64 0xb248
118 blake2s-72 0xb249
119 blake2s-80 0xb24a
120 blake2s-88 0xb24b
121 blake2s-96 0xb24c
122 blake2s-104 0xb24d
123 blake2s-112 0xb24e
124 blake2s-120 0xb24f
125 blake2s-128 0xb250
126 blake2s-136 0xb251
127 blake2s-144 0xb252
128 blake2s-152 0xb253
129 blake2s-160 0xb254
130 blake2s-168 0xb255
131 blake2s-176 0xb256
132 blake2s-184 0xb257
133 blake2s-192 0xb258
134 blake2s-200 0xb259
135 blake2s-208 0xb25a
136 blake2s-216 0xb25b
137 blake2s-224 0xb25c
138 blake2s-232 0xb25d
139 blake2s-240 0xb25e
140 blake2s-248 0xb25f
141 blake2s-256 0xb260
142 multiaddrs
143 ip4 0x04
144 ip6 0x29
145 tcp 0x06
146 udp 0x0111
147 dccp 0x21
148 sctp 0x84
149 udt 0x012D
173 zcash-tx eth-tx-receipt Zcash Tx Ethereum Transaction Receipt (RLP) 0xc1 0x95
174 stellar-block eth-state-trie Stellar Block Ethereum State Trie (Eth-Secure-Trie) 0xd0 0x96
175 stellar-tx eth-account-snapshot Stellar Tx Ethereum Account Snapshot (RLP) 0xd1 0x97
176 eth-storage-trie Ethereum Contract Storage Trie (Eth-Secure-Trie) 0x98
177 bitcoin-block Bitcoin Block 0xb0
178 bitcoin-tx Bitcoin Tx 0xb1
179 zcash-block Zcash Block 0xc0
180 zcash-tx Zcash Tx 0xc1
181 stellar-block Stellar Block 0xd0
182 stellar-tx Stellar Tx 0xd1
183
184
185
186
187
188
189
190
191
192
193
194