Make a KeyPair dataclass for passing around key pairs

This commit is contained in:
Alex Stokes
2019-08-13 20:23:07 -07:00
parent 329bd4eb0f
commit ad20d8cb00
5 changed files with 17 additions and 14 deletions

View File

@ -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