Coder Social home page Coder Social logo

risc0-rust-examples's Introduction

risc0-rust-examples's People

Contributors

elakn avatar flaub avatar hashcashier avatar ianklatzco avatar intoverflow avatar jacobdweightman avatar nategraf avatar pdg744 avatar rlukata avatar spaugh avatar tzerrell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

risc0-rust-examples's Issues

Waldo example: eqz failed at: cirgen/components/ram.cpp:94

Running:

cargo run --release --bin prove -- -i waldo.webp -x 1150 -y 291 -w 58 -h 70 -m waldo_mask.png

results in:

     Running `target/release/prove -i waldo.webp -x 1150 -y 291 -w 58 -h 70 -m waldo_mask.png`
Read image at waldo.webp with size: 2800 x 1760
Read image mask at waldo_mask.png
Created Merkle tree from image with root Node(631d3ed302c665a793fe4da7fedc0354016bd5946d2e1637fc813c409e39b6a8)
Running the prover to cut out Waldo at (1150, 291) with dimensions (58, 70)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: eqz failed at: cirgen/components/ram.cpp:94', /Users/flaub/.cargo/git/checkouts/risc0-7d6ab9951628e5b1/d6fc82a/risc0/zkp/src/prove/executor.rs:191:22

Hello Multiply tutorial mistake

In step 2 of the Hello Multiply tutorial, there's a section that says,

"While we're at it, let's change the rest of the references in factors/src/main.rs. Don't worry about why these lines are included yet; for now, we're just being diligent not to leave dead references behind. Here are what the other two lines with METHOD_NAME_ELF and METHOD_NAME_ID should look like after updating:

    let mut prover = Prover::new(MULTIPLY_ELF, MULTIPLY_ID)
        .expect("Prover should be constructed from valid method source code and corresponding image ID");

...

    receipt.verify(MULTIPLY_ID)
        .expect("Code you have proven should successfully verify; did you specify the correct image ID?");

"

I believe there is another line you have to change/delete:

let method_code = std::fs::read(METHOD_NAME_PATH)
         .expect("Method code should be present at the specified path; did you use the correct *_PATH constant?");

Standardize guest cargo profile across examples

Most older examples include a section in their methods/guest/Cargo.toml file that reads

[profile.release]
lto = true
opt-level = "z"

The more recent examples omit this section. Let's determine whether this section is beneficial, and either include or remove it from all examples.

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.