diff --git a/api/s5/http.go b/api/s5/http.go index a0063a4..94d9add 100644 --- a/api/s5/http.go +++ b/api/s5/http.go @@ -297,7 +297,7 @@ func (h *HttpHandler) AccountRegister(jc jape.Context) { return } - if !ed25519.Verify(decodedKey, decodedChallenge, decodedSignature) { + if !ed25519.Verify(decodedKey[1:], decodedChallenge, decodedSignature) { errored(errInvalidSignatureErr) return } @@ -468,7 +468,7 @@ func (h *HttpHandler) AccountLogin(jc jape.Context) { return } - if !ed25519.Verify(decodedKey, decodedChallenge, decodedSignature) { + if !ed25519.Verify(decodedKey[1:], decodedChallenge, decodedSignature) { errored(errInvalidSignatureErr) return }