/// import { AccAddress, Key, SimplePublicKey } from '@terra-money/terra.js'; import { Client } from 'gridplus-sdk'; export declare class LatticeKey extends Key { client: Client; _accAddress?: AccAddress; publicKey?: SimplePublicKey; path: number[]; constructor({ token, appName, index, }: { token?: Buffer; appName?: string; index?: number; }); /** * Terra account address. `terra-` prefixed. */ get accAddress(): AccAddress; /** * Takes a device ID, a password, and an app name, and returns a private key * @param {string} deviceId - The device ID of the device you want to generate a token for. * @param {string} password - The password entered when connecting to the device. * @param {string} appName - The name of the application. * @returns a private key as a Buffer */ static genPrivateKey(deviceId: string, password: string, appName: string): Buffer; /** * Compresses a public key into the format expected by terra.js * @returns A compressed public key */ private compressPublicKey; /** * Fetches the public key from the user's device and sets it in the class * @returns a public key */ private fetchPublicKey; /** * Takes an address and sets the public key to a new SimplePublicKey object * @param {Buffer} address - The address of the public key. */ private setPublicKey; /** * Fetches the public key from the server, compresses it, and then sets it in class state * @returns void */ private initializePublicKey; /** * Connects to the users device to begin the pairing process * @param {string} deviceId - The device ID of the device you want to connect to * @returns if the device is paired to this application */ connect(deviceId: string): Promise; /** * Pairs a user's device to this application * @param {string} pairingSecret - the pairing secret displayed on the user's device * @returns if the user has an active wallet */ pair(pairingSecret: string): Promise; /** * Signs a payload using the user's device * @param {Buffer} payload * @returns the signature of the payload */ sign(payload: Buffer): Promise; } //# sourceMappingURL=index.d.ts.map