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

jws.Verify should check for a # fragment #165

Open
tomdaffurn opened this issue Aug 8, 2024 · 0 comments
Open

jws.Verify should check for a # fragment #165

tomdaffurn opened this issue Aug 8, 2024 · 0 comments

Comments

@tomdaffurn
Copy link
Contributor

The JWS Verify function parses a DID from kid header field, then performs dids.Resolve. The KID must contain a # fragment to identify the key. The verify function should assert that a # frgament is present and throw error if it isn't.

https://github.com/TBD54566975/web5-go/blob/main/jws/jws.go#L247-L252

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