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

Method public_input

Compiler/program.py:667–673  ·  view source on GitHub ↗

Append a value to the public input file.

(self, x)

Source from the content-addressed store, hash-verified

665 for x, y in self.free_mem_blocks.items()))
666
667 def public_input(self, x):
668 """Append a value to the public input file."""
669 if self.public_input_file is None:
670 self.public_input_file = open(
671 self.programs_dir + "/Public-Input/%s" % self.name, "w"
672 )
673 self.public_input_file.write("%s\n" % str(x))
674
675 def get_binary_input_file(self, player):
676 key = player, 'bin'

Callers 2

config_from_permFunction · 0.45
foreach_enumerateFunction · 0.45

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected