/** * @packageDocumentation * @module API-IdentityVM */ import LuxCore from "../../lux"; import { JRPCAPI } from "../../common/jrpcapi"; import { Identity, CreateIdentityParams, CreateIdentityResponse, Credential, IssueCredentialParams, IssueCredentialResponse, VerifyCredentialParams, VerifyCredentialResponse, RevokeCredentialParams, CreateProofParams, CreateProofResponse, Issuer, RegisterIssuerParams, ListIssuersParams, IdentityHealthResponse } from "./interfaces"; /** * Class for interacting with the I-Chain (Identity Chain) IdentityVM API. * * @category RPCAPIs * * @remarks This extends the [[JRPCAPI]] class. This class should not be directly called. * Instead, use the [[Lux.addAPI]] function to register this interface with Lux. */ export declare class IdentityVMAPI extends JRPCAPI { /** * Create a new decentralized identity (DID). */ createIdentity: (params: CreateIdentityParams) => Promise; /** * Get an identity by its ID. */ getIdentity: (id: string) => Promise; /** * Resolve a DID to its identity document. */ resolveIdentity: (did: string) => Promise; /** * Issue a verifiable credential. */ issueCredential: (params: IssueCredentialParams) => Promise; /** * Get a credential by its ID. */ getCredential: (credentialId: string) => Promise; /** * Verify a credential's validity. */ verifyCredential: (params: VerifyCredentialParams) => Promise; /** * Revoke an issued credential. */ revokeCredential: (params: RevokeCredentialParams) => Promise; /** * Create a selective disclosure proof for a credential. */ createProof: (params: CreateProofParams) => Promise; /** * Register a new credential issuer. */ registerIssuer: (params: RegisterIssuerParams) => Promise; /** * Get an issuer by its ID. */ getIssuer: (issuerId: string) => Promise; /** * List registered credential issuers. */ listIssuers: (params?: ListIssuersParams) => Promise; /** * Get identity chain health status. */ health: () => Promise; constructor(core: LuxCore, baseURL?: string); } //# sourceMappingURL=api.d.ts.map