UNPKG

aion-gql-webcomponents

Version:
38 lines (37 loc) 1.16 kB
import { WalletProvider } from "../WalletProvider"; import { Transaction } from "../../common/Transaction"; import { SignedTransaction } from "../../common/SignedTransaction"; export default class KeystoreWalletProvider implements WalletProvider { private keystore; private password; private privateKey; private publicKey; private address; constructor(keystore: string | ArrayBuffer, password: string); init(keystore: ArrayBuffer, password: string): void; unlock(progressCallback: (number: any) => void): Promise<[string, string]>; sign(transaction: Transaction): Promise<SignedTransaction>; fromRlp(keystore: any): { id: any; version: number; address: any; crypto: { cipher: any; ciphertext: any; kdf: any; mac: any; cipherparams: { iv: any; }; kdfparams: { dklen: number; n: number; p: number; r: number; salt: any; }; }; }; private _decrypt; private _createKeyPair; }