File Input by User during Online Phase

60 views
Skip to first unread message

Mark Basler

unread,
Dec 11, 2022, 4:19:58 AM12/11/22
to SPDZ/SCALE-MAMBA Discussion Group

Hi SCALE-MAMBA Team,

I hope you are all well.

I have a question about file input in SCALE-MAMBA.

My aim is to give users the possibility to enter txt or csv files during the online phase, in which integers are stored. These integers should be read in as sint.

So I am looking for a function similar to get_private_input_from(), but I want the user to be able to enter the location of a file instead of just a sint.

I looked in the documentation for such a function but couldn't find anything. As far as I understand, the IO class cannot be used for this, as this class can be used to write output and input shares.

Can you tell me if there is a built-in way to do this or how I can achieve this?

Thank you very much for your time in advance.

Best regards

Nigel Smart

unread,
Dec 12, 2022, 4:37:38 AM12/12/22
to sp...@googlegroups.com
Hi

You basically need to modify the IO class to get what ever
application IO behaviour you want.

Alas specifying file locations are something the external
application will need to do.
- Basically for a proper application you will need to
wrap SCALE-MAMBA into another application which provides
all the application plumbing.

This is not hard to do, its just not provided out of the box.

The reason is we could not anticipate every single use case
for IO in SCALE. Thus the user just needs to work out how
to write their own application, and then modify the IO class
to provide the necessary plumbing.

Note: A real application would never use the command line
execution of SCALE, so that is why there is no way of getting
access to this plumbing from there. The plumbing has to go
via the C++ IO class.

Nigel
> --
> You received this message because you are subscribed to the Google
> Groups "SPDZ/SCALE-MAMBA Discussion Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spdz+uns...@googlegroups.com
> <mailto:spdz+uns...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/spdz/64a846b8-530a-4c8b-a3f6-14404cd9e264n%40googlegroups.com <https://groups.google.com/d/msgid/spdz/64a846b8-530a-4c8b-a3f6-14404cd9e264n%40googlegroups.com?utm_medium=email&utm_source=footer>.
OpenPGP_0x7224BD3CC839656F.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages