Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valerio-vaccaro/GreenPOS
M5stack based POS for Liquid Securities tokens
https://github.com/valerio-vaccaro/GreenPOS
bitcoin liquid pos wallet
Last synced: 3 months ago
JSON representation
M5stack based POS for Liquid Securities tokens
- Host: GitHub
- URL: https://github.com/valerio-vaccaro/GreenPOS
- Owner: valerio-vaccaro
- License: mit
- Created: 2020-09-13T14:12:37.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-26T09:34:25.000Z (about 4 years ago)
- Last Synced: 2024-04-10T02:08:29.921Z (7 months ago)
- Topics: bitcoin, liquid, pos, wallet
- Language: Python
- Homepage:
- Size: 244 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-liquid - LiquidSecuritiesPOS
README
# LiquidSecuritiesPOS
```
_ _ _ _ _____ _ _ _
| | (_) (_) | |/ ____| (_) | (_)
| | _ __ _ _ _ _ __| | (___ ___ ___ _ _ _ __ _| |_ _ ___ ___
| | | |/ _` | | | | |/ _` |\___ \ / _ \/ __| | | | '__| | __| |/ _ \/ __|
| |____| | (_| | |_| | | (_| |____) | __/ (__| |_| | | | | |_| | __/\__ \
|______|_|\__, |\__,_|_|\__,_|_____/ \___|\___|\__,_|_| |_|\__|_|\___||___/
| |
|_| Demo Blockstream AMP POSThis is an examples of POS terminal using GDK, python and M5Stack board.
DON'T USE THIS CODE IN PRODUCTION
```M5stack based POS for Blockstream AMP tokens.
- http.server is not ready for a production service
- we don't show how to add a tls certificate
- configurations and mnemonic are saved in the same file in plain text
- we use error messages in json without specific codes
- connection status is not monitored
- printer is not monitored
- payments request are persisted in a local file
- communication is not encrypted
- messages are not signed
- there is not an authentication phase## Install the backend
In a python3 virtual environment install GDK (https://github.com/Blockstream/gdk/releases).Run the script adding the port number as argument.
`python pos_backend.py 80`
### Available commands
- `/status` return always a static message
- `/assets` return the list of accepted assets
- `/gaid` return Blockstream AMP account GAID
- `/balance` return the balance of subaccount, if `asset` argument is passed return the balance of the selected asset, if not pass the list of known assets
- `/check` check if a payment is performed if the argument `pointer` is passed (and print information using the thermal printer) or return the list of payment requests
- `/address` return an address an save request payment (`name`, `asset`, `amount` arguments can be passed on url)
- `/summary` print the payment request summary on the thermal printer## Install the firmware
Open `m5green.ino` using Arduino IDE, configure the firmware using your IP and port number.