1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Tweak model for access tokens

This commit is contained in:
Thomas Sileo
2022-07-10 12:06:16 +02:00
parent e8374de0c7
commit 43ef85038b
3 changed files with 2 additions and 3 deletions

View File

@ -65,7 +65,6 @@ async def verify_signature(
key_id = doc["signature"]["creator"]
key = await _get_public_key(db_session, key_id)
print(key)
to_be_signed = _options_hash(doc) + _doc_hash(doc)
signature = doc["signature"]["signatureValue"]
signer = PKCS1_v1_5.new(key.pubkey or key.privkey) # type: ignore