mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-24 03:55:44 +00:00
cosi: publish "pubkey from privkey" operation from ed25519
This commit is contained in:
parent
886e269e2f
commit
2fdb5cd538
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user