diff options
Diffstat (limited to 'roseh.moe.go')
| -rw-r--r-- | roseh.moe.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roseh.moe.go b/roseh.moe.go index b785ec6..8c5a967 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(privateKey.Public().(ed25519.PublicKey), msg, sig) { + if !ed25519.Verify(publicKey, msg, sig) { fmt.Printf("bad sig\n") return false } |
