fix signing bls messages

parent efbef35c
...@@ -316,9 +316,6 @@ SGXWalletServer::blsSignMessageHashImpl(const string &_keyShareName, const strin ...@@ -316,9 +316,6 @@ SGXWalletServer::blsSignMessageHashImpl(const string &_keyShareName, const strin
if (hashTmp[0] == '0' && (hashTmp[1] == 'x' || hashTmp[1] == 'X')) { if (hashTmp[0] == '0' && (hashTmp[1] == 'x' || hashTmp[1] == 'X')) {
hashTmp.erase(hashTmp.begin(), hashTmp.begin() + 2); hashTmp.erase(hashTmp.begin(), hashTmp.begin() + 2);
} }
while (hashTmp[0] == '0') {
hashTmp.erase(hashTmp.begin(), hashTmp.begin() + 1);
}
if (!checkHex(hashTmp)) { if (!checkHex(hashTmp)) {
throw SGXException(INVALID_BLS_HEX, string(__FUNCTION__) + ":Invalid bls hex"); throw SGXException(INVALID_BLS_HEX, string(__FUNCTION__) + ":Invalid bls hex");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment