I am currently learning the usage of the Hardhat deployment environment and I have some questions with regards to getSigners()
I understand that getSigners() is an abstraction of an eth acc to be used to sign messages and tx and send signed tx to the eth network
So in calling eg. const accounts = await ethers.getSigners() We will be returned a list of eth acc in the node we are connected to
This is the part which I am confused about:
What is the difference between the account we often save in our .env file (the one with the private key to our accounts when we set up hardhat.config.js) and accounts from getSigners()? Why isn't it the eth account in our .env responsible for signing tx?
Hope that you guys can help me out here:)