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

vct should be considered #42

Open
moratori opened this issue Dec 19, 2024 · 0 comments
Open

vct should be considered #42

moratori opened this issue Dec 19, 2024 · 0 comments

Comments

@moratori
Copy link
Member

moratori commented Dec 19, 2024

  • The existence of claims that require disclosure should be taken into consideration.
    • ex. vct claim

guard let sdJwtParts = try? SDJwtUtil.divideSDJwt(sdJwt: sdJwt) else {
return nil
}
// [Disclosure]
let allDisclosures = decodeDisclosureFunction(sdJwtParts.disclosures)
let sourcePayload = Dictionary(
uniqueKeysWithValues: allDisclosures.compactMap { disclosure in
if let key = disclosure.key, let value = disclosure.value {
return (key, value)
}
else {
return nil
}
})

Related PR: #39

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