robosats/api
Reckless_Satoshi 9e442c386a
fix verify_signed_message (#1371)
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.

Co-authored-by: jerryfletcher21 <jerryfletcher@cock.email>
2024-10-19 18:04:50 +02:00
..
lightning Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
management/commands Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
migrations Fix Successful typo 2024-08-22 10:32:02 +02:00
models Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
nick_generator fix linter remove unused imports and variables (#1375) 2024-09-09 00:53:11 +00:00
tests Add tests for onchain address, pgp sign verification. Improve Dockerfile 2023-11-17 13:02:30 +00:00
__init__.py Create api django app 2022-01-01 14:13:27 -08:00
admin.py Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
apps.py Re-format all python code 2022-02-17 11:50:10 -08:00
logics.py Add node alias to invoice description 2024-10-18 22:43:48 +02:00
nostr.py Add extra tags to nostr 2024-09-16 12:11:56 +02:00
notifications.py Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
oas_schemas.py Fix Successful typo 2024-08-22 10:32:02 +02:00
serializers.py Include created_at 2024-07-09 21:50:48 +02:00
tasks.py Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
urls.py Feat: add notifications api endpoint (#1347) 2024-06-27 16:47:23 +00:00
utils.py fix verify_signed_message (#1371) 2024-10-19 18:04:50 +02:00
views.py Fix endpoint fields 2024-07-09 21:39:15 +02:00