# @white-matrix/hardhat-kms-signer

> Sign Hardhat deployment transactions using KMS key

Latest version **0.1.1** (published 2022-03-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @white-matrix/hardhat-kms-signer
pnpm add @white-matrix/hardhat-kms-signer
yarn add @white-matrix/hardhat-kms-signer
bun add @white-matrix/hardhat-kms-signer
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2022-03-10 |
| First published | 2022-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 34.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alvin |
| Maintainers | vera_wlz, hexi1997, sleepyyj, 12ain, chen-yu, wklili, cxm123, kilru, willin, liyw, lucklyric, q33357, xiadd |
| Keywords | ethereum, smart-contracts, hardhat, hardhat-plugin |

## Links

- npm: https://www.npmjs.com/package/@white-matrix/hardhat-kms-signer
- Repository: https://github.com/WhiteMatrixTech/hardhat-kms-signer
- Homepage: https://github.com/WhiteMatrixTech/hardhat-kms-signer#readme
- Issues: https://github.com/WhiteMatrixTech/hardhat-kms-signer/issues
- npm.io page: https://npm.io/package/@white-matrix/hardhat-kms-signer

## Dependencies (4)

- [asn1.js](https://npm.io/package/asn1.js.md) ^5.4.1
- [@types/lodash](https://npm.io/package/@types/lodash.md) ^4.14.172
- [@ethereumjs/tx](https://npm.io/package/@ethereumjs/tx.md) ^3.3.0
- [@ethereumjs/common](https://npm.io/package/@ethereumjs/common.md) ^2.4.0

## Recent versions

- 0.1.1 (latest) — 2022-03-10
- 0.1.0 — 2022-03-10

## README

# Hardhat 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 "@rumblefishdev/hardhat-kms-signer";

...

const config: HardhatUserConfig = {
  networks: {
    ropsten: {
      url: `https://ropsten.infura.io/v3/${process.env.INFURA_KEY}`,
      kmsKeyId: "YOUR KMS KEY ID"
    }
  }
}
```

### Learn your address

```
$ node_modules/.bin/hardhat console --network ropsten
Creating Typechain artifacts in directory types for target ethers-v5
Successfully generated Typechain artifacts!
Welcome to Node.js v12.22.6.
> getNamedAccounts().then(console.log)
Promise { <pending> }
> { deployer: '0x541dD0eC22fB1213d2C2B1fc83B5F302cEFF79A2' }
```

Remember to fund your address with some ETH before deploying.

---
_Source: https://npm.io/package/@white-matrix/hardhat-kms-signer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
