mirror of
https://github.com/aljazceru/payments-rest-api.git
synced 2025-12-24 08:54:19 +01:00
b10b059c015339d2f6fe63ce12a86ad45ee008de
Nodeless payments
This is a proof of concept implementation for deploying the Breez SDK (Nodeless implementation) as a lambda function to AWS. It provides a REST api with close to zero cost of hosting.
The seed phrase and the SDK's api-key are stored encrypted in AWS Parameter store and decrypted when lamba is accessed (a REST call is made).
Currently implemented endpoints:
- /send_payment (bolt11)
- /receive_payment (bolt11)
- /list_payments
Deploy
Deployment to AWS with cloudformation. Encrypted secrets are stored in AWS Parameter Store and are accessed each time any endpoint is called (in the background docker container is started for each rest api call).
Security:
- for PoC purposes simple x-api-key header is added to the http calls and verified at each invocation.
Languages
Python
98.8%
Dockerfile
1.2%