Skip to content

Why is the exported verification contract random? #1449

@doubiliu

Description

@doubiliu

I used the MPC procedure to generate the corresponding Phase1 and Phase2 files. Why do I export a solidity verification contract through these files is random?
example:
groth16.Setup(css.(*cs.R1CS), &pk, &vk); vk.ExportSolidity(contract, solidity.WithHashToFieldFunction(sha256.New()))

Is there any way to avoid this randomness? This causes the contract I posted to fail to match the proof of my local calculation

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