Skip to content

Proof generation for the recursion example fails when using the bb CLI #95

@pmuens

Description

@pmuens

I try to generate a proof for the recursion example via the Barretenberg CLI. Unfortunately it I get the following error:

"Assertion failed: (false && "ERROR: Trying to construct a PublicInputComponent from an invalid key!")"

The error can be reproduced using the following branch in my fork: https://github.com/pmuens/noir-examples/tree/recursion-repro. The changes were made in the recursion directory, the diff of which can be seen here.

Steps to reproduce:

  1. git clone <url>
  2. cd recursion
  3. ./compile.sh
  4. ./prove.sh (this is the step where the error occurs)
  5. ./verify.sh (this step won't run properly, given that the proof generation fails)
  6. ./cleanup.sh

Note that I had to update the HONK_VK_SIZE from 128 to 112 as write_vk generates a vk with 112 elements.

The interesting part is that the whole flow works when I omit the --oracle_hash keccak CLI option.

Here are the versions of nargo / bb I've used:

root@1cdb3f64da25:/workspaces/noir-examples/recursion# nargo --version
nargo version = 1.0.0-beta.9
noirc version = 1.0.0-beta.9+6abff2f16e1c1314ba30708d1cf032a536de3d19
(git version hash: 6abff2f16e1c1314ba30708d1cf032a536de3d19, is dirty: false)

root@1cdb3f64da25:/workspaces/noir-examples/recursion# bb --version
0.87.0

This issue might be related to #54

Thanks a lot for looking into this and let me know if there's anything else you need from me to troubleshoot this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions