prepare_inputs
Prepare circuit inputs for proof generation: compute signal hash, sign with attestation wallet, query EAS, and build Merkle proof. Must be called before request_challenge.
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. |