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

How to get intermediate signals while calling 'snarkjs.groth16.fullProve()' in javascript ? #522

Open
VictorECDSA opened this issue Sep 6, 2024 · 0 comments

Comments

@VictorECDSA
Copy link

I am gonna write a circuit in circom, and call 'snarkjs.groth16.fullProve()' in javascript. I'd like to let javascript to get some intermediate signals of Circom, but I don't want those intermediate signals to be the output of Circom (so that reduce the size of the proof transaction when calling Solidity by reducing the public.json).

I've thought about adding some logs to circom, printing out the intermediate signal as log, and then javascript sends the last argument 'logger' when calling 'snarkjs.groth16.fullProve()', but I see that the 'logger' type is any, and I don't know how to construct this 'logger'. Is there a better way to implement my needs?

    function fullProve(
        _input: CircuitSignals,
        wasmFile: ZKArtifact,
        zkeyFileName: ZKArtifact,
        logger?: any,
    ): Promise<{
        proof: Groth16Proof;
        publicSignals: PublicSignals;
    }>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant