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
61ce445b
Unverified
Commit
61ce445b
authored
4 years ago
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug/SKALE-3751-enable-zeromq
parent
5bf09563
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
ZMQMessage.cpp
ZMQMessage.cpp
+12
-0
ZMQMessage.h
ZMQMessage.h
+1
-0
No files found.
ZMQMessage.cpp
View file @
61ce445b
...
...
@@ -70,6 +70,18 @@ shared_ptr <ZMQMessage> ZMQMessage::parse(const char* _msg,
CHECK_STATE
((
*
d
)[
"type"
].
IsString
());
string
type
=
(
*
d
)[
"type"
].
GetString
();
if
(
d
->
HasMember
(
"cert"
))
{
CHECK_STATE
((
*
d
)[
"cert"
].
IsString
());
auto
cert
=
make_shared
<
string
>
((
*
d
)[
"cert"
].
GetString
());
cerr
<<
"Got cert:"
<<
cert
<<
endl
;
}
if
(
d
->
HasMember
(
"msgSig"
))
{
CHECK_STATE
((
*
d
)[
"msgSig"
].
IsString
());
auto
msgSig
=
make_shared
<
string
>
((
*
d
)[
"msgSig"
].
GetString
());
cerr
<<
"Got msgSig:"
<<
msgSig
<<
endl
;
}
shared_ptr
<
ZMQMessage
>
result
;
...
...
This diff is collapsed.
Click to expand it.
ZMQMessage.h
View file @
61ce445b
...
...
@@ -43,6 +43,7 @@ protected:
public
:
void
verifySig
();
static
constexpr
const
char
*
BLS_SIGN_REQ
=
"BLSSignReq"
;
static
constexpr
const
char
*
BLS_SIGN_RSP
=
"BLSSignRsp"
;
...
...
This diff is collapsed.
Click to expand it.
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