Prototyping a sort of gift card (prepaid card) for ASA. Let’s call this ASA GiftToken. Want to gauge any feedback or suggestions for how I’m handling this physical-to-digital flow.
- I’m printing on the physical card a QR Code containing the Public Key and Private Key for a newly created address ADDR (with min Algo balance and opt in GiftToken) with 0 GiftToken balance.
- When a customer purchases the card, the merchant will scan the QR Code (using just the Public Key part) and fund address ADDR with the GiftToken balance purchased.
- When the customer ends up redeeming the card, they will scan the QR code (using the Public and Private Key) to transfer the entire GiftToken balance from address ADDR to their own account (a separate Public Key).
- If any dispute happens, the merchant (as the ASA administrator) can freeze or clawback by following the transaction history of the original address ADDR.
If any of you guys have looked at different flows for this use case, please let me know ![]()
I know it’s usually not recommended to expose private key like that, but I haven’t seen and can’t think of a better way of replicating the functionality of a prepaid card.
