Why do region scopes need to be prefixed with #? #19

Closed
opened 2026-10-05 01:53:12 +02:00 by adam · 4 comments
Owner

Per-channel scopes work fine so far, thanks a lot for the quick implementation @jkingsman !!

But why do scopes only work when prefixed with # sign RemoteTerm?

I.e. a scope defined in Cottle's Android app as "myscope" needs to be entered as "#myscope" into RemoteTerm.

Quite confusing and not really necessary, isn't it?

Per-channel scopes work fine so far, thanks a lot for the quick implementation @jkingsman !! But why do scopes only work when prefixed with # sign RemoteTerm? I.e. a scope defined in Cottle's Android app as "myscope" needs to be entered as "#myscope" into RemoteTerm. Quite confusing and not really necessary, isn't it? <!-- github-sync-id:4047802042 -->
adam closed this issue 2026-10-05 01:53:12 +02:00
Author
Owner

We don't do any enforcement of format, so you're typing in exactly what is being hashed (heh -- in the cryptographic sense) by the radio to generate the bytes for region scoping. I guess in the core app it prepends a hash sign for you? I couldn't say.

We don't do any enforcement of format, so you're typing in exactly what is being hashed (heh -- in the cryptographic sense) by the radio to generate the bytes for region scoping. I guess in the core app it prepends a hash sign for you? I couldn't say. <!-- github-comment-id:4027003606 -->
Author
Owner
I've asked in the meshcore devs room. https://discord.com/channels/1343693475589263471/1391673743453192242/1480677801647538246 <!-- github-comment-id:4027016823 -->
Author
Owner

Just convention, not actually part of the channel hash

seems to be the answer. I've improved the messaging (debatably) to clarify.

Image
> Just convention, not actually part of the channel hash seems to be the answer. I've improved the messaging (debatably) to clarify. <img width="451" height="362" alt="Image" src="https://github.com/user-attachments/assets/91bc1673-4cb0-428f-891b-02ec7bc52d2a" /> <!-- github-comment-id:4027173289 -->
Author
Owner

Okay looks like per https://buymeacoffee.com/ripplebiz/region-filtering this was explicit, then made silent/implicit, so I have followed suite in b157ee1. The code will now silently prepend a # to region scopes, but will not prepend in the case where there already is one (like you), so you'll be good to go either way.

Okay looks like per https://buymeacoffee.com/ripplebiz/region-filtering this was explicit, then made silent/implicit, so I have followed suite in b157ee1. The code will now silently prepend a # to region scopes, but will not prepend in the case where there already is one (like you), so you'll be good to go either way. <!-- github-comment-id:4027315727 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Remote-Terminal-for-MeshCore#19