From 8a446c082d5d8c51a16f9dd1a25b7dcf636b3549 Mon Sep 17 00:00:00 2001 From: huangzhiran <30522704+huangzhiran@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:53:01 +0800 Subject: [PATCH] change publick recover logic, use hex (#41) --- api/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/http.go b/api/http.go index 15e2289..8ebd9b2 100644 --- a/api/http.go +++ b/api/http.go @@ -209,11 +209,11 @@ func (s *httpServer) owner(sigStr string, o any) (common.Address, error) { } h := crypto.Keccak256Hash(reqJson) - if a, err := s.recoverOwner(sigStr+"27", h); err == nil { + if a, err := s.recoverOwner(sigStr+"1b", h); err == nil { slog.Info("recover owner with 27 success") return a, nil } - return s.recoverOwner(sigStr+"28", h) + return s.recoverOwner(sigStr+"1c", h) } func (s *httpServer) recoverOwner(sigStr string, h common.Hash) (common.Address, error) {