summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-09-20 17:46:35 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-09-20 17:46:35 -0700
commit88270f9fe48149fb382441466575dbb40744d06d (patch)
tree2687af10fbee5f4b412efe96ca7be12e5c317c67
parentAdd temporary logging (diff)
downloadroseh.moe-88270f9fe48149fb382441466575dbb40744d06d.tar.zst
idk
-rw-r--r--roseh.moe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/roseh.moe.go b/roseh.moe.go
index 8c5a967..b785ec6 100644
--- a/roseh.moe.go
+++ b/roseh.moe.go
@@ -162,7 +162,7 @@ func checkCookie(w http.ResponseWriter, r *http.Request) bool {
return false
}
msg, sig := bytes[:len(bytes)-ed25519.SignatureSize], bytes[len(bytes)-ed25519.SignatureSize:]
- if !ed25519.Verify(publicKey, msg, sig) {
+ if !ed25519.Verify(privateKey.Public().(ed25519.PublicKey), msg, sig) {
fmt.Printf("bad sig\n")
return false
}