Infineon / BlockchainSecurity2Go-Python-Library

Python library for the Blockchain Security 2Go starter kit
https://infineon.com/blockchain
MIT License
16 stars 8 forks source link

Add feature to verify signature #15

Closed DhruvKhemani closed 5 years ago

DhruvKhemani commented 5 years ago

verify_signature(key, hash, signature) This new command verifies the signature which is returned by gernerate_signature command. For this it uses the public key as it is returned by get_key_info and the hashed message in bytes.

If the verification was sucessful then the function returns a boolean which is True. If not, a InvalidSignature exception gets passed by the cryptography wrapper.