You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(didresolver): wrap resolved verifier as requested DID
`token.VerifySignature` in `ucantone/ucan/token/token.go` compares
`tok.Issuer()` against `verifier.DID()` before checking signature bytes.
HTTPResolver and MapResolver previously returned an unwrapped did:key
verifier when asked to resolve a did:web — so the equality check failed
and signatures were rejected with `InvalidSignature` before they were
ever examined.
Wrap the underlying did:key verifier so its DID() matches the originally
requested DID. did:key inputs to MapResolver remain unwrapped (the keys
are already self-describing).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments