From efbef35cb362f34964c93b8bb7df2847589e685f Mon Sep 17 00:00:00 2001 From: Oleh Nikolaiev Date: Mon, 21 Feb 2022 15:20:03 +0200 Subject: [PATCH] fix bls sign 0x --- SGXWalletServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SGXWalletServer.cpp b/SGXWalletServer.cpp index e47dfbcf..d42ce0b8 100644 --- a/SGXWalletServer.cpp +++ b/SGXWalletServer.cpp @@ -327,7 +327,7 @@ SGXWalletServer::blsSignMessageHashImpl(const string &_keyShareName, const strin value = readFromDb(_keyShareName); - if (!bls_sign(value->c_str(), _messageHash.c_str(), t, n, signature.data())) { + if (!bls_sign(value->c_str(), hashTmp.c_str(), t, n, signature.data())) { throw SGXException(COULD_NOT_BLS_SIGN, ":Could not bls sign data "); }