UNPKG

@krebitdao/reputation-passport

Version:

Krebit SDK for Verified Credentials

21 lines 1.14 kB
import { ethers } from 'ethers'; export declare const AUTH_SIGNATURE_BODY = "I am creating an account to use the private features of Krebit at {{timestamp}}"; export declare function canonicalAccessControlConditionFormatter(cond: any): any; export declare class Lit { private litSdk; private litNodeClient; private currentConfig; constructor(); private connect; getOwnsAddressCondition: (address: string) => Array<any>; getShareWithCondition: (address: string) => Array<any>; encrypt: (message: string, accessControlConditions: Array<Object>, wallet: ethers.Signer) => Promise<{ encryptedString: string; encryptedSymmetricKey: any; unifiedAccessControlConditions: Object[]; chain: "mumbai" | "polygon" | "goerli" | "mainnet"; }>; updateConditions: (encryptedSymmetricKey: string, newAccessControlConditions: Array<Object>, wallet: ethers.Signer, permanent?: boolean) => Promise<any>; decrypt: (encryptedString: string, encryptedSymmetricKey: string, accessControlConditions: Array<Object>, wallet: ethers.Signer) => Promise<string>; } //# sourceMappingURL=lit.d.ts.map