BLSSignReqMessage.cpp 462 Bytes
Newer Older
kladko's avatar
kladko committed
1 2 3 4 5
//
// Created by kladko on 15.12.20.
//

#include "BLSSignReqMessage.h"
kladko's avatar
kladko committed
6 7 8 9
#include "SGXWalletServer.hpp"


Json::Value BLSSignReqMessage::process() {
kladko's avatar
kladko committed
10 11
    auto keyName = getStringRapid("keyShareName");
    auto hash = getStringRapid("messageHash");
kladko's avatar
kladko committed
12 13
    auto t = getUint64Rapid("t");
    auto n = getUint64Rapid("n");
Stan Kladko's avatar
Stan Kladko committed
14 15 16
    auto result =  SGXWalletServer::blsSignMessageHashImpl(keyName, hash, t, n);
    result["type"] = ZMQMessage::BLS_SIGN_RSP;
    return result;
kladko's avatar
kladko committed
17
}