Skip to content

Full node id in DB, export and online export#1

Open
palachzzz wants to merge 4 commits intomintylinux:mainfrom
palachzzz:full_node_id
Open

Full node id in DB, export and online export#1
palachzzz wants to merge 4 commits intomintylinux:mainfrom
palachzzz:full_node_id

Conversation

@palachzzz
Copy link
Copy Markdown

Hello,
Recenly we faced with situation that 4 byte is not enough for online services to distinguish Repeater nodes.
It is clear that 4-byte provides a lot of unique numbers actually 4294967296. But due to existing of
https://github.com/agessaman/meshcore-keygen people are choosing some beauty numbers for their repeaters, like 00000000, 77777777, 34343434 and etc. As it is relatively fast to generate 4-byte pub key buy request, it takes several hours on modern PC.
So to avoid such collisions, I made this PR and some changes, which stores full NodeID and send it full to online services and in JSON export (and probably other types of export).
The code is actually ready to use full node id. Maybe it is even better to add additional field "shortNodeID" and "fullNodeID" to ping result, but as for now I decided to make it less intrusive.
So it still shows 4 bytes in App UI, but internally it is 32 bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant