Giter Site home page Giter Site logo

Comments (3)

linear avatar linear commented on June 20, 2024

ZKVM-377 [BUG] Arkworks not compatible with Risc-0

from risc0.

capossele avatar capossele commented on June 20, 2024

You issue seems to be related to the crate ahash not having access to getrandom in the guest. You have, at least, two options:

  1. enable the getrandom feature on the risc0-zkvm crate
  2. Add something like this to your guest dependencies: ahash = { version = "=0.8.6", default-features = false, features = ["compile-time-rng"] }

The first option will expose a getrandom implementation that uses the sys_random ecall, i.e., your guest will get randomness from the host.
The second option will generate random numbers at compile time and embed them in the binary.

from risc0.

MBelegris avatar MBelegris commented on June 20, 2024

Fixed: I used the second method and it works. Thank you

from risc0.

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.