From 07775b5cb87ebbea1807cddd463b6a8ec900721e Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 15 Jan 2021 16:08:46 -0500 Subject: [PATCH] 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. --- table.csv | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/table.csv b/table.csv index 6140e93..ff9b5b6 100644 --- a/table.csv +++ b/table.csv @@ -123,6 +123,10 @@ 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 +swhid-1-rel, ipld, 0x01f1, draft, SoftWare Heritage persistent IDentifier version 1 release +swhid-1-rev, ipld, 0x01f2, draft, SoftWare Heritage persistent IDentifier version 1 revision +swhid-1-dir, ipld, 0x01f3, draft, SoftWare Heritage persistent IDentifier version 1 directory +swhid-1-cnt, ipld, 0x01f4, draft, SoftWare Heritage persistent IDentifier version 1 content json, ipld, 0x0200, permanent, JSON (UTF-8-encoded) messagepack, serialization, 0x0201, draft, MessagePack car, serialization, 0x0202, draft, Content Addressable aRchive (CAR)