fix(indexer): harden primary-claim key resolution - #82
Merged
Conversation
randomblocker
marked this pull request as ready for review
August 10, 2026 12:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #81.
What changed
didscheme spelling on read and return the canonical lowercase claim.demos:0x…, bare/address aliases, unknown schemes, and unsupported algorithms by default.0xequivalence to the pinned legacy SDK bundle-result path.Why
Several indexer paths extracted any trailing 64 hex characters and treated them as an Ed25519 key. A cryptographically valid artifact using an unregistered claim such as
domain:<64hex>could therefore be accepted as if the Directory supported that ClaimReference scheme. The new boundary fails closed unless a scheme-specific resolver is explicitly supplied.Impact
Current-profile verification now has one consistent identity/key policy. Existing canonical Demos artifacts remain valid, mixed-case
didinput canonicalizes on read, and unsupported claim schemes are no longer silently aliased.Validation
npm run typechecknpm test— 184/184 passingnpm run check:deploy-confignpm run build