feat: allow for DidMethod
with partitioned namespace
#75
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.
Description of change
This change allows for
DidMethod
's with namespace support. For more information see #72, but in short:now not just
did:key
,did:jwk
anddid:iota
can be parsed to aDidMethod
struct, butdid:iota:smr
anddid:iota:rms
are validDidMethod
's as well.Disclaimer:
The SIOPv2 specification has a (probably unintended) too restrictive requirement regarding displaying supported DID Methods in a Providers metadata (that doesn't allow for namespaces). There is an open issue for this which will will hopefully result in this restriction to be removed: openid/SIOPv2#22.
Links to any relevant issues
DidMethod
's with partitioned namespaces #72subject_syntax_types_supported
may be too restrictive openid/SIOPv2#22How the change has been tested
Added unit test..
Definition of Done checklist
Add an
x
to the boxes that are relevant to your changes.