Interface: IService
identity_wasm.IService
Base Service properties.
Table of contents
Properties
Properties
id
• Readonly id: string | DIDUrl
Identifier of the service.
Must be a valid DIDUrl with a fragment.
type
• Readonly type: string | string[]
Type of service.
E.g. "LinkedDomains".
serviceEndpoint
• Readonly serviceEndpoint: string | string[] | Map\<string, string[]> | Record\<string, string[]>
A URL, set of URLs, or map of URL sets.
NOTE: throws an error if any entry is not a valid URL string. List entries must be unique.
properties
• Optional Readonly properties: Record\<string, any> | Map\<string, any>
Additional custom properties to embed in the service.
WARNING: entries may overwrite existing fields and result in invalid documents.