Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new CBOR tags, restructure registry system. #87

Merged
merged 120 commits into from
Jul 14, 2024
Merged

Conversation

wes-smith
Copy link
Contributor

  • Restructure term registry system to be more general with four tables which
    can all be passed by the user during encoding and decoding:
    • keywordsTable: for JSON-LD keywords (e.g. '@context', '@type')
    • stringTable: for JSON-LD string values. This subsumes 'appContextMap',
      as context strings can be included here, but includes arbitrary string
      values as well.
    • urlSchemeTable: for URL schemes (i.e. 'http://')
    • typedLiteralTable: for values associated with JSON-LD types. This
      subsumes type-specific codecs like the cryptosuite codec.
  • Restructure CBOR-LD tag system to use a range of tags where
    the tag value informs what values for the tables above should be used
    via a registry. Legacy tags (0x0501) are still supported, and new tags are
    in the range 0x0600-0x06FF. In addition, the tag value is part of a varint
    that begins the CBORLD paylaod if necessary that allows for more registry
    entries than the number of tags in that range.

wes-smith added 30 commits July 11, 2024 15:51
@dlongley dlongley self-requested a review July 14, 2024 23:44
@dlongley dlongley merged commit 86fee58 into main Jul 14, 2024
5 checks passed
@dlongley dlongley deleted the use-cbor-tags-backup branch July 14, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants