aboutsummaryrefslogtreecommitdiffstats
path: root/api-conventions.md
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-04-06 13:25:59 -0400
committerDrew DeVault <sir@cmpwn.com>2019-04-06 13:25:59 -0400
commita5fb4e2ec21ed4647cf7bacd39b3081027569fb9 (patch)
tree4093362453c59c630d658995bfd02f8b25cb76fa /api-conventions.md
parentcee3f533f4ab4ea8848afa4f6c0b4b87a8505e3e (diff)
downloadsr.ht-docs-a5fb4e2ec21ed4647cf7bacd39b3081027569fb9.tar.gz
Fix example code for signature verification
Diffstat (limited to 'api-conventions.md')
-rw-r--r--api-conventions.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/api-conventions.md b/api-conventions.md
index e44b446..f58b51d 100644
--- a/api-conventions.md
+++ b/api-conventions.md
@@ -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)
```