Git Product home page Git Product logo

Comments (5)

jonathanpwang avatar jonathanpwang commented on July 21, 2024 1

Ah - due to the deterministic nature of circuits, even when aIsInfinity == 1, the usage of the circuit requires that a is a point on the curve (you can put in a random point, as long as it is on E). (See documentation: https://github.com/yi-sun/circom-pairing/tree/master/docs#ellipticcurveaddn-k-p).

Does that solve your issue?

from circom-pairing.

Dimo99 avatar Dimo99 commented on July 21, 2024

For now, I think I solved my problem by removing this thing. As for aggregating public keys, I don't need the double I think. Though I am not sure if this is 100% correct

from circom-pairing.

jonathanpwang avatar jonathanpwang commented on July 21, 2024

In your test case, is it (incorrectly) returning that out is infinity?
The intended logic is that doub should be ignored if aIsInfinity == 1.

from circom-pairing.

Dimo99 avatar Dimo99 commented on July 21, 2024

It just throws an error when I calculate the witness.
This is the error I get

Error: Error: Assert Failed. Error in template Num2Bits_40 line: 38

I am ussing [[1, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0]] for point at inifinity

from circom-pairing.

Dimo99 avatar Dimo99 commented on July 21, 2024

Yes, it does. Thanks

from circom-pairing.

Related Issues (15)

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.