Skip to content

Commit

Permalink
Merge pull request #383 from skalenetwork/bug/fix-0x-bls-sign
Browse files Browse the repository at this point in the history
fix signing bls messages
  • Loading branch information
kladkogex authored Feb 22, 2022
2 parents 513ec71 + 301f585 commit 188bf20
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions SGXWalletServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 188bf20

Please sign in to comment.