UNPKG

@zkpass/transgate-js-sdk

Version:

<p align="center"> <img src="assets/logo.png" width="300" alt="transgate-js-sdk.js" /> </p>

27 lines (26 loc) 984 B
/** * parse signature to v, r, s * @param signature * @returns */ export declare const parseSignature: (signature: string) => { v: number; r: string; s: string; }; export declare const hexToBytes: (hex: string) => Uint8Array; export declare function getObjectValues(json: any): any; export declare function getDeviceType(): "iOS" | "Android" | "Browser"; export declare function insertMobileDialog(): { remove: () => void; }; export declare function insertQrcodeMask(): { canvasElement: HTMLElement; remove: () => void; }; export declare function launchApp(url: string): void; export declare function injectMetaTag(name: string, content: string): void; export declare function removeMetaTag(name: string): void; export declare function isTransgateAvailable(extensionId: string): Promise<boolean>; export declare function launchAppForAndroid(url: string, backupUrl: string): void; export declare function genPublicFieldHash(publicFields?: never[]): string;