probe-lab / go-kademlia

Generic Go Kademlia implementation
Other
17 stars 4 forks source link

Generic key constraint #52

Closed dennis-tra closed 1 year ago

dennis-tra commented 1 year ago

This was just intended as a PoC that the kademlia key type can be enforced at the type level. I'm pleased that it works. However, it adds significant complexity. I'm also not sure if this solves a non-problem. TBD if we want to go with something like this or #51 .