import { ethers, Keypair } from ".."; function mnemonicToKeypair(mnemonicStr: string, password?: string): Keypair { const seed = ethers.utils.mnemonicToSeed(mnemonicStr, password); return Keypair.fromSeed(Uint8Array.from(Buffer.from(seed))); } export default mnemonicToKeypair;