Skip to content

Commit

Permalink
Add renaming sorts of SoftWare Heritage persistent IDentifiers
Browse files Browse the repository at this point in the history
See
https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html
for the technical details of that spec.

These remaining four sorts of objects coincide with `git-raw`, which is
already in this table. However, adding them here is not redundant,
because the deserialization direction. While a git-raw CID may legally
point to any sort of git object, the relevant SWHIDs specify in the
identifier what sort of git object is expected, and if it points to a
different type of valid git object, deserialization fails. That means
there is no way to losslessly convert a git-coinciding SWHID into a
git-raw CID.
  • Loading branch information
Ericson2314 committed Feb 16, 2021
1 parent eb2b501 commit f340c34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ wss, multiaddr, 0x01de,
p2p-websocket-star, multiaddr, 0x01df,
http, multiaddr, 0x01e0,
swhid-1-snp, ipld, 0x01f0, SoftWare Heritage persistent IDentifier version 1 snapshot
swhid-1-rel, ipld, 0x01f1, SoftWare Heritage persistent IDentifier version 1 release
swhid-1-rev, ipld, 0x01f2, SoftWare Heritage persistent IDentifier version 1 revision
swhid-1-dir, ipld, 0x01f3, SoftWare Heritage persistent IDentifier version 1 directory
swhid-1-cnt, ipld, 0x01f4, SoftWare Heritage persistent IDentifier version 1 content
json, serialization, 0x0200, JSON (UTF-8-encoded)
messagepack, serialization, 0x0201, MessagePack
libp2p-peer-record, libp2p, 0x0301, libp2p peer record type
Expand Down

0 comments on commit f340c34

Please sign in to comment.