mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-22 07:31:20 +00:00
* No longer panic when updating self peer ID in kbuckets * Minor code improvement in flush() * Small improvement to handle_find_node_req * expected_pongs no longer mut * Clean up KadServerInterface trait * find_node() returns an impl Future * Rework kad_server's API to remove the interface * Remove the error mapping in kad_bistream.split() * Use a name type in protocol.rs * respond() now takes an iter of Peers + add tests * Use concrete Future type in kad_server upgrade * Let the high level code decide the TTL of the addrs * Replace QueryInterface::send with find_node_rpc * Replace KademliaProcessingFuture with KademliaPeerReqStream * requested_peers() now returns an iter * gen_random_id() only requires &PeerId * Remove QueryInterface and return stream of events * Remove add_peer_addrs from query * Remove the peer_store and record_store params * Tweak multiaddresses reportin * Remove dependency on peerstore * Fix tests
How the keys were generated
The keys used in the examples were generated like this:
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -outform DER -pubout -out public.der
openssl pkcs8 -in private.pem -topk8 -nocrypt -out private.pk8
rm private.pem # optional