@sparkdotfi/common-viem-aws-kms
v0.2.0-20251014.fc890b4c
Published
Credit goes to https://github.com/jackchuma/viem-kms-signer/blob/main/src/utils/kms-utils.ts MIT © Jack Chuma
Readme
Viem AWS KMS
Credit goes to https://github.com/jackchuma/viem-kms-signer/blob/main/src/utils/kms-utils.ts MIT © Jack Chuma
To make it work you gotta have these in your env:
AWS_ACCESS_KEY=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
AWS_KMS_KEY_ID=Extract Ethereum address from the public key
You can use a script to easily convert public key from AWS UI to Ethereum address. Remember to remove new lines and put it in quotes like this:
pnpm run extractEthereumAddressFromPublicKey "-----BEGIN PUBLIC KEY-----MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEVzaaEV5whUYAQU6TB1PMFttcyS4cr9CQiIkMe44HXuHSkU8Cg2f+bV97n0vzgW5jt3Tlg5VoHQo8aPIks3VKrg==-----END PUBLIC KEY-----"