BLSSignReqMessage.cpp 443 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 10 11 12 13
#include "SGXWalletServer.hpp"


Json::Value BLSSignReqMessage::process() {
    auto keyName = getStringRapid("kn");
    auto hash = getStringRapid("mh");
    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
}