Skip to content

Different Naming of Verifier Contract in Different Spots #667

Open
@benjamin852

Description

Description/Reasoning

Was going through the flow of the docs for instantiating the Gateway and Prover. Both of these require the address of the voting verifier contract to be passed in but we reference these addresses differently in the docs due to how they're referenced in the contracts, which has led to some confusion. Specifically whether a user needs to pass in the address of the verifier contract or an external verifier addresss.

Current Behaviour

In the instructions for instantiating the gateway, devs need to pass in the verifier_address, as the Verifier is referenced as verifier_address in the instantiation msg.

When instantiating the prover we also need to pass in the Verifier contract but for this instantiation the Verifier is referenced as) voting_verifier_address.

This creates a bit of confusion as readers can interpret the verifier_address needed for the gateway instantiation to be an external verifier (especially in devnet where sometimes people only have a single verifier) and the voting_verifier_address prover instantiation to be in reference to the verifier contract.

Expected Behaviour

If it is not a major difficulty to change it would be good to have these two references to the voting verifier contract, consistently named in the two instantiation msgs. We will leave a note in the doc about this so users don't get confused, but cannot update the doc the actual parameter naming in the doc to have voting_verifer_address in both commands as long as they don't match how they're named in the contracts.

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