diff options
Diffstat (limited to 'api-conventions.md')
-rw-r--r-- | api-conventions.md | 2 |
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) ``` |