@funded-labs/plug-controller
Version:
Internet Computer Plug wallet's controller
35 lines (34 loc) • 864 B
TypeScript
/// <reference types="node" />
import PlugWallet from "../PlugWallet";
export interface CreateImportResponse {
wallet: PlugWallet;
mnemonic: string;
}
export interface CreatePrincipalOptions {
name?: string;
icon?: string;
}
export interface CreateOptions extends CreatePrincipalOptions {
password: string;
entropy?: Buffer;
}
export interface CreateAndPersistKeyRingOptions extends CreateOptions {
mnemonic: string;
}
export interface ImportMnemonicOptions {
mnemonic: string;
password: string;
}
export interface ImportFromPemOptions extends CreatePrincipalOptions {
pem: string;
}
export interface ImportFromSecretKey extends CreatePrincipalOptions {
secretKey: string;
}
export interface GetPrincipalFromPem {
pem: string;
}
export interface ValidatePemResponse {
isValid: boolean;
errorType?: string;
}