ethers-aws-kms-signer-v6
v0.9.2
Published
The @aws-sdk/client-kms integration with ethers@v6 signer. Base https://github.com/0xcuonghx/ethers-kms-signer, add signer.sign()
Downloads
11
Readme
ethers-aws-kms-signer
The @aws-sdk/client-kms integration with ethers@v6 signer
Feature
- ethers@v6 signer compatible
Install
# npm install @cuonghx.gu-tech/ethers-aws-kms-signer
npm install ethers-aws-kms-signer-v6
Usage
signer = new AwsKmsSigner({
keyId: process.env.TEST_KMS_KEY_ID!,
region: process.env.TEST_KMS_REGION_ID!,
credentials: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
},
});
# add sign()
// digest type is bytes32
const signedMessage = await signer.sign(digest);