Skip to content

Service from create_peer_did_numalgo_2 serde to UnknownService #60

@Jsyro

Description

@Jsyro

What

After providing this dictionary as the service parameter to create_peer_did_numalgo_2(), the DIDDocument that is returned has an object of type Service.

                service = {
                    "type": "DIDCommMessaging",
                    "serviceEndpoint": self.profile.settings.get("default_endpoint"),
                    "accept": ["didcomm/v2", "didcomm/aip2;env=rfc587"],
                }

After that returned DIDDocument is serialized and deserialized, the Service object becomes a UnknownService object, when it should become a DIDCommService object.

Why

This is needed to create a did:peer:2 did and the corresponding did_doc in way that can be encoded into secure messages (like acapy).

Success Criteria

the type string should result in the appropriate pydid.service Class to be instantiated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions