Skip to content

Commit 39712a2

Browse files
committed
update table
1 parent 9ae2670 commit 39712a2

File tree

2 files changed

+48
-56
lines changed

2 files changed

+48
-56
lines changed

README.md

Lines changed: 48 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -98,29 +98,53 @@ These path names happen to be resolvable -- not just in a "multicodec muxer(e.g
9898

9999
## Multicodec table
100100

101-
| prefix | codec | desc | type | [packed encoding](https://github.com/multiformats/multicodec/blob/master/multicodec-packed.md)|
102-
|----------------|-------|--------------|--------|---------------------------------------|
103-
|0x052f62696e2f | /bin/ | raw binary | binary | 0x00 |
104-
|0x042f62322f | /b2/ | ascii base2 | binary | |
105-
|0x052f6231362f | /b16/ | ascii base16 | hex | |
106-
|0x052f6233322f | /b32/ | ascii base32 | | |
107-
|0x052f6235382f | /b58/ | ascii base58 | | |
108-
|0x052f6236342f | /b64/ | ascii base64 | | |
109-
|0x062f6a736f6e2f |/json/ | |json | |
110-
|0x062f63626f722f |/cbor/ | |json | |
111-
|0x062f62736f6e2f |/bson/ | |json | |
112-
|0x072f626a736f6e2f|/bjson/| |json | |
113-
|0x082f75626a736f6e2f| /ubjson/| |json | |
114-
|0x182f6d756c7469636f6465632f | /multicodec/ | | multiformat | 0x40 |
115-
|0x162f6d756c7469686173682f | /multihash/ | | multiformat | 0x41 |
116-
|0x162f6d756c7469616464722f | /multiaddr/ | | multiformat | 0x42 |
117-
|0x0a2f70726f746f6275662f |/protobuf/ | Protocol Buffers |protobuf| |
118-
|0x072f6361706e702f | /capnp/ | Cap-n-Proto |protobuf| |
119-
|0x092f666c61746275662f |/flatbuf/ | FlatBuffers |protobuf| |
120-
|0x052f7461722f |/tar/ | | archive | |
121-
|0x052f7a69702f |/zip/ | | archive | |
122-
|0x052f706e672f | /png/ | | archive | |
123-
|0x052f726c702f | /rlp/ | recursive length prefix | ethereum | 0x60 |
101+
| prefix | codec | description | [packed](https://github.com/multiformats/multicodec/blob/master/multicodec-packed.md)|
102+
|-------------------------------|---------------|-------------------------|-----------|
103+
| **Miscelaneous** |
104+
| 0x052f62696e2f | /bin/ | raw binary | 0x00 |
105+
| **Bases encodings** |
106+
| 0x042f62322f | /b2/ | ascii base2 | |
107+
| 0x052f6231362f | /b16/ | ascii base16 | |
108+
| 0x052f6233322f | /b32/ | ascii base32 | |
109+
| 0x052f6235382f | /b58/ | ascii base58 | |
110+
| 0x052f6236342f | /b64/ | ascii base64 | |
111+
| **Serialization formats** |
112+
| 0x062f6a736f6e2f | /json/ | | |
113+
| 0x062f63626f722f | /cbor/ | | |
114+
| 0x062f62736f6e2f | /bson/ | | |
115+
| 0x072f626a736f6e2f | /bjson/ | | |
116+
| 0x082f75626a736f6e2f | /ubjson/ | | |
117+
| 0x0a2f70726f746f6275662f | /protobuf/ | Protocol Buffers | |
118+
| 0x072f6361706e702f | /capnp/ | Cap-n-Proto | |
119+
| 0x092f666c61746275662f | /flatbuf/ | FlatBuffers | |
120+
| 0x052f726c702f | /rlp/ | recursive length prefix | 0x60 |
121+
| **Multiformats** |
122+
| 0x182f6d756c7469636f6465632f | /multicodec/ | | 0x40 |
123+
| 0x162f6d756c7469686173682f | /multihash/ | | 0x41 |
124+
| 0x162f6d756c7469616464722f | /multiaddr/ | | 0x42 |
125+
| **Multihashes** |
126+
| | | | |
127+
| **Multiaddrs** |
128+
| | | | |
129+
| **Archiving formats** |
130+
| 0x052f7461722f | /tar/ | | |
131+
| 0x052f7a69702f | /zip/ | | |
132+
| **Image formats** |
133+
| 0x052f706e672f | /png/ | | |
134+
| | /jpg/ | | |
135+
| **Video formats** |
136+
| | /mp4/ | | |
137+
| | /mkv/ | | |
138+
| **Blockchain formats** |
139+
| n/a | n/a | n/a | n/a |
140+
| **VCS formats** |
141+
| n/a | n/a | n/a | n/a |
142+
| **IPLD formats** |
143+
| | /dag-pb/ | MerkleDAG protobuf | |
144+
| | /dag-cbor/ | MerkleDAG cbor | |
145+
| | /eth-rlp/ | Ethereum Block RLP | |
146+
147+
124148

125149
## Implementations
126150

@@ -134,7 +158,6 @@ These path names happen to be resolvable -- not just in a "multicodec muxer(e.g
134158
- [js-multistream](https://github.com/multiformats/js-multistream) - Implements multistream, which uses multicodec for stream negotiation
135159
- [clj-multicodec](https://github.com/greglook/clj-multicodec)
136160

137-
138161
## FAQ
139162

140163
> **Q. Why?**
@@ -172,3 +195,4 @@ Check out our [contributing document](https://github.com/multiformats/multiforma
172195
## License
173196

174197
[MIT](LICENSE)
198+

multicodec-packed.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -50,38 +50,6 @@ It is worth noting that multicodec-packed works very well in conjunction with [m
5050

5151
Multicodec-packed uses "protocol tables" to agree upon the mapping from one multicodec-packed code (a single varint). These tables map an `<mcp-code>` to a full [multicodec protocol path](./README.md#the-protocol-path). These tables can be application specific, though -- like [with](https://github.com/multiformats/multihash) [other](https://github.com/multiformats/multibase) [multiformats](https://github.com/multiformats/multiaddr) -- we will keep a globally agreed upon table with common protocols and formats.
5252

53-
### Standard mcp protocol table
54-
55-
This is the standard multicodec-packed protocol table.
56-
57-
**WARNING: WIP. this table is not ready for wide use.**
58-
59-
TODO:
60-
- [ ] See if IANA has a ready-made table for us to use here. Even just a listing of the most popular formats would be good enough.
61-
62-
```sh
63-
code codec
64-
65-
# Miscellaneous
66-
0x00 raw binary data
67-
68-
# Multiformats
69-
0x40 multicodec
70-
0x41 multihash
71-
0x42 multiaddr
72-
73-
# Serialization formats (cbor, ion, protobuf, etc)
74-
0x50 protobuf
75-
0x51 cbor
76-
0x60 rlp
77-
78-
# VCS'es formats (git, hg, SVN, etc)
79-
# TODO
80-
81-
# Blockchain block types (bitcoin, ethereum, stellar, etc)
82-
# TODO
83-
```
84-
8553
## Implementations
8654

8755
- [go](https://github.com/multiformats/go-multicodec-packed/)

0 commit comments

Comments
 (0)