Skip to content

chore(abnf): explicit ABNF clarification - #290

Open
rmlearney-digicatapult wants to merge 4 commits into
decentralized-identity:mainfrom
rmlearney-digicatapult:chore/abnf-clarification
Open

chore(abnf): explicit ABNF clarification#290
rmlearney-digicatapult wants to merge 4 commits into
decentralized-identity:mainfrom
rmlearney-digicatapult:chore/abnf-clarification

Conversation

@rmlearney-digicatapult

@rmlearney-digicatapult rmlearney-digicatapult commented Jul 21, 2026

Copy link
Copy Markdown

Tighten did:webvh identifier and DID-to-HTTPS parsing rules to remove ambiguity and reference DID Core.

  • Method-Specific Identifier section now explicitly layers did:webvh constraints on top of DID Core ABNF, with clearer productions for SCID, domain, optional percent-encoded port, and path segments
  • Deterministic parsing requirements for percent-encoded port handling, including explicit disambiguation of terminal percent-encoded colon + digits and constraints on where percent-encoded colons may appear
  • Explicit normalization and validation requirements for domain and path processing (single decode pass, IDNA handling, IP-address rejection, path safety checks, canonical encoding expectations)
  • Clarified that DID URL path/query/fragment components are outside method-specific-id parsing and must not be interpreted as SCID/domain/port/path segments

These changes are consistent with did:web as well (except for the existence of SCID), just spelled out more explicitly.

Signed-off-by: rmlearney-digicatapult <robert.learney@digicatapult.org.uk>
Signed-off-by: rmlearney-digicatapult <robert.learney@digicatapult.org.uk>
Signed-off-by: rmlearney-digicatapult <robert.learney@digicatapult.org.uk>
Signed-off-by: rmlearney-digicatapult <robert.learney@digicatapult.org.uk>
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

Successfully merging this pull request may close these issues.

1 participant