cryptobiu / libscapi

Comprehensive Open Source Library for Secure Multiparty Computation
MIT License
180 stars 66 forks source link

Error executing an example #5

Closed prvsousa closed 7 years ago

prvsousa commented 7 years ago

I'm trying to make:

./libscapi_example commitment 1 Comm/CommConfig.txt

But I get the error:

terminate called after throwing an instance of 'char const*' Aborted (core dumped)

liorko87 commented 7 years ago

If you like to run the commitment example, you will need to open two different terminals.

In the first terminal run ./libscapi_example commitment 1 Commitment/CommitmentConfig.txt

In the second terminal run ./libscapi_example commitment 2 Commitment/CommitmentConfig.txt

The Comm folder is using for communication samples.

In order to see use examples follow this link

prvsousa commented 7 years ago

Thanks! It solve the problem. I followed this link but the examples are wrong.

prvsousa commented 7 years ago

./libscapi_example comm 1 Comm/CommConfig.txt

Why this example doesn't run?

To run an example: ./libscapi_examples [args...]

example_name can one of the following:

  • dlog
  • sha1
  • maliciousOT <party_number (1|2)>
  • semiHonestOT <party_number (1|2)>
  • comm <party_number (1|2)>
  • yao <party_number (1|2)>
  • sigma <party_number (1|2)>
  • commitment <party_number (1|2)>
  • ot <party_number (1|2)>
  • OTExtensionBristol <party_number (0|1)> (linux only)
  • ospsi input_file_1 input_file_2
prvsousa commented 7 years ago

I want the "equality" of the Comm folder. How can I make to compile de Comm folder and execute?

liorko87 commented 7 years ago

Thank you for your comment. It was a bug in executing the communication folder. I updated the samples folder. Just do git pull and build the samples again.

All the examples beside dlog, sha1 request two terminals.

prvsousa commented 7 years ago

Thank you so much! Nice work