Commit Graph

5 Commits

Author SHA1 Message Date
jerryfletcher21
20d56bdb6f
fix verify_signed_message
verify_signed_message was not checking for the validity of the
signature. The documentation of python-gnupg is not clear about this, it
says that the fiels are set just if the signature is valid.
In this case tests/robots/1/signed_message was signed with the correct
key but with the wrong digest-algo (SHA256 instead of SHA512) as
expressed on the signature.
Running gpg --verify tests/robots/1/signed_message returned:
gpg: WARNING: signature digest conflict in message
gpg: Can't check signature: General error
and a non zero error code, but verify_signed_message was not catching
this because verified.fingerprint was set even though verified.valid was
False.
2024-06-26 19:07:14 +02:00
Reckless_Satoshi
3e0d451e97 Add tests for onchain address, pgp sign verification. Improve Dockerfile 2023-11-17 13:02:30 +00:00
Reckless_Satoshi
4270f2d0a2 Add LND mock up classes 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
8808ee85ae
Add order creation tests 2023-11-06 19:35:35 +00:00
Reckless_Satoshi
051c78ab9b
Add robot creation tests 2023-11-06 14:18:37 +00:00