mirror of https://github.com/nucypher/nucypher.git
Verify method described in #99.
parent
a10bdccc12
commit
2d321f230d
|
@ -0,0 +1,6 @@
|
|||
from nkms.crypto import api
|
||||
|
||||
def verify(signature, message, pubkey):
|
||||
msg_digest = api.keccak_digest(message)
|
||||
ecdsa_sig = api.ecdsa_load_sig(signature)
|
||||
return api.ecdsa_verify(*ecdsa_sig, msg_digest, pubkey)
|
Loading…
Reference in New Issue