rust-p2p / s-kademlia

Implementation of the s/kademlia protocol
9 stars 2 forks source link

rpc #2

Closed 4meta5 closed 5 years ago

4meta5 commented 5 years ago

Section 4.1 references how strong signatures are robust against replay attacks with nonces inside the RPC messages.

@dvc94ch you've built rpc stuff before, where should this live and what should this look like?

dvc94ch commented 5 years ago

this is handled by the transport layer. we have a set of hard coded bootstrap nodes and their public key. the transport layer starts with a handshake to authenticate the bootstrap node and establish a session key. the discovery of new nodes includes both their public key and their address/port. I think you can just assume for now that the transport is encrypted and replay proof.

4meta5 commented 5 years ago

ok, will make that assumption