UNPKG

@safik/fk-plug-controller

Version:

Internet Computer Plug wallet's controller

10 lines (9 loc) 436 B
import tweetnacl from 'tweetnacl'; import { BinaryBlob } from '@dfinity/candid'; import Secp256k1PublicKey from './secpk256k1/publicKey'; export interface Secp256k1KeyPair { publicKey: Secp256k1PublicKey; secretKey: BinaryBlob; } export declare const createKeyPair: (mnemonic: string, index?: number) => tweetnacl.SignKeyPair; export declare const createSecp256K1KeyPair: (mnemonic: string, index?: number) => Secp256k1KeyPair;