feat: add location privacy / GPS blurring#2611
Open
tedder wants to merge 2 commits into
Open
Conversation
addresses meshcore-dev#870 and meshcore-dev#1741 by chopping the floating point digits at `(6-blur_digits)`. Tested and running on my Station G2, but should work on all.
When in "blur mode", using the device pubkey, offset the device from the truncated GPS coordinate. This prevents multiple devices from being at the same point. By using modulo we may not be evenly distributed, but they should have decent spread. Here are some examples from one device: ``` gps -> on, active, fix, 7 sats gps blur -> > 3, offset lat+0.000071 lon-0.000310 gps blur 4 -> ok, offset lat+0.000021 lon+0.000040 gps blur 3 -> ok, offset lat+0.000071 lon-0.000310 gps blur 2 -> ok, offset lat-0.003429 lon-0.004810 ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
addresses #870 and #1741 by chopping the floating point digits at
(6-blur_digits). Tested and running on my Station G2, but should work on all.Using integer math for the truncation.
Further, we're doing deterministic GPS fuzz offsets. When in "blur mode", using the device pubkey, offset the device from the truncated GPS coordinate. This prevents multiple devices from being at the same point.
By using modulo we may not be evenly distributed, but they should have decent spread.
Here are some examples from one device: