In hardhat I'd like to get the privateKey from a signer, the privateKeys are initialised in the hardhat.config networks.network.accounts
.
import { ethers } from "hardhat";
import { Signer } from "ethers";
const accounts = await ethers.getSigners();
const account0: Signer = accounts[0];
I don't see any attribute/method on the Signer
instance to get the privateKey.