summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}