MP-SPDZ icon indicating copy to clipboard operation
MP-SPDZ copied to clipboard

How to write cints to a file?

Open vrindadesai opened this issue 7 months ago • 1 comments

Relevant documentation The public outputs section discusses print_ln, but not writing to a file. https://mp-spdz.readthedocs.io/en/latest/io.html?highlight=writing%20file#public-outputs

The question I need to create a dynamically sized array, the specific size is dependent on my data and I will only know the appropriate size after one pass of computation. Our approach to this problem was splitting up the program and writing the size to a file (the size will be a public value). After perusing some documentation, I am unsure how to write a cleartext int to a regular .txt file--specifically, it appears in the file in the cXX format rather than looking like a number.

vrindadesai avatar May 23 '25 01:05 vrindadesai

The only option I can think of is using -OF as explained in the documentation above. The virtual machine does not support the output of runtime information into files specified in the high-level code.

mkskeller avatar May 23 '25 04:05 mkskeller