Giter Site home page Giter Site logo

Comments (9)

haik avatar haik commented on June 19, 2024 2

@dd23 I guess the main difference lies in the declaration of operands and I tried to modify them. But I always encountered such problems as no member named PutFPGate, expects argument of type, but argument has type. I was wondering if you could give me some example?

from aby.

ShivamBansal99 avatar ShivamBansal99 commented on June 19, 2024 1

Is there an example with an EXP FP gate? Or is there any way to view the intermediate float values in the shares for debugging?

from aby.

dd23 avatar dd23 commented on June 19, 2024

ABY does support the following operations on floating-point numbers of different precisions using BooleanCircuit::PutFPGate():
ADD, MUL, SUB, DIV, SIN, SQRT, EXP, EXP2, CMP, LN, LOG2, COS, SQR (as defined here)

There are some shift operations available for Boolean Circuits:

Hope that helps. Let me know if you have further questions.

from aby.

williamclot avatar williamclot commented on June 19, 2024

Would be great to have a example with a SQRT!

from aby.

dd23 avatar dd23 commented on June 19, 2024

There is an example for using floating-point gates: https://github.com/encryptogroup/ABY/blob/public/src/examples/float/abyfloat.cpp

I have just extended it in b21faaf and added an example for SQRT as well. Hope this helps.

from aby.

williamclot avatar williamclot commented on June 19, 2024

Cheers! Thank you very much.

from aby.

williamclot avatar williamclot commented on June 19, 2024

I've been working with FPGates on the latest b21faaf commit. Would it be possible to have a different path to the circ folder then "../../bin/circ". Maybe putting it as variable somewhere?

from aby.

dd23 avatar dd23 commented on June 19, 2024

Took some time, but since ede04f8 it's now possible to specify the path to the circuits at runtime by passing it to the ABYParty constructor, e.g., like in the float example.

The default is still "../../bin/circ" so the old examples and the current directory structure of the repo keeps on working.

from aby.

dd23 avatar dd23 commented on June 19, 2024

There is currently no example for the EXP FP gate, but if you submit a pull request, we can include it in the repo.

from aby.

Related Issues (20)

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.