holepunchto / hyperdht

The DHT powering Hyperswarm
https://docs.holepunch.to
MIT License
323 stars 46 forks source link

Breaking Feature: add opaque userData message to peer records #128

Closed Nuhvi closed 1 year ago

Nuhvi commented 1 year ago

closes #127

TLDR: adding userData to peer encoding will enable similar use cases to mutablePut but with two main differences: 1 - Peers can advertise capability tokens/attestations they hold vs an ACL like in Seeders swarm 2 - Advertised data in peer.userData can use any application-specific schemas or be signed by any crypto without coupling Hyperswarm with such details.