UNPKG

@tonomy/antelope-did

Version:

Create, resolve, update and deactivate Decentralized Identifier (DID) documents based on Antelope blockchains

16 lines (15 loc) 1.18 kB
import { Authority, CreateOptions, AntelopeOptions, ChainRegistry, DIDUpdateResult, DIDCreateResult, DIDDeactivateResult } from './types'; import { SignatureProvider } from 'eosjs/dist/eosjs-api-interfaces'; import { DIDResolutionResult } from '@tonomy/did-resolver'; import { createDIDDocument, antelopeChainRegistry, checkDID, fetchAccount } from '@tonomy/antelope-did-resolver'; export default class AntelopeDID { _options: AntelopeOptions; constructor(options: AntelopeOptions); get options(): AntelopeOptions; set options(options: AntelopeOptions); create(creator: string, name: string, owner: Authority, active: Authority, options?: CreateOptions): Promise<DIDCreateResult>; resolve(did: string, options?: AntelopeOptions): Promise<DIDResolutionResult>; update(account: string, permission: string, parent: string, auth: Authority, options?: AntelopeOptions): Promise<DIDUpdateResult>; deactivate(did: string, options?: AntelopeOptions): Promise<DIDDeactivateResult>; } export { Authority, AntelopeOptions, CreateOptions, ChainRegistry, SignatureProvider, createDIDDocument, antelopeChainRegistry, checkDID, fetchAccount, };