@krebitdao/reputation-passport
Version:
Krebit SDK for Verified Credentials
59 lines • 1.9 kB
TypeScript
import { WalletProvider } from './WalletProvider.js';
import { ClaimProps } from './issueCredential.js';
export declare const utils: {
WalletProvider: typeof WalletProvider;
issueCredential: (props: import("./issueCredential.js").IssueProps) => Promise<{
proof: import("@krebitdao/eip712-vc").Proof;
'@context': string[];
type: string[];
id: string;
issuer: {
id: string;
ethereumAddress: string;
};
credentialSubject: {
id: string;
trust: number;
stake: number;
price: number;
nbf: number;
exp: number;
value: any;
type: string;
typeSchema: string;
ethereumAddress: string;
did: string;
expirationDate: string;
tags?: string[];
encrypt?: "hash" | "lit" | "plain";
shareEncryptedWith?: string;
};
credentialSchema: {
id: string;
type: string;
};
issuanceDate: string;
expirationDate: string;
}>;
validateSchema: (props: import("./issueCredential.js").ValidateProps) => Promise<true>;
base64: {
encodeb64: (uintarray: ArrayBuffer | SharedArrayBuffer) => string;
blobToBase64: (blob: Blob) => Promise<string>;
decodeb64: (b64String: string) => Uint8Array;
objToSortedArray: (obj: {
[k: string]: string;
}) => string[][];
arrayToObject: (arr: string[][]) => {
[k: string]: string;
};
};
hashClaimValue: (props: import("./issueCredential.js").HashProps) => string;
regexValidations: {
address: string;
ens: string;
did: string;
};
mergeArray: (arr: any[]) => any[];
};
export type { ClaimProps };
//# sourceMappingURL=index.d.ts.map