mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Clean up key gen
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import asyncio
|
||||
from contextlib import suppress
|
||||
|
||||
from Crypto.PublicKey import RSA
|
||||
import multiaddr
|
||||
|
||||
from libp2p import new_node
|
||||
@ -54,8 +53,3 @@ async def perform_two_host_set_up_custom_handler(handler):
|
||||
# Associate the peer with local ip address (see default parameters of Libp2p())
|
||||
node_a.get_peerstore().add_addrs(node_b.get_id(), node_b.get_addrs(), 10)
|
||||
return node_a, node_b
|
||||
|
||||
|
||||
def generate_new_private_key():
|
||||
new_key = RSA.generate(2048, e=65537)
|
||||
return new_key
|
||||
|
||||
Reference in New Issue
Block a user