MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / Commit

Function Commit

Tools/Commit.cpp:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "int.h"
5
6void Commit(octetStream& comm,octetStream& open,const octetStream& message, int send_player)
7{
8 open.store(send_player);
9 open.append(message.get_data(), message.get_length());
10 open.append_random(SEED_SIZE);
11 comm = open.hash();
12}
13
14bool Open(octetStream& message,const octetStream& comm, octetStream& open, int send_player)
15{

Callers 2

Create_RandomFunction · 0.70
Commit_And_OpenFunction · 0.50

Calls 6

get_dataMethod · 0.80
append_randomMethod · 0.80
storeMethod · 0.45
appendMethod · 0.45
get_lengthMethod · 0.45
hashMethod · 0.45

Tested by

no test coverage detected