From 224d7a636de9fd1aeb8e50f5121450d9cc16bfa7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 17 Jan 2024 08:47:58 -0500 Subject: [PATCH] fix: need to check the decoded public key in hex format --- api/s5/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)