Skip to content

Commit

Permalink
chore: add TODO comment regarding SIOPv2 namespace restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
nanderstabel committed May 8, 2024
1 parent 957dfd2 commit 05959ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions oid4vc-core/src/subject_syntax_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ pub struct DidMethod {
}

impl DidMethod {
// TODO(selv): SIOPv2 has a (probably unintended) restriction on how to communicate support for DID Methods in a
// Providers Metadata where namespaces are not allowed. So strictly speaking namespaces should not be allowed. An
// issue has been opened to address this problem. For more information, see:
// https://github.com/openid/SIOPv2/issues/22
pub fn from_str_with_namespace(s: &str) -> Result<Self, serde_json::Error> {
let mut did_scheme = s.splitn(4, ':');

Expand Down

0 comments on commit 05959ca

Please sign in to comment.