Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bb's proof output is not easily fed into the verifier smart contract #6487

Open
TomAFrench opened this issue May 16, 2024 · 2 comments
Open
Labels
A-ux/devex Area: relates to external ux / devex. (Users typically are devs) (See also A-internal-devex) C-bb.js Component: bb.js - wrapping bberg in js C-bb-bin Component: Barretenberg executable binary

Comments

@TomAFrench
Copy link
Member

See PR comment at link

We currently need to do a bunch of data wrangling to convert from the proof format outputted by bb into something which can be fed into the verifier smart contract. The current steps to do this are:

  1. Get number of public inputs to circuit.
  2. Split binary data according to number of public inputs to separate these from rest of proof.
  3. Convert public inputs from binary to hexadecimal string.
    a. Split public inputs at every 32 bytes and prefix with 0x
  4. Convert proof from binary to hexadecimal string and prefix with 0x.

Which is a bit unwieldy in bash for an end user plus requires outside knowledge about the circuit.

@github-project-automation github-project-automation bot moved this to Todo in A3 May 16, 2024
@Savio-Sou Savio-Sou added C-bb-bin Component: Barretenberg executable binary C-barretenberg Component: barretenberg cryptography library labels May 17, 2024
@Savio-Sou Savio-Sou added A-ux/devex Area: relates to external ux / devex. (Users typically are devs) (See also A-internal-devex) C-bb.js Component: bb.js - wrapping bberg in js and removed C-barretenberg Component: barretenberg cryptography library labels Oct 8, 2024
@Savio-Sou
Copy link
Member

Assume this applies to bb.js as well?

@TomAFrench
Copy link
Member Author

Yep, bb.js's output is the same as bb's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ux/devex Area: relates to external ux / devex. (Users typically are devs) (See also A-internal-devex) C-bb.js Component: bb.js - wrapping bberg in js C-bb-bin Component: Barretenberg executable binary
Projects
Status: Todo
Development

No branches or pull requests

2 participants