Skip to content

reevaluate hilbert curve id assignment #29

@slugalisk

Description

@slugalisk

In the js version we prefixed KAD IDs with the lat/lng of the user's geolocation on a Hilbert Curve... This meant that peer routing decisions and peer suggestions would tend to return peers that were geographically close to the target which could improve cold start performance...

The risk (outlined in BEP 42) is that allowing peers to arbitrarily pick IDs enables sybil attacks where malicious users block access to a parts of the network by filling the surrounding addresses with uncooperative hosts.

  • does this actually improve performance?
  • is there any way to mitigate the risk and if not can it be selectively enabled for networks of trusted peers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions