Skip to content

Notify makers on Nostr when an order is taken #363

@alaznem

Description

@alaznem

Goal

As a RoboSats user I would like to be notified on Nostr as soon as a trade has taken place.

Briefing

Currently, makers need to keep a browser tab open to know when their order has been taken in RoboSats or link a Telegram user id to their Robosats trade offer. If a taker is found, the browser will play a tone to notify the maker or the telegram bot wil notify the telegram id. The browser tone works well on desktop, but it is not practical on mobile devices where the screen turns off and the sound notification never plays. Telegram notification includes privacy issues and encourages reusing the same Telegram id for multiple RoboSats trades.

As an alternative to Telegram notifications, there should be an option to receive notifications as Nostr direct messages using NIP-04. Nostr DMs are encrypted per design.

What is Nostr?
A decentralised network based on cryptographic keypairs and that is not peer-to-peer, it is super simple and scalable and therefore has a chance of working. https://github.com/nostr-protocol/nostr

Implementation
Possible implementation by using python-nostr, see "Send a DM" for an example.

Meta: Credits for this feature request
This feature request has been written by by the nostr user HiP0 due to my 23k sat bounty for creating such a feature request published on nostr. Because of GitHub account flagging, HiP0's issue #353 has never been released to the public here on GitHub and I agreed to repost this issue on behalf of HiP0. HiP0 got the 23k sat bounty as a Zap attached to this nostr note.

A part of this feature request is taken from nostr user patrickulrich which released his toughts on this in this nostr note.

Metadata

Metadata

Assignees

Labels

javascriptPull requests that update Javascript codeneeds researchMore knowledge is needed in this issuepythonPull requests that update Python code

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions