0.9.0 • Published 2 years ago

aws-kms-provider v0.9.0

Weekly downloads
24
License
MIT
Repository
github
Last release
2 years ago

aws-kms-provider

npm version

AWS KMS Web3 provider. The provider can sign the transaction using Asymmetric Keys of AWS Key Management Service without managing a private key.

Install

$ npm install aws-kms-provider

Another packages

aws-kms-signerSigner using AWS KMS without web3.js provider
aws-kms-ethers-signerSigner for ethers.js

Examples

See send-eth.ts.

import Web3 from "web3";
import { KmsProvider } from "aws-kms-provider";

const region = "us-east-1";
const keyId = "xxxxx-xxxx-xxxx-xxxx-xxxxxxxx";
const endpoint = "https://ropsten.infura.io/v3/xxxxxxxxxxxx";
const to = "0xabcdef";

async function main() {
  const provider = new KmsProvider(endpoint, { region, keyIds: [keyId] });

  const web3 = new Web3(provider as any);

  const accounts = await web3.eth.getAccounts();
  console.log("accounts", accounts);

  const receipt = await web3.eth.sendTransaction({
    from: accounts[0],
    to,
    value: web3.utils.toWei("0.00001", "ether"),
  });

  console.log(receipt);
}

main().catch((e) => console.error(e));

For Developer

Release

$ yarn lerna publish
  • Write a release note.

Run e2e test in local

$ export AWS_PROFILE=xxx
$ ./scripts/prepare_e2e.sh yarn e2e
0.9.0

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0-alpha.0

2 years ago

0.5.0

2 years ago

0.5.2

2 years ago

0.4.3

2 years ago

0.5.1

2 years ago

0.4.2

2 years ago

0.4.1

3 years ago

0.3.5-alpha.12

3 years ago

0.3.5-alpha.11

3 years ago

0.4.0

3 years ago

0.3.5-alpha.9

3 years ago

0.3.5-alpha.7

3 years ago

0.3.5-alpha.8

3 years ago

0.3.5-alpha.5

3 years ago

0.3.5-alpha.6

3 years ago

0.3.5-alpha.3

3 years ago

0.3.5-alpha.4

3 years ago

0.3.5-alpha.10

3 years ago

0.3.5-alpha.1

3 years ago

0.3.5-alpha.2

3 years ago

0.3.5-alpha.0

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago