mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-04-07 06:21:27 +00:00
Make a KeyPair dataclass for passing around key pairs
This commit is contained in:
@ -34,7 +34,8 @@ async def cleanup_done_tasks() -> None:
|
||||
|
||||
|
||||
def generate_peer_id_from_rsa_identity() -> ID:
|
||||
_, new_public_key = create_new_key_pair()
|
||||
new_key_pair = create_new_key_pair()
|
||||
new_public_key = new_key_pair.public_key
|
||||
new_id = ID.from_pubkey(new_public_key)
|
||||
return new_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user