prepare_inputs
Prepares circuit inputs for zero-knowledge proof generation by computing signal hashes, signing attestations, querying EAS data, and building Merkle proofs for identity verification circuits.
Instructions
Step 1 of the step-by-step flow: Prepare all circuit inputs. Computes signal hash, signs it with the attestation wallet, queries EAS for attestation data, builds Merkle proof, and returns all inputs needed for proof generation. Call this BEFORE request_challenge. For oidc_domain circuit, provide jwt and scope instead of Coinbase-specific parameters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| circuit | Yes | Which circuit to use | |
| scope | No | Scope string for nullifier derivation. Defaults to "proofport" if omitted. For oidc_domain circuit, this is the domain scope string. | |
| country_list | No | ISO 3166-1 alpha-2 country codes. Required for coinbase_country circuit. | |
| is_included | No | true = prove country IS in list, false = prove NOT in list. Required for coinbase_country circuit. | |
| jwt | No | OIDC JWT token (id_token) for oidc_domain circuit | |
| provider | No | OIDC provider. "google" (default) for Google Workspace, "microsoft" for Microsoft 365. |