Skip to content

microverse-dev/hardhat-kms-signer

This branch is 1 commit ahead of main.

Folders and files

NameName
Last commit message
Last commit date
Aug 30, 2023
Aug 30, 2023
Aug 30, 2023
Aug 30, 2023
Jan 31, 2023
Jan 31, 2023
Aug 30, 2023
Aug 30, 2023
Aug 30, 2023
Aug 30, 2023
Nov 10, 2023
Nov 10, 2023
Aug 30, 2023
Aug 30, 2023
Aug 30, 2023

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.