cryptobiu / libscapi

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

Error when running commitment scheme example copied to own system #61

Closed Ruth1993 closed 5 years ago

Ruth1993 commented 5 years ago

Hello :),

When I run the commitment scheme example from the example folder by opening two windows and running ./libscapi_example commitment 1 Commitment/CommitmentConfig.txt in one window and ./libscapi_example commitment 2 Commitment/CommitmentConfig.txt in the other, it works perfectly. However, I copied the files examples_main.cpp, examples_main.hpp, makefile and the folder Commitment to my own system (and changed the folder names in the #include lines accordingly of course) and then I tried executing the same things again. When I first run ./libscapi_example commitment 1 Commitment/CommitmentConfig.txt in one window I get no errors, but as soon as I enter ./libscapi_example commitment 2 Commitment/CommitmentConfig.txt in the other window, I get the following error:

terminate after throwing instance of char const*

Does anyone know the problem? I mean, I basically just copied the code from the example folder, so I guess the problem is not with the code, but somewhere in my system.

Btw, I'm using Ubuntu 14.04 with OpenSSL 1.0.2g.

Thanks in advance!

Kind regards, Ruth

liorko87 commented 5 years ago

Hi @Ruth1993 ,

In the Dlog implementation there is a reference to a file that names: NISTEC.txt. In order to avoid the exception, please copy it to the specified location or change the Dlog.hpp implementation.

Lior

Ruth1993 commented 5 years ago

Thanks, it works!