From 5d8506fa304c1d878386cd0f6a71a1d861239d57 Mon Sep 17 00:00:00 2001 From: Oleh Nikolaiev Date: Tue, 22 Feb 2022 16:48:03 +0200 Subject: [PATCH] fix signing bls messages --- SGXWalletServer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/SGXWalletServer.cpp b/SGXWalletServer.cpp index d42ce0b8..7e23ba11 100644 --- a/SGXWalletServer.cpp +++ b/SGXWalletServer.cpp @@ -316,9 +316,6 @@ SGXWalletServer::blsSignMessageHashImpl(const string &_keyShareName, const strin if (hashTmp[0] == '0' && (hashTmp[1] == 'x' || hashTmp[1] == 'X')) { hashTmp.erase(hashTmp.begin(), hashTmp.begin() + 2); } - while (hashTmp[0] == '0') { - hashTmp.erase(hashTmp.begin(), hashTmp.begin() + 1); - } if (!checkHex(hashTmp)) { throw SGXException(INVALID_BLS_HEX, string(__FUNCTION__) + ":Invalid bls hex");