xmtp / xps-gateway

XPS (XMTP Postal Service) JSON-RPC for xmtp-specific interactions with decentralized networks
https://xmtp.github.io/xps-gateway/
MIT License
2 stars 1 forks source link

Initialize gateway wallet with specified ECDSA private key #41

Open 37ng opened 9 months ago

37ng commented 9 months ago

Is your feature request related to a problem?

Currently it generates a new random wallet every time the gateway is initialized. We should be able to create a configurable wallet from a specified private key.

Describe the solution to the problem

Use a WALLET_PRIVATE_KEY environment variable and create a wallet from it during gateway initialization.

Describe the uses cases for the feature

We probably need to store this private key in AWS secret manager and pass its value into the container as a environment variable. We could even use KMS to sign the txs instead of using in-memory wallet to boost the security, but that doesn't need to be prioritized for now.

Additional details

No response