microReticulum_Firmware icon indicating copy to clipboard operation
microReticulum_Firmware copied to clipboard

Interface discovery announces: library or firmware, and how to build the stamp

Open tostolaza opened this issue 2 weeks ago • 0 comments

Following the review of #123: where should interface discovery live, and how should its stamp be produced?

What it is for

A node running microReticulum in Transport Mode has no way to appear on interface-discovery maps such as rmap.world. Python rnsd announces rnstransport.discovery.interface for interfaces with discoverable = yes. The announce carries a msgpack payload (name, transport id, interface type, location, radio parameters, optional operator LXMF address) followed by an LXMF proof-of-work stamp.

What #123 did (now removed from it)

  • The host builds the whole app_data, including the stamp, with LXMF's stamper (cost 16, 20 expand rounds), and stores it on the device through two provisioning fields (Discovery Enabled, Discovery Data).
  • The firmware re-sends that payload from the transport identity: 2 minutes after boot, then every Announce Interval.
  • It works: a MASN V1.2 node appears on rmap.world through a TCP-connected transport node.

The open questions you raised

  1. Where it belongs. It's Reticulum protocol behaviour, so it could be a discovery announcer in microReticulum, used by the firmware like other destinations.
  2. Replaying a pre-built stamp. Is that acceptable long term, or should the stamp be generated on the device? A cost-16 stamp is a lot of hashing for an nRF52840 or ESP32. It would only have to be redone when the payload changes (name, location, radio parameters), but generating it on the device could still take minutes.
  3. The payload builder. If the payload stays host-built, users need a builder they can get from this repository or from microReticulum. For example, a small Python script next to the docs, or a mode of an existing tool.

Which direction would you prefer? Once that's settled I can prepare the PR, in the firmware or in microReticulum.

tostolaza avatar Nov 16 '26 12:11 tostolaza