Skip to content

Commit

Permalink
Add SoftWare Heritage persistent IDentifier snapshots
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.

Software Heritage has done a superb job promoting content addressing in
general, and their identifier scheme (SWHIDs, for short) in particular.
By supporting them in CIDs / IPLD, I hope the IPFS ecosystem can align
itself with that effort.

Per the linked documentation, SWHIDs have their own nested grammar and
versioning scheme. I begun by taking the version 1 core identifier
grammar, unrolled it, and replaced `:` with `-` per the guidelines on
separators, with the result being these 5 rows.

There is overlap between the remaining for and git-raw, so this just
adds SWHID snapshots for now.
  • Loading branch information
Ericson2314 committed Feb 16, 2021
1 parent 909e183 commit eb2b501
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ ws, multiaddr, 0x01dd,
wss, multiaddr, 0x01de,
p2p-websocket-star, multiaddr, 0x01df,
http, multiaddr, 0x01e0,
swhid-1-snp, ipld, 0x01f0, SoftWare Heritage persistent IDentifier version 1 snapshot
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 eb2b501

Please sign in to comment.