Giter Site home page Giter Site logo

Comments (1)

ethan-crypto avatar ethan-crypto commented on June 18, 2024

One potential solution, if we want to keep everything decentralized and avoid maintaining a database, is to implement a lightweight factory contract using CREATE2. This factory contract would handle the deployment of all verifiers. Before deploying a new one, it could check for the existence of a verifier by hashing the runtime bytecode (potentially the creation code as well if we want to be on the safe side, but definitely not the metadata) of the verifier and cross-referencing it against a mapping (bytes32=>address) that stores the hashes of all the previously deployed verifiers and maps them to their deployment address. This should provide us with a unique identifier to check whether a verifier has been deployed before. Also, this hashing operation with KECCAK256 would only increase the deployment transaction cost by about 0.1 percent, which is not too bad IMO.

For better accessibility and visibility of the deployed verifiers, we should also create a subgraph for the verifier factory. This would allow for easy decentralized querying of verifiers deployed in production.

One issue with this approach though is how we ensure only verifier contracts are deployed through the factory. I'll need to do some research into this problem.

from ezkl.

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.