You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handleFindPeer and handleGetProviders as in v1. Both take requests as the arguments, which include the key. Hopefully, through Normalization #8 we would've developed private versions of the requests. These methods call closerPeers which is also implemented in the same file.
closerPeers: It internally calls d.rt.NearestNodes which again, we would've implemented privately (without the key).
Client-side:
v2/routing.go: Implements FindPeer and FindProvidersAsync methods. (Sidenote: interfaces includes these two methods are defined in the Go LibP2P core repo.) Both methods run d.kad.Query with the key as an argument and a function fn to check whether the node in the last hop has the correct CID.
DHT co-ordinator Query method: It looks up its own RT for the closest nodes and then currently, sends in a fake PB message with the key. So we need a private implementation of the Query method which does not send the key in the PB message (PIR request).
The text was updated successfully, but these errors were encountered:
For integration: refer to the Go LibP2P Kad DHT v2-develop branch
rt
and a DHT co-ordinator namedkad
.Query
function is also called on the client-side.Server-side: v2/handlers.go:
handleFindPeer
andhandleGetProviders
as in v1. Both take requests as the arguments, which include the key. Hopefully, through Normalization #8 we would've developed private versions of the requests. These methods callcloserPeers
which is also implemented in the same file.closerPeers
: It internally callsd.rt.NearestNodes
which again, we would've implemented privately (without the key).Client-side:
FindPeer
andFindProvidersAsync
methods. (Sidenote: interfaces includes these two methods are defined in the Go LibP2P core repo.) Both methods rund.kad.Query
with the key as an argument and a functionfn
to check whether the node in the last hop has the correct CID.Query
method which does not send the key in the PB message (PIR request).The text was updated successfully, but these errors were encountered: