Code Monkey home page Code Monkey logo

Comments (5)

sauliusgrigaitis avatar sauliusgrigaitis commented on May 22, 2024

Key question - is there a valid case that MODULUS <= value <= MAX_DATA_TYPE_VALUE at the application level. Seems not. So the crypto library should just throw an informative error that it got a value that doesn't fit into MODULUS. This would also help to debug the application.

from c-kzg-4844.

sauliusgrigaitis avatar sauliusgrigaitis commented on May 22, 2024

I would vote for adding an informative error at the crypto library just because at the application level most of the devs are not that familiar with cryptography. By application level, I mean client level.

from c-kzg-4844.

xrchz avatar xrchz commented on May 22, 2024

Does this need to happen for the arguments of any other API functions than verify_kzg_proof?
Or is it all the functions that take a blob or blobs too?

from c-kzg-4844.

xrchz avatar xrchz commented on May 22, 2024

Following the latest specs (after ethereum/consensus-specs@23d3aee) I think the way to do it is put the check in bytes_to_bls_field (and have an unchecked version hash_to_bls_field for compute_challenges)

from c-kzg-4844.

xrchz avatar xrchz commented on May 22, 2024

Closed by #20

from c-kzg-4844.

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.