fschlieker / ring-TESLA

Optimized implementation of ring-TESLA
11 stars 1 forks source link

Issue with gauss/samplers/rejection_ber_independent/gen_ber_table.py #1

Open nettijoe96 opened 7 years ago

nettijoe96 commented 7 years ago

Hi there, I am fairly new to C programming and makefiles so this may be a dumb question. I am trying to experiment with a quantum resistant bitcoin. In Bitcoin core, there are autogenerated makefiles that one generates by calling ./configure. I have edited the configure.ac to include ringtesla. The program compiles. However, when I try to make a new key, I get the error abort trap: 6. This error is probably from not compiling the tesla code correctly. From your makefile I see this line: $(PYTHON3) gauss/samplers/rejection_ber_independent/gen_ber_table.py $(SIGMA) $(TAIL) $(PRECISION) > gauss/samplers/rejection_ber_independent/rej_ber_independent_table.data I need to include this in my makefile. However, unlike your test files, I am not creating an executable because ringtesla is only a library. How do I properly include gauss/samplers/rejection_ber_independent/gen_ber_table.py in my makefile when ringtesla is a library and I am making .o and .lo files indiviudally?

I hope I was clear enough. Thank you for your time

fschlieker commented 7 years ago

Hi,

you could probably fix the parameters (for example SIGMA=48, TAIL=13, PRECISION=80 as they come out by default) and with those run the python script that generates the table. You just run this once, and then simply replace the line you quoted from the makefile with the path to the generated table file. I hope this helps.

On 10.07.2017 17:25, Joe Netti wrote:

Hi there, I am fairly new to C programming and makefiles so this may be a dumb question. I am trying to experiment with a quantum resistant bitcoin. In Bitcoin core, there are autogenerated makefiles that one generates by calling ./configure. I have edited the configure.ac to include ringtesla. The program compiles. However, when I try to make a new key, I get the error abort trap: 6. This error is probably from not compiling the tesla code correctly. From your makefile I see this line: |$(PYTHON3) gauss/samplers/rejection_ber_independent/gen_ber_table.py $(SIGMA) $(TAIL) $(PRECISION) > gauss/samplers/rejection_ber_independent/rej_ber_independent_table.data| I need to include this in my makefile. However, unlike your test files, I am not creating an executable because ringtesla is only a library. How do I properly include gauss/samplers/rejection_ber_independent/gen_ber_table.py in my makefile when ringtesla is a library and I am making .o and .lo files indiviudally?

I hope I was clear enough. Thank you for your time

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fschlieker/ring-TESLA/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/APFV5Et61q-tyCmAxdZIi80J6yHy_rt5ks5sMkJmgaJpZM4OTAg7.

nettijoe96 commented 7 years ago

Thanks, I actually got it working. I'm pretty sure the c++ code which Bitcoin is written in links the data file automatically and once I got everything compiled it worked fine. Thank you for the help

Joseph Netti https://www.linkedin.com/in/joseph-netti-a37a50104

On Thu, Jul 13, 2017 at 3:41 AM, fschlieker notifications@github.com wrote:

Hi,

you could probably fix the parameters (for example SIGMA=48, TAIL=13, PRECISION=80 as they come out by default) and with those run the python script that generates the table. You just run this once, and then simply replace the line you quoted from the makefile with the path to the generated table file. I hope this helps.

On 10.07.2017 17:25, Joe Netti wrote:

Hi there, I am fairly new to C programming and makefiles so this may be a dumb question. I am trying to experiment with a quantum resistant bitcoin. In Bitcoin core, there are autogenerated makefiles that one generates by calling ./configure. I have edited the configure.ac to include ringtesla. The program compiles. However, when I try to make a new key, I get the error abort trap: 6. This error is probably from not compiling the tesla code correctly. From your makefile I see this line: |$(PYTHON3) gauss/samplers/rejection_ber_independent/gen_ber_table.py $(SIGMA) $(TAIL) $(PRECISION) > gauss/samplers/rejection_ber_independent/rej_ber_independent_table.data|

I need to include this in my makefile. However, unlike your test files, I am not creating an executable because ringtesla is only a library. How do I properly include gauss/samplers/rejection_ber_independent/gen_ber_table.py in my makefile when ringtesla is a library and I am making .o and .lo files indiviudally?

I hope I was clear enough. Thank you for your time

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fschlieker/ring-TESLA/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/APFV5Et61q- tyCmAxdZIi80J6yHy_rt5ks5sMkJmgaJpZM4OTAg7.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fschlieker/ring-TESLA/issues/1#issuecomment-314998235, or mute the thread https://github.com/notifications/unsubscribe-auth/ASiPBx53IsqHtOWcyxB78QbyvBCJTw3nks5sNcofgaJpZM4OTAg7 .