Skip to content

Commit

Permalink
Remove registeredTermCodecs and move comments to tables.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Jul 14, 2024
1 parent e432b1a commit 0936b21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 65 deletions.
65 changes: 0 additions & 65 deletions lib/codecs/registeredTermCodecs.js

This file was deleted.

13 changes: 13 additions & 0 deletions lib/tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ export const KEYWORDS_TABLE = new Map([
['@vocab', 52]
]);

/**
* These are from the legacy registry.
*
* @see https://digitalbazaar.github.io/cbor-ld-spec/#term-codec-registry
*/
export const STRING_TABLE = new Map([
// 0x00 - 0x0F: reserved
['https://www.w3.org/ns/activitystreams', 16],
['https://www.w3.org/2018/credentials/v1', 17],
['https://www.w3.org/ns/did/v1', 18],
Expand All @@ -54,10 +60,17 @@ export const STRING_TABLE = new Map([
['https://w3id.org/dcc/v1', 31],
['https://w3id.org/vc/status-list/v1', 32],
['https://www.w3.org/ns/credentials/v2', 33],
// 0x22 - 0x2F (34-47): available
['https://w3id.org/security/data-integrity/v1', 48],
['https://w3id.org/security/multikey/v1', 49],
// 0x32 (50): reserved (in legacy spec)
// FIXME: Unclear on how to handle the openbadges URLs and versioning.
// This value was never in the spec, but was added here, and potentially
// elsewhere.
['https://purl.imsglobal.org/spec/ob/v3p0/context.json', 50],
['https://w3id.org/security/data-integrity/v2', 51]
// 0x34 - 0x36 (52-54): reserved; removed experimental cryptosuite
// registrations
]);

export const URL_SCHEME_TABLE = new Map([
Expand Down

0 comments on commit 0936b21

Please sign in to comment.