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

Canonicalization of valid-ish tokens #100

Open
jsantell opened this issue May 25, 2023 · 0 comments
Open

Canonicalization of valid-ish tokens #100

jsantell opened this issue May 25, 2023 · 0 comments

Comments

@jsantell
Copy link
Contributor

jsantell commented May 25, 2023

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.
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

No branches or pull requests

1 participant