microReticulum icon indicating copy to clipboard operation
microReticulum copied to clipboard

microReticulum fails if there is no saved identity for LRPROOF checking

Open nilu96 opened this issue 5 months ago • 1 comments

During my tests on my LoRa devices, I observed that microReticulum crashed in Identity::recall during transport of LRPROOF. The devices then reboots after watchdog timeout.

The reason is, that unlike the Reference Implementation of Reticulum, microReticulum does have a limit of stored known identities. So it is possible that a link can be established through a transport node, that does have a valid path to the final destination, but does NOT have the public key to validate the LRPROOF that comes back from the link destination in response to the link establish request.

The fix is a quick check if the identity is found and it seems to work fine in my local. I would be happy to submit a PR if you want :)

Cheers!

nilu96 avatar Jun 05 '26 10:06 nilu96

I'd be more than happy to merge a PR if you'd like to provide one.

Thanks!

attermann avatar Jun 06 '26 00:06 attermann