mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 22:50:54 +00:00
Make a KeyPair dataclass for passing around key pairs
This commit is contained in:
@ -89,7 +89,8 @@ def test_id_from_base58():
|
||||
|
||||
|
||||
def test_id_from_public_key():
|
||||
_, public_key = create_new_key_pair()
|
||||
key_pair = create_new_key_pair()
|
||||
public_key = key_pair.public_key
|
||||
|
||||
key_bin = public_key.serialize_to_protobuf().SerializeToString()
|
||||
algo = multihash.Func.sha2_256
|
||||
|
||||
Reference in New Issue
Block a user