diff --git a/api/s5/http.go b/api/s5/http.go index 1f76856..cf84526 100644 --- a/api/s5/http.go +++ b/api/s5/http.go @@ -322,7 +322,7 @@ func (h *HttpHandler) AccountRegister(jc jape.Context) { return } - pubkeyExists, _ := h.portal.Accounts().PubkeyExists(request.Pubkey) + pubkeyExists, _ := h.portal.Accounts().PubkeyExists(hex.EncodeToString(decodedKey[1:])) if pubkeyExists { errored(errPubkeyAlreadyExists)