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
66fc7fba
Unverified
Commit
66fc7fba
authored
Nov 12, 2019
by
svetaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-1779 Fix read from db
parent
8a1e5032
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SGXWalletServer.cpp
SGXWalletServer.cpp
+2
-2
No files found.
SGXWalletServer.cpp
View file @
66fc7fba
...
...
@@ -233,7 +233,7 @@ Json::Value ecdsaSignMessageHashImpl(int base, const std::string &_keyName, cons
}
std
::
cerr
<<
"Hash handled "
<<
cutHash
<<
std
::
endl
;
try
{
std
::
shared_ptr
<
std
::
string
>
key_ptr
=
read
ECDSAKey
(
_keyName
);
std
::
shared_ptr
<
std
::
string
>
key_ptr
=
read
FromDb
(
_keyName
,
""
);
// std::cerr << "read encr key" << *key_ptr << std::endl;
sign_vect
=
ecdsa_sign_hash
(
key_ptr
->
c_str
(),
cutHash
.
c_str
(),
base
);
}
catch
(
RPCException
&
_e
)
{
...
...
@@ -261,7 +261,7 @@ Json::Value getPublicECDSAKeyImpl(const std::string& keyName){
std
::
string
Pkey
;
try
{
std
::
shared_ptr
<
std
::
string
>
key_ptr
=
read
ECDSAKey
(
keyName
);
std
::
shared_ptr
<
std
::
string
>
key_ptr
=
read
FromDb
(
keyName
,
""
);
Pkey
=
get_ecdsa_pubkey
(
key_ptr
->
c_str
());
}
catch
(
RPCException
&
_e
)
{
result
[
"status"
]
=
_e
.
status
;
...
...
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