@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
26 lines (22 loc) • 840 B
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* abstract class to represent a service endpoint.
* based on: https://github.com/decentralized-identity/identity-hub/blob/master/explainer.md.
*/
export default abstract class ServiceEndpoint {
/**
* The context of the service reference.
*/
public context: string;
/**
* The type of the service reference.
*/
public type: string;
constructor(context: string, type: string) {
this.context = context;
this.type = type;
}
}