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

add a note about prf sorting #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add a note about prf sorting #2

wants to merge 1 commit into from

Conversation

Gozala
Copy link

@Gozala Gozala commented Nov 29, 2022

Signed-off-by: Irakli Gozalishvili [email protected]

Signed-off-by: Irakli Gozalishvili <[email protected]>
3. [`dag-json`](https://ipld.io/specs/codecs/dag-json/spec/) encoding MUST be used
4. The resulting JWT MUST be [base64url](https://datatracker.ietf.org/doc/html/rfc4648#section-5) encoded per [RFC 7519]
5. All segments MUST be joined with `.`s, per [RFC 7519](https://www.rfc-editor.org/rfc/rfc7519)
3. Elements in `prf`s field MUST be sorted alphabetically.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want them alphabetically, or numerically on the underlying bits?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this will be represented as a string, so UTF8 sorting makes sense 👍

@expede
Copy link
Member

expede commented Aug 14, 2023

Thanks @Gozala — all good to merge :)

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.

2 participants