Skip to content

Commit 28403ce

Browse files
committed
Add renaming sorts of SoftWare Heritage persistent IDentifiers
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.
1 parent 3896ef7 commit 28403ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

table.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ wss, multiaddr, 0x01de, permanent,
116116
p2p-websocket-star, multiaddr, 0x01df, permanent,
117117
http, multiaddr, 0x01e0, draft,
118118
swhid-1-snp, ipld, 0x01f0, draft, SoftWare Heritage persistent IDentifier version 1 snapshot
119+
swhid-1-rel, ipld, 0x01f1, draft, SoftWare Heritage persistent IDentifier version 1 release
120+
swhid-1-rev, ipld, 0x01f2, draft, SoftWare Heritage persistent IDentifier version 1 revision
121+
swhid-1-dir, ipld, 0x01f3, draft, SoftWare Heritage persistent IDentifier version 1 directory
122+
swhid-1-cnt, ipld, 0x01f4, draft, SoftWare Heritage persistent IDentifier version 1 content
119123
json, serialization, 0x0200, permanent, JSON (UTF-8-encoded)
120124
messagepack, serialization, 0x0201, draft, MessagePack
121125
libp2p-peer-record, libp2p, 0x0301, permanent, libp2p peer record type

0 commit comments

Comments
 (0)