@0xpolygonid/js-sdk
Version:
SDK to work with Polygon ID
22 lines (19 loc) • 618 B
text/typescript
import { Hash } from '@iden3/js-merkletree';
import { DIDDocument, JsonDocumentObject } from '../../iden3comm';
/** Identity structure that can be used for identity storage */
export type Identity = {
did: string;
state?: Hash;
isStatePublished?: boolean;
isStateGenesis?: boolean;
};
/** Profile structure that can be used for profiles storage */
export type Profile = {
id: string;
nonce: number | string;
genesisIdentifier: string;
verifier: string;
tags?: string[]; // format of the tags can be defined by client of sdk
did_doc?: DIDDocument;
metadata?: JsonDocumentObject; // metadata
};