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

Extract a value instead of validating it #4

Open
olehmisar opened this issue Dec 10, 2024 · 0 comments
Open

Extract a value instead of validating it #4

olehmisar opened this issue Dec 10, 2024 · 0 comments

Comments

@olehmisar
Copy link

I need to calculate hash(jwt.sub, jwt.aud, salt). This requires me to extract data from jwt payload.

let sub = jwt.get_string("sub");
let aud = jwt.get_string("aud");

zkLogin implementation here:
https://github.com/olehmisar/zklogin/blob/88774f9d636abf691a193ad087f666503f46d79c/packages/contracts/noir/jwt/src/lib.nr#L44-L51

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