robosats/api
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
..
lightning Feat: fix CLN and reactivate cln integration tests (#1336) 2024-06-17 21:33:49 +00:00
management/commands Dev: replace isort, black, flake8 with ruff (#1057) 2024-01-09 01:22:50 +00:00
migrations Add currency Albanian LEK 2023-11-30 16:13:38 +00:00
models fix warnings DecimalField should be Decimal type (#1334) 2024-06-16 20:44:17 +00:00
nick_generator Fix comment out unused functionalities and add LND 0.17.2 to tests 2023-11-30 15:53:30 +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 Merge branch 'main' into perf/delete-backend-avatars 2024-06-16 22:53:51 +00:00
apps.py Re-format all python code 2022-02-17 11:50:10 -08:00
logics.py fix(coordinator): cannot update_or_create with relate named on django v5 (#1263) 2024-05-05 19:58:18 +00:00
notifications.py Fix coordinator chat env variable (#1232) 2024-04-20 14:36:21 +00:00
oas_schemas.py improve/update documentation in api/oas_schemas.py (#1244) 2024-04-29 23:12:40 +00:00
serializers.py add robot status "Seen Recently" where missing in the documentation (#1312) 2024-06-02 08:37:38 +00:00
tasks.py Merge branch 'main' into the-federation-layer-v0.6.0 2024-01-28 20:52:41 +00:00
urls.py Add testing against API specs with assertResponse 2023-11-14 13:54:51 +00:00
utils.py fix verify_signed_message 2024-06-26 19:07:14 +02:00
views.py Merge branch 'main' into perf/delete-backend-avatars 2024-06-16 22:53:51 +00:00