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

Encoding for JWT during import #778

Open
albertolerda opened this issue Dec 7, 2023 · 1 comment
Open

Encoding for JWT during import #778

albertolerda opened this issue Dec 7, 2023 · 1 comment

Comments

@albertolerda
Copy link
Member

Currently, a JWT is represented as a dictionary

{
    header: { ... },
    payload: { ... },
    signature:  ... 
}

To sign a JSON we have to encode it, which is generally not deterministic (for an import from the outside).
Inside zencode it is fine keeping it as a dictionary (because the encoding is deterministic), the problem is with the sd jwt.

From the outside, the user can decide whether to use sd jwt (which is encoded) or signed selective disclosure

For the inside the jwt is an or, either the previous or

{
    header: "base64",
    payload: "base64,
    signature: ...
}
@jaromil
Copy link
Member

jaromil commented Dec 7, 2023

Point of intervention:

image

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

2 participants