Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 980 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 980 Bytes

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.