0.0.5 • Published 1 year ago

@hashflow/aws-kms-ethers-signer v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

This is an ethers.js compatible Signer that uses AWS KMS. This works for any EVM-compatible chain.

In order to create an Ethereum-compatible key in AWS KMS, select the following options:

  • Key Type: Asymmetric
  • Key Usage: Sign and Verify
  • Key Spec: ECC_SECG_P256K1

Once the key is set up, one can easily instantiate a KMS-based Signer, as such:

import { KMSSigner } from '@hashflow/aws-kms-ethers-signer';

const signer = new KMSSigner(regionId, keyId, provider);

await signer.sendTransaction(..);

To run tests:

  • Populate an .env file (see .env.example)
  • yarn
  • yarn test