Type alias DidService

DidService: {
    id: string;
    serviceEndpoint: DidServiceEndpoint | DidServiceEndpoint[];
    type: string;
    [key: string]: any;
}

Services are used in DID documents to express ways of communicating with the DID subject or associated entities. A service can be any type of service the DID subject wants to advertise.

Type declaration

  • [key: string]: any
  • id: string

    Identifier of the service.

    The id property is REQUIRED. It MUST be a URI conforming to RFC3986 and MUST be unique within the DID document.

  • serviceEndpoint: DidServiceEndpoint | DidServiceEndpoint[]

    A URI that can be used to interact with the DID service.

    The value of the serviceEndpoint property MUST be a string, an object containing key/value pairs, or an array composed of strings or objects. All string values MUST be valid URIs conforming to RFC3986.

  • type: string

    The type of service being described.

    The type property is REQUIRED. It MUST be a string. To maximize interoperability, the value SHOULD be registered in the DID Specification Registries. Examples of service types can be found in § Service Types.