@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
34 lines (33 loc) • 786 B
TypeScript
import Identifier from '../Identifier';
/**
* Enumeration of the supported credential types.
*/
export declare enum CredentialType {
VerifiedCredential = "https://www.w3.org/2018/credentials/v1",
SelfIssued = "https://self-issued.me"
}
/**
* Interface defining common properties and
* methods of a credential.
*/
export default interface ICredential {
/**
* The identifier the credential was
* issued to.
*/
issuedTo: Identifier;
/**
* The identifier of the issuer of
* the credential.
*/
issuedBy: Identifier;
/**
* The date the credential was issued.
*/
issuedAt: Date;
/**
* The date and time that the
* credential expires at.
*/
expiresAt?: Date;
}