json,cbor: switch to "ipld" tag (#244)

This change moves us toward the "ipld" tag meaning something like
"can logically be used as a codec code in a CID";
with the recognition that this is a bit squishy and there is some amount
of gentle abuse around the edges of CIDs which we willingly turn a blind eye to.

Ref: https://github.com/multiformats/multicodec/issues/242
Ref: https://github.com/ipfs/go-ipfs/issues/8471
This commit is contained in:
Rod Vagg 2021-11-23 10:03:19 +11:00 committed by GitHub
parent b9018562a7
commit 3726760983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ dns4, multiaddr, 0x36, permanent,
dns6, multiaddr, 0x37, permanent,
dnsaddr, multiaddr, 0x38, permanent,
protobuf, serialization, 0x50, draft, Protocol Buffers
cbor, serialization, 0x51, permanent, CBOR
cbor, ipld, 0x51, permanent, CBOR
raw, ipld, 0x55, permanent, raw binary
dbl-sha2-256, multihash, 0x56, draft,
rlp, serialization, 0x60, draft, recursive length prefix
@ -122,7 +122,7 @@ wss, multiaddr, 0x01de, permanent,
p2p-websocket-star, multiaddr, 0x01df, permanent,
http, multiaddr, 0x01e0, draft,
swhid-1-snp, ipld, 0x01f0, draft, SoftWare Heritage persistent IDentifier version 1 snapshot
json, serialization, 0x0200, permanent, JSON (UTF-8-encoded)
json, ipld, 0x0200, permanent, JSON (UTF-8-encoded)
messagepack, serialization, 0x0201, draft, MessagePack
libp2p-peer-record, libp2p, 0x0301, permanent, libp2p peer record type
libp2p-relay-rsvp, libp2p, 0x0302, permanent, libp2p relay reservation voucher

1 name tag code status description
35 dns6 multiaddr 0x37 permanent
36 dnsaddr multiaddr 0x38 permanent
37 protobuf serialization 0x50 draft Protocol Buffers
38 cbor serialization ipld 0x51 permanent CBOR
39 raw ipld 0x55 permanent raw binary
40 dbl-sha2-256 multihash 0x56 draft
41 rlp serialization 0x60 draft recursive length prefix
122 p2p-websocket-star multiaddr 0x01df permanent
123 http multiaddr 0x01e0 draft
124 swhid-1-snp ipld 0x01f0 draft SoftWare Heritage persistent IDentifier version 1 snapshot
125 json serialization ipld 0x0200 permanent JSON (UTF-8-encoded)
126 messagepack serialization 0x0201 draft MessagePack
127 libp2p-peer-record libp2p 0x0301 permanent libp2p peer record type
128 libp2p-relay-rsvp libp2p 0x0302 permanent libp2p relay reservation voucher