FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
multi-party-ecdsa-cpp/test/party_message_queue.h at main · robot-python/multi-party-ecdsa-cpp · GitHub
robot-python
/
multi-party-ecdsa-cpp
Public
forked from
Safeheron/multi-party-sig-cpp
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
multi-party-ecdsa-cpp
/
test
/
party_message_queue.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (22 loc) · 615 Bytes
Breadcrumbs
multi-party-ecdsa-cpp
/
test
/
party_message_queue.h
Copy path
File metadata and controls
25 lines (22 loc) · 615 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
ifndef
MULTIPARTYECDSA_PARTY_MESSAGE_QUEUE_H
#
define
MULTIPARTYECDSA_PARTY_MESSAGE_QUEUE_H
#
include
"
thread_safe_queue.h
"
#
include
<
vector
>
template
<
typename
T>
class
PartyMessageQue
{
public:
PartyMessageQue
() {}
PartyMessageQue
(
int
rounds) {
for
(
int
i =
0
; i < rounds; i++) {
queues.
push_back
(ThreadSafeQueue<T>());
}
}
~PartyMessageQue
() {}
ThreadSafeQueue<T>&
get
(
size_t
round) {
assert
(round < queues.
size
());
return
queues[round];
}
private:
std::vector<ThreadSafeQueue<T>> queues;
};
#
endif
//
MULTIPARTYECDSA_PARTY_MESSAGE_QUEUE_H
Back
|
FazBrowse Home
|
New Git URL