@nomicfoundation/hardhat-keystore
Version:
A module for managing keystore files that store a map from IDs to encrypted string values.
12 lines (9 loc) • 350 B
text/typescript
import path from "node:path";
import { getConfigDir } from "@nomicfoundation/hardhat-utils/global-dir";
/**
* Get the path for the keystore in the Hardhat global config directory.
*/
export async function getKeystoreFilePath(): Promise<string> {
const configDirPath = await getConfigDir();
return path.join(configDirPath, "keystore.json");
}