Skip to content

Canonicalization of valid-ish tokens  #100

@jsantell

Description

@jsantell

There are/can be scenarios where there are UCAN tokens that are almost valid (validish), and can be reasonably interpreted as such. Canonicalization of these tokens (x = serialize(deserialize(x))) is at odds with encoding valid tokens and being lenient in what we parse.

Examples of validish tokens:

Some options forward:

  1. Strictly reject validish tokens.
  2. Allow validish tokens. Retain canonicalization and encode validish tokens.
  3. Allow validish tokens. Encode as valid tokens, break canonicalization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions