@zkproofport-app/sdk 0.5.0-beta.4 → 0.5.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -92,19 +92,20 @@ const DEEP_LINK_HOSTS = {
92
92
  * ```typescript
93
93
  * const metadata = CIRCUIT_METADATA['coinbase_attestation'];
94
94
  * console.log(metadata.name); // "Coinbase KYC"
95
- * console.log(metadata.publicInputsCount); // 128
95
+ * console.log(metadata.publicInputsCount); // 193
96
96
  * ```
97
97
  */
98
98
  const CIRCUIT_METADATA = {
99
99
  coinbase_attestation: {
100
100
  name: 'Coinbase KYC',
101
- description: 'Prove Coinbase identity verification',
102
- // 4 x `pub [u8; 32]` in coinbase-attestation/src/main.nr, flattened to
103
- // bytes: signal_hash, signer_list_merkle_root, scope, nullifier.
104
- // Read 2 here until 2026-09-04, which was wrong under any reading —
105
- // the circuit has never had two public inputs, logical or flattened.
106
- publicInputsCount: 128,
107
- publicInputNames: ['signal_hash', 'signer_list_merkle_root'],
101
+ description: 'Prove Coinbase identity verification, optionally authorizing one EIP-712 action',
102
+ // Coinbase KYC v2 (coinbase-attestation-v2/src/main.nr): GIWA's six
103
+ // `pub [u8; 32]` in its order, then `attested_at: pub u64` = 193 fields.
104
+ // signal_hash 0-31, domain_separator 32-63, action_hash 64-95,
105
+ // signer_list_merkle_root 96-127, scope 128-159, nullifier 160-191,
106
+ // attested_at 192. v1's 128 fields are refused on every verify path.
107
+ publicInputsCount: 193,
108
+ publicInputNames: ['signal_hash', 'domain_separator', 'action_hash', 'signer_list_merkle_root', 'scope', 'nullifier', 'attested_at'],
108
109
  },
109
110
  coinbase_country_attestation: {
110
111
  name: 'Coinbase Country',