Skip to content

microverse-dev/hardhat-kms-signer

Repository files navigation

Hardhat Google Cloud KMS Signer

This plugin signs Ethereum transaction using KMS key during deployments.

Usage

It's assumed that you have AWS access configured and your role perform kms:sign using KMS key.

In hardhat.config.ts do:

import "@microverse-dev/hardhat-kms-signer";

...

const config: HardhatUserConfig = {
  ...
  networks: {
    goerli: {
      url: "https://goerli.infura.io/v3/{infura-key}",
      kmsResourceName: "projects/{project}/locations/asia1/keyRings/{key-ring-name}/cryptoKeys/{key-name}/cryptoKeyVersions/{version}",
      chainId: 5,
    },
  }
  ...
}

License

  • hardhat: MIT - See LICENSE for more information.
  • @microverse-dev/hardhat-gcp-kms-signer: MIT - See LICENSE for more information.