Source code for acapy_agent.wallet.did_info

"""KeyInfo, DIDInfo."""

from typing import List, NamedTuple, Optional, Union

from .did_method import DIDMethod
from .key_type import KeyType

INVITATION_REUSE_KEY = "invitation_reuse"


[docs] class KeyInfo(NamedTuple): """Class returning key information.""" verkey: str metadata: dict key_type: KeyType kid: Optional[Union[List[str], str]] = None
DIDInfo = NamedTuple( "DIDInfo", [ ("did", str), ("verkey", str), ("metadata", dict), ("method", DIDMethod), ("key_type", KeyType), ], )