Giter Club home page Giter Club logo

Comments (8)

weikengchen avatar weikengchen commented on July 30, 2024

(Can you also attach a Makefile or something for the compilation commands?)

from emp-ag2pc.

kzhong130 avatar kzhong130 commented on July 30, 2024

Sure, for max-circuit-gen.cpp, I add that to the test directory of emp-tool repo, and then add a line "add_test(max-circuit-gen)" to the end of CMakeLists.txt in emp-tool repo. And for max-ag2.cpp, I do the same thing on emp-ag2pc repo. I can quickly fork those two repos and put the files under them, if that makes things easier. But that might require you complie/install the emp-tool & emp-ag2pc again? Please let me know which way works best for you, thank you!

from emp-ag2pc.

weikengchen avatar weikengchen commented on July 30, 2024

I reproduced a similar incorrect result:
A[0]: 4
A[1]: 6
A[2]: 2
B[0]: 5
B[1]: 1
B[2]: 3
A[0]+B[0]: 9
A[1]+B[1]: 7
A[2]+B[2]: 5

with the modification that A[0]+B[0] follows a different order.

I am on the way to look into it...

from emp-ag2pc.

kzhong130 avatar kzhong130 commented on July 30, 2024

Ah, sorry, I think we got the same result. I made a typo when pasting the results of A[i]+B[i]. Have pushed to my repo.

from emp-ag2pc.

wangxiao1254 avatar wangxiao1254 commented on July 30, 2024

from emp-ag2pc.

weikengchen avatar weikengchen commented on July 30, 2024

Made a pull request here: kzhong130/emp-ag2pc-max-example#1

It seems that the current plaintext engine demands Alice's input be allocated before Bob's input.

from emp-ag2pc.

kzhong130 avatar kzhong130 commented on July 30, 2024

Works now! Thank you so much. Sorry that I did not find any related stuff to that requirement before... So I am following another survey repo for this tool: https://github.com/MPC-SoK/frameworks/wiki/EMP-toolkit. In their example it seems find to just allocate both inputs in one loop. So maybe it would be great to mention that there as well.

from emp-ag2pc.

weikengchen avatar weikengchen commented on July 30, 2024

I would say it is a limitation of emp-tool at this moment. The Bristol fashion circuits are not easy to work with. (This might be changed in the coming years.)

from emp-ag2pc.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.