@constellation-labs/key-manager
v0.9.1
Published
[Constellation] Keys and secrets management
Downloads
496
Readme
@constellation-labs/key-manager
KMS Signer
Implementation taken from: https://github.com/rjchow/ethers-aws-kms-signer. Reimplemented for security reasons.
Design
Usage
import { storeSecret } from '@constellation-labs/key-manager'
import { SecretsManagerClient } from '@aws-sdk/client-secrets-manager'
const client: SecretsManagerClient = new SecretsManagerClient({})
const secretId = "define-your-secretId"
const secret = {
L1_FEE_WALLET_PRIVATE_KEY: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
FAUCET_KEY: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
}
const func = async () => {
console.log(await storeSecret(client, secretId, secret))
}
func()