impierce / openid4vc

Rust implementation of the OpenID4VC standards. The library will offer implementations for SIOPv2, OpenID4VP and OpenID4VCI.
https://www.impierce.com
Apache License 2.0
28 stars 3 forks source link

feat: allow for `DidMethod` with partitioned namespace #75

Closed nanderstabel closed 5 months ago

nanderstabel commented 6 months ago

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 and did:iota can be parsed to a DidMethod struct, but did:iota:smr and did:iota:rms are valid DidMethod'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: https://github.com/openid/SIOPv2/issues/22.

Links to any relevant issues

How the change has been tested

Added unit test..

Definition of Done checklist

Add an x to the boxes that are relevant to your changes.