@funded-labs/plug-controller
Version:
Internet Computer Plug wallet's controller
8 lines (7 loc) • 510 B
TypeScript
/// <reference types="node" />
import CryptoJS from 'crypto-js';
import { Principal } from '@dfinity/principal';
import { AccountCredentials } from '../../interfaces/account';
export declare const getAccountId: (principal: Principal, subaccount?: number | undefined, cryptoAdapter?: typeof CryptoJS) => string;
export declare const createAccount: (entropy?: Buffer | undefined) => AccountCredentials;
export declare const createAccountFromMnemonic: (mnemonic: string, accountId: number) => AccountCredentials;