~sircmpwn/sr.ht-docs

a5fb4e2ec21ed4647cf7bacd39b3081027569fb9 — Drew DeVault 2 years ago cee3f53
Fix example code for signature verification
1 files changed, 1 insertions(+), 1 deletions(-)

M api-conventions.md
M api-conventions.md => api-conventions.md +1 -1
@@ 198,7 198,7 @@ public_key = Ed25519PublicKey.from_public_bytes(
payload = request.data
signature = headers["X-Payload-Signature"]
signature = base64.b64decode(signature)
nonce = headers["X-Payload-Signature"].encode()
nonce = headers["X-Payload-Nonce"].encode()

public_key.verify(signature, payload + nonce)
```