Finished json-rpc defs

parent bcbfbccf
...@@ -102,33 +102,37 @@ int init_server() { ...@@ -102,33 +102,37 @@ int init_server() {
Json::Value SGXWalletServer::importBLSKeyShare(int index, const std::string& keyShare, const std::string& keyShareName, int n, int t) { Json::Value SGXWalletServer::importBLSKeyShare(int index, const std::string& keyShare, const std::string& keyShareName, int n, int t) {
Json::Value result; Json::Value result;
result["name"] = 1; result["status"] = 0;
result["year"] = 1; result["errorMessage"] = "";
result["encryptedKeyShare"] = "";
return result; return result;
} }
Json::Value SGXWalletServer::blsSignMessageHash(const std::string& keyShareName, const std::string& messageHash) { Json::Value SGXWalletServer::blsSignMessageHash(const std::string& keyShareName, const std::string& messageHash) {
Json::Value result; Json::Value result;
result["name"] = 1; result["status"] = 0;
result["year"] = 1; result["errorMessage"] = "";
result["signatureShare"] = "";
return result; return result;
} }
Json::Value SGXWalletServer::importECDSAKey(const std::string& key, const std::string& keyName) { Json::Value SGXWalletServer::importECDSAKey(const std::string& key, const std::string& keyName) {
Json::Value result; Json::Value result;
result["name"] = 1; result["status"] = 0;
result["year"] = 1; result["errorMessage"] = "";
result["encryptedKey"] = "";
return result; return result;
} }
Json::Value SGXWalletServer::generateECDSAKey(const std::string& keyName) { Json::Value SGXWalletServer::generateECDSAKey(const std::string& keyName) {
Json::Value result; Json::Value result;
result["name"] = 1; result["status"] = 0;
result["year"] = 1; result["errorMessage"] = "";
return result; result["encryptedKey"] = "";
} }
Json::Value SGXWalletServer::ecdsaSignMessageHash(const std::string& keyShareName, const std::string& messageHash) { Json::Value SGXWalletServer::ecdsaSignMessageHash(const std::string& keyShareName, const std::string& messageHash) {
Json::Value result; Json::Value result;
result["name"] = 1; result["status"] = 0;
result["year"] = 1; result["errorMessage"] = "";
result["signature"] = "";
return result; return result;
} }
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"returns": { "returns": {
"status": 0, "status": 0,
"errorMessage": "12345", "errorMessage": "12345",
"blsSignatureShare": "12345" "signatureShare": "12345"
} }
}, },
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"returns": { "returns": {
"status": 0, "status": 0,
"errorMessage": "12345", "errorMessage": "12345",
"ecdsaSignature": "12345" "signature": "12345"
} }
}, },
......
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