UNPKG

@nomicfoundation/hardhat-keystore

Version:

A module for managing keystore files that store a map from IDs to encrypted string values.

24 lines 941 B
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() { const configDirPath = await getConfigDir(); return path.join(configDirPath, "keystore.json"); } /** * Get the path for the development keystore in the Hardhat global config directory. */ export async function getDevKeystoreFilePath() { const configDirPath = await getConfigDir(); return path.join(configDirPath, "dev.keystore.json"); } /** * Get the path for the file containing the unencrypted password for the development keystore in the Hardhat global config directory. */ export async function getDevKeystorePasswordFilePath() { const configDirPath = await getConfigDir(); return path.join(configDirPath, "hardhat.checksum"); } //# sourceMappingURL=get-keystore-file-path.js.map