diff --git a/trezorlib/cosi.py b/trezorlib/cosi.py index 03f7521483..b1a5cfcf85 100644 --- a/trezorlib/cosi.py +++ b/trezorlib/cosi.py @@ -30,6 +30,10 @@ def verify(signature, digest, pub_key): _ed25519.checkvalid(signature, digest, pub_key) +def pubkey_from_privkey(privkey): + return _ed25519.publickey(privkey) + + def sign_with_privkey(digest, privkey, global_pubkey, nonce, global_commit): h = _ed25519.H(privkey) b = _ed25519.b