Git Product home page Git Product logo

Comments (2)

barryWhiteHat avatar barryWhiteHat commented on June 29, 2024

The problem is Point.from_bytes call. You can follow it to sapling_jubjub.py and you can see it needs to get the square root (u = u2.sqrt())[https://github.com/daira/zcash-test-vectors/blob/master/sapling_jubjub.py#L157)

I have not gotten that working yet. You can see https://github.com/barryWhiteHat/baby_jubjub_ecc/blob/master/tests/sapling_jubjub.py#L81 that i am trying to reverse engineer it. But have not gotten it to work yet.

from baby_jubjub_ecc.

HarryR avatar HarryR commented on June 29, 2024

Can you not just provide a witness for the points u coordinate and verify is_on_curve(u, v) and v == v_from_hash(...) ?

One problem with that is there may be more than one u coordinate for any given v and visa versa, e.g. negative points with the sign bit have the X coordinate flipped.

So it's not safe to just verify is_on_curve unless you also verify the sign bit of the encoded point and whether or not the X coord is negative or positive.

from baby_jubjub_ecc.

Related Issues (5)

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.