The library @michaelhart/meshcore-decoder stores the channel secrets without any id, this means that it does not have a convenient way to know which of the keys worked and decrypted the channel message.
To solve this the library needs to either accept an id and return it for the matched key or return the key itself so it can be matched by the user.
Ideally we update the upstream library to fix this. If that is not accepted or solved any other way, fork the library and fix it.
ps. we can solve the encrypted channel messages on decrypted ones but I feel like the solution for the both problems is a better persuit.
The library
@michaelhart/meshcore-decoderstores the channel secrets without any id, this means that it does not have a convenient way to know which of the keys worked and decrypted the channel message.To solve this the library needs to either accept an id and return it for the matched key or return the key itself so it can be matched by the user.
Ideally we update the upstream library to fix this. If that is not accepted or solved any other way, fork the library and fix it.
ps. we can solve the encrypted channel messages on decrypted ones but I feel like the solution for the both problems is a better persuit.