Skip to content

DID Indy Resolver can not resolve Indy DID with additional namespace input #3974

@hviet2603

Description

@hviet2603

Hello development team,

As the title described, indy dids with namespace input e.g. did:indy:example:WRfXPg8dantKVubE3HX8pw seem not to be resolved by the Indy resolver.

I think the regex in messaging/valid.py does not match:

class IndyDID(Regexp):
    """Validate value against indy DID."""

    EXAMPLE = "did:indy:sovrin:WRfXPg8dantKVubE3HX8pw"
    PATTERN = re.compile(rf"^(did:(sov|indy):)?[{B58}]{{21,22}}$")

    def __init__(self):
        """Initialize the instance."""

        super().__init__(
            IndyDID.PATTERN,
            error="Value {input} is not an indy decentralized identifier (DID)",
        )

The pattern is also later used in building the document and submitting Indy VDR requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions