Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
bcbfbccf
Unverified
Commit
bcbfbccf
authored
Sep 08, 2019
by
kladkogex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qFixed
parent
c485fc72
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
45 deletions
+83
-45
SGXWalletServer.cpp
SGXWalletServer.cpp
+32
-15
abstractstubserver.h
abstractstubserver.h
+10
-10
spec.json
spec.json
+26
-5
stubclient.h
stubclient.h
+15
-15
No files found.
SGXWalletServer.cpp
View file @
bcbfbccf
...
@@ -41,11 +41,11 @@ public:
...
@@ -41,11 +41,11 @@ public:
virtual
Json
::
Value
buildObject
(
const
std
::
string
&
name
,
int
age
);
virtual
Json
::
Value
buildObject
(
const
std
::
string
&
name
,
int
age
);
virtual
std
::
string
methodWithoutParameters
();
virtual
std
::
string
methodWithoutParameters
();
virtual
std
::
string
importBLSKeyShare
(
int
index
,
const
std
::
string
&
keyShare
,
const
std
::
string
&
keyShareName
,
int
n
,
int
t
);
virtual
Json
::
Value
importBLSKeyShare
(
int
index
,
const
std
::
string
&
keyShare
,
const
std
::
string
&
keyShareName
,
int
n
,
int
t
);
virtual
std
::
string
blsSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
);
virtual
Json
::
Value
blsSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
);
virtual
std
::
string
importECDSAKey
(
const
std
::
string
&
key
,
const
std
::
string
&
keyName
);
virtual
Json
::
Value
importECDSAKey
(
const
std
::
string
&
key
,
const
std
::
string
&
keyName
);
virtual
std
::
string
generateECDSAKey
(
const
std
::
string
&
keyName
);
virtual
Json
::
Value
generateECDSAKey
(
const
std
::
string
&
keyName
);
virtual
std
::
string
ecdsaSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
);
virtual
Json
::
Value
ecdsaSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
);
...
@@ -100,18 +100,35 @@ int init_server() {
...
@@ -100,18 +100,35 @@ int init_server() {
std
::
string
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
)
{
return
""
;
Json
::
Value
result
;
result
[
"name"
]
=
1
;
result
[
"year"
]
=
1
;
return
result
;
}
}
std
::
string
SGXWalletServer
::
blsSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
{
Json
::
Value
SGXWalletServer
::
blsSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
{
return
""
;
Json
::
Value
result
;
result
[
"name"
]
=
1
;
result
[
"year"
]
=
1
;
return
result
;
}
}
std
::
string
SGXWalletServer
::
importECDSAKey
(
const
std
::
string
&
key
,
const
std
::
string
&
keyName
)
{
return
""
;
Json
::
Value
SGXWalletServer
::
importECDSAKey
(
const
std
::
string
&
key
,
const
std
::
string
&
keyName
)
{
Json
::
Value
result
;
result
[
"name"
]
=
1
;
result
[
"year"
]
=
1
;
return
result
;
}
}
std
::
string
SGXWalletServer
::
generateECDSAKey
(
const
std
::
string
&
keyName
)
{
return
""
;
Json
::
Value
SGXWalletServer
::
generateECDSAKey
(
const
std
::
string
&
keyName
)
{
Json
::
Value
result
;
result
[
"name"
]
=
1
;
result
[
"year"
]
=
1
;
return
result
;
}
}
std
::
string
SGXWalletServer
::
ecdsaSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
{
Json
::
Value
SGXWalletServer
::
ecdsaSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
{
return
""
;
Json
::
Value
result
;
result
[
"name"
]
=
1
;
result
[
"year"
]
=
1
;
return
result
;
}
}
abstractstubserver.h
View file @
bcbfbccf
...
@@ -12,11 +12,11 @@ class AbstractStubServer : public jsonrpc::AbstractServer<AbstractStubServer>
...
@@ -12,11 +12,11 @@ class AbstractStubServer : public jsonrpc::AbstractServer<AbstractStubServer>
public
:
public
:
AbstractStubServer
(
jsonrpc
::
AbstractServerConnector
&
conn
,
jsonrpc
::
serverVersion_t
type
=
jsonrpc
::
JSONRPC_SERVER_V2
)
:
jsonrpc
::
AbstractServer
<
AbstractStubServer
>
(
conn
,
type
)
AbstractStubServer
(
jsonrpc
::
AbstractServerConnector
&
conn
,
jsonrpc
::
serverVersion_t
type
=
jsonrpc
::
JSONRPC_SERVER_V2
)
:
jsonrpc
::
AbstractServer
<
AbstractStubServer
>
(
conn
,
type
)
{
{
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"importBLSKeyShare"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
STRING
,
"index"
,
jsonrpc
::
JSON_INTEGER
,
"keyShare"
,
jsonrpc
::
JSON_STRING
,
"keyShareName"
,
jsonrpc
::
JSON_STRING
,
"n"
,
jsonrpc
::
JSON_INTEGER
,
"t"
,
jsonrpc
::
JSON_INTEGER
,
NULL
),
&
AbstractStubServer
::
importBLSKeyShareI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"importBLSKeyShare"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
OBJECT
,
"index"
,
jsonrpc
::
JSON_INTEGER
,
"keyShare"
,
jsonrpc
::
JSON_STRING
,
"keyShareName"
,
jsonrpc
::
JSON_STRING
,
"n"
,
jsonrpc
::
JSON_INTEGER
,
"t"
,
jsonrpc
::
JSON_INTEGER
,
NULL
),
&
AbstractStubServer
::
importBLSKeyShareI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"blsSignMessageHash"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
STRING
,
"keyShareName"
,
jsonrpc
::
JSON_STRING
,
"messageHash"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
blsSignMessageHashI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"blsSignMessageHash"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
OBJECT
,
"keyShareName"
,
jsonrpc
::
JSON_STRING
,
"messageHash"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
blsSignMessageHashI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"importECDSAKey"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
STRING
,
"key"
,
jsonrpc
::
JSON_STRING
,
"keyName"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
importECDSAKeyI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"importECDSAKey"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
OBJECT
,
"key"
,
jsonrpc
::
JSON_STRING
,
"keyName"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
importECDSAKeyI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"generateECDSAKey"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
STRING
,
"keyName"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
generateECDSAKeyI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"generateECDSAKey"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
OBJECT
,
"keyName"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
generateECDSAKeyI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"ecdsaSignMessageHash"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
STRING
,
"keyShareName"
,
jsonrpc
::
JSON_STRING
,
"messageHash"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
ecdsaSignMessageHashI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"ecdsaSignMessageHash"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_
OBJECT
,
"keyShareName"
,
jsonrpc
::
JSON_STRING
,
"messageHash"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
ecdsaSignMessageHashI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"sayHello"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_STRING
,
"name"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
sayHelloI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"sayHello"
,
jsonrpc
::
PARAMS_BY_NAME
,
jsonrpc
::
JSON_STRING
,
"name"
,
jsonrpc
::
JSON_STRING
,
NULL
),
&
AbstractStubServer
::
sayHelloI
);
this
->
bindAndAddNotification
(
jsonrpc
::
Procedure
(
"notifyServer"
,
jsonrpc
::
PARAMS_BY_NAME
,
NULL
),
&
AbstractStubServer
::
notifyServerI
);
this
->
bindAndAddNotification
(
jsonrpc
::
Procedure
(
"notifyServer"
,
jsonrpc
::
PARAMS_BY_NAME
,
NULL
),
&
AbstractStubServer
::
notifyServerI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"addNumbers"
,
jsonrpc
::
PARAMS_BY_POSITION
,
jsonrpc
::
JSON_INTEGER
,
"param1"
,
jsonrpc
::
JSON_INTEGER
,
"param2"
,
jsonrpc
::
JSON_INTEGER
,
NULL
),
&
AbstractStubServer
::
addNumbersI
);
this
->
bindAndAddMethod
(
jsonrpc
::
Procedure
(
"addNumbers"
,
jsonrpc
::
PARAMS_BY_POSITION
,
jsonrpc
::
JSON_INTEGER
,
"param1"
,
jsonrpc
::
JSON_INTEGER
,
"param2"
,
jsonrpc
::
JSON_INTEGER
,
NULL
),
&
AbstractStubServer
::
addNumbersI
);
...
@@ -76,11 +76,11 @@ class AbstractStubServer : public jsonrpc::AbstractServer<AbstractStubServer>
...
@@ -76,11 +76,11 @@ class AbstractStubServer : public jsonrpc::AbstractServer<AbstractStubServer>
(
void
)
request
;
(
void
)
request
;
response
=
this
->
methodWithoutParameters
();
response
=
this
->
methodWithoutParameters
();
}
}
virtual
std
::
string
importBLSKeyShare
(
int
index
,
const
std
::
string
&
keyShare
,
const
std
::
string
&
keyShareName
,
int
n
,
int
t
)
=
0
;
virtual
Json
::
Value
importBLSKeyShare
(
int
index
,
const
std
::
string
&
keyShare
,
const
std
::
string
&
keyShareName
,
int
n
,
int
t
)
=
0
;
virtual
std
::
string
blsSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
=
0
;
virtual
Json
::
Value
blsSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
=
0
;
virtual
std
::
string
importECDSAKey
(
const
std
::
string
&
key
,
const
std
::
string
&
keyName
)
=
0
;
virtual
Json
::
Value
importECDSAKey
(
const
std
::
string
&
key
,
const
std
::
string
&
keyName
)
=
0
;
virtual
std
::
string
generateECDSAKey
(
const
std
::
string
&
keyName
)
=
0
;
virtual
Json
::
Value
generateECDSAKey
(
const
std
::
string
&
keyName
)
=
0
;
virtual
std
::
string
ecdsaSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
=
0
;
virtual
Json
::
Value
ecdsaSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
=
0
;
virtual
std
::
string
sayHello
(
const
std
::
string
&
name
)
=
0
;
virtual
std
::
string
sayHello
(
const
std
::
string
&
name
)
=
0
;
virtual
void
notifyServer
()
=
0
;
virtual
void
notifyServer
()
=
0
;
virtual
int
addNumbers
(
int
param1
,
int
param2
)
=
0
;
virtual
int
addNumbers
(
int
param1
,
int
param2
)
=
0
;
...
...
spec.json
View file @
bcbfbccf
...
@@ -8,7 +8,11 @@
...
@@ -8,7 +8,11 @@
"index"
:
2
,
"index"
:
2
,
"keyShare"
:
"1122334455"
"keyShare"
:
"1122334455"
},
},
"returns"
:
"encryptedKeyShare"
"returns"
:
{
"status"
:
0
,
"errorMessage"
:
"12345"
,
"encryptedKeyShare"
:
"12345"
}
},
},
{
{
...
@@ -17,7 +21,12 @@
...
@@ -17,7 +21,12 @@
"keyShareName"
:
"key1"
,
"keyShareName"
:
"key1"
,
"messageHash"
:
"1122334455"
"messageHash"
:
"1122334455"
},
},
"returns"
:
"blsSignatureShare"
"returns"
:
{
"status"
:
0
,
"errorMessage"
:
"12345"
,
"blsSignatureShare"
:
"12345"
}
},
},
{
{
...
@@ -26,7 +35,11 @@
...
@@ -26,7 +35,11 @@
"keyName"
:
"key1"
,
"keyName"
:
"key1"
,
"key"
:
"1122334455"
"key"
:
"1122334455"
},
},
"returns"
:
"encryptedKey"
"returns"
:
{
"status"
:
0
,
"errorMessage"
:
"12345"
,
"encryptedKey"
:
"12345"
}
},
},
...
@@ -35,7 +48,11 @@
...
@@ -35,7 +48,11 @@
"params"
:
{
"params"
:
{
"keyName"
:
"key1"
"keyName"
:
"key1"
},
},
"returns"
:
"encryptedKey"
"returns"
:
{
"status"
:
0
,
"errorMessage"
:
"12345"
,
"encryptedKey"
:
"12345"
}
},
},
...
@@ -46,7 +63,11 @@
...
@@ -46,7 +63,11 @@
"keyShareName"
:
"key1"
,
"keyShareName"
:
"key1"
,
"messageHash"
:
"1122334455"
"messageHash"
:
"1122334455"
},
},
"returns"
:
"ecdsaSignature"
"returns"
:
{
"status"
:
0
,
"errorMessage"
:
"12345"
,
"ecdsaSignature"
:
"12345"
}
},
},
...
...
stubclient.h
View file @
bcbfbccf
...
@@ -12,7 +12,7 @@ class StubClient : public jsonrpc::Client
...
@@ -12,7 +12,7 @@ class StubClient : public jsonrpc::Client
public
:
public
:
StubClient
(
jsonrpc
::
IClientConnector
&
conn
,
jsonrpc
::
clientVersion_t
type
=
jsonrpc
::
JSONRPC_CLIENT_V2
)
:
jsonrpc
::
Client
(
conn
,
type
)
{}
StubClient
(
jsonrpc
::
IClientConnector
&
conn
,
jsonrpc
::
clientVersion_t
type
=
jsonrpc
::
JSONRPC_CLIENT_V2
)
:
jsonrpc
::
Client
(
conn
,
type
)
{}
std
::
string
importBLSKeyShare
(
int
index
,
const
std
::
string
&
keyShare
,
const
std
::
string
&
keyShareName
,
int
n
,
int
t
)
throw
(
jsonrpc
::
JsonRpcException
)
Json
::
Value
importBLSKeyShare
(
int
index
,
const
std
::
string
&
keyShare
,
const
std
::
string
&
keyShareName
,
int
n
,
int
t
)
throw
(
jsonrpc
::
JsonRpcException
)
{
{
Json
::
Value
p
;
Json
::
Value
p
;
p
[
"index"
]
=
index
;
p
[
"index"
]
=
index
;
...
@@ -21,51 +21,51 @@ class StubClient : public jsonrpc::Client
...
@@ -21,51 +21,51 @@ class StubClient : public jsonrpc::Client
p
[
"n"
]
=
n
;
p
[
"n"
]
=
n
;
p
[
"t"
]
=
t
;
p
[
"t"
]
=
t
;
Json
::
Value
result
=
this
->
CallMethod
(
"importBLSKeyShare"
,
p
);
Json
::
Value
result
=
this
->
CallMethod
(
"importBLSKeyShare"
,
p
);
if
(
result
.
is
String
())
if
(
result
.
is
Object
())
return
result
.
asString
()
;
return
result
;
else
else
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
}
}
std
::
string
blsSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
throw
(
jsonrpc
::
JsonRpcException
)
Json
::
Value
blsSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
throw
(
jsonrpc
::
JsonRpcException
)
{
{
Json
::
Value
p
;
Json
::
Value
p
;
p
[
"keyShareName"
]
=
keyShareName
;
p
[
"keyShareName"
]
=
keyShareName
;
p
[
"messageHash"
]
=
messageHash
;
p
[
"messageHash"
]
=
messageHash
;
Json
::
Value
result
=
this
->
CallMethod
(
"blsSignMessageHash"
,
p
);
Json
::
Value
result
=
this
->
CallMethod
(
"blsSignMessageHash"
,
p
);
if
(
result
.
is
String
())
if
(
result
.
is
Object
())
return
result
.
asString
()
;
return
result
;
else
else
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
}
}
std
::
string
importECDSAKey
(
const
std
::
string
&
key
,
const
std
::
string
&
keyName
)
throw
(
jsonrpc
::
JsonRpcException
)
Json
::
Value
importECDSAKey
(
const
std
::
string
&
key
,
const
std
::
string
&
keyName
)
throw
(
jsonrpc
::
JsonRpcException
)
{
{
Json
::
Value
p
;
Json
::
Value
p
;
p
[
"key"
]
=
key
;
p
[
"key"
]
=
key
;
p
[
"keyName"
]
=
keyName
;
p
[
"keyName"
]
=
keyName
;
Json
::
Value
result
=
this
->
CallMethod
(
"importECDSAKey"
,
p
);
Json
::
Value
result
=
this
->
CallMethod
(
"importECDSAKey"
,
p
);
if
(
result
.
is
String
())
if
(
result
.
is
Object
())
return
result
.
asString
()
;
return
result
;
else
else
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
}
}
std
::
string
generateECDSAKey
(
const
std
::
string
&
keyName
)
throw
(
jsonrpc
::
JsonRpcException
)
Json
::
Value
generateECDSAKey
(
const
std
::
string
&
keyName
)
throw
(
jsonrpc
::
JsonRpcException
)
{
{
Json
::
Value
p
;
Json
::
Value
p
;
p
[
"keyName"
]
=
keyName
;
p
[
"keyName"
]
=
keyName
;
Json
::
Value
result
=
this
->
CallMethod
(
"generateECDSAKey"
,
p
);
Json
::
Value
result
=
this
->
CallMethod
(
"generateECDSAKey"
,
p
);
if
(
result
.
is
String
())
if
(
result
.
is
Object
())
return
result
.
asString
()
;
return
result
;
else
else
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
}
}
std
::
string
ecdsaSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
throw
(
jsonrpc
::
JsonRpcException
)
Json
::
Value
ecdsaSignMessageHash
(
const
std
::
string
&
keyShareName
,
const
std
::
string
&
messageHash
)
throw
(
jsonrpc
::
JsonRpcException
)
{
{
Json
::
Value
p
;
Json
::
Value
p
;
p
[
"keyShareName"
]
=
keyShareName
;
p
[
"keyShareName"
]
=
keyShareName
;
p
[
"messageHash"
]
=
messageHash
;
p
[
"messageHash"
]
=
messageHash
;
Json
::
Value
result
=
this
->
CallMethod
(
"ecdsaSignMessageHash"
,
p
);
Json
::
Value
result
=
this
->
CallMethod
(
"ecdsaSignMessageHash"
,
p
);
if
(
result
.
is
String
())
if
(
result
.
is
Object
())
return
result
.
asString
()
;
return
result
;
else
else
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
throw
jsonrpc
::
JsonRpcException
(
jsonrpc
::
Errors
::
ERROR_CLIENT_INVALID_RESPONSE
,
result
.
toStyledString
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment