| 172 | |
| 173 | |
| 174 | void Commit_And_Open_(vector<octetStream>& datas, const Player& P, Coordinator& coordinator) |
| 175 | { |
| 176 | CODE_LOCATION |
| 177 | vector<octetStream> Comm_data(P.num_players()); |
| 178 | vector<octetStream> Open_data(P.num_players()); |
| 179 | |
| 180 | Commit(Comm_data[P.my_num()],Open_data[P.my_num()],datas[P.my_num()],P.my_num()); |
| 181 | P.Broadcast_Receive(Comm_data); |
| 182 | |
| 183 | coordinator.wait(P.get_id()); |
| 184 | P.Broadcast_Receive(Open_data); |
| 185 | |
| 186 | for (int i = 0; i < P.num_players(); i++) |
| 187 | { if (i != P.my_num()) |
| 188 | { if (!Open(datas[i],Comm_data[i],Open_data[i],i)) |
| 189 | { throw invalid_commitment(); } |
| 190 | } |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | |
| 195 | void Commit_To_Seeds(vector<PRNG>& G, |
no test coverage detected