@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.mjs CHANGED
@@ -90,19 +90,20 @@ const DEEP_LINK_HOSTS = {
90
90
  * ```typescript
91
91
  * const metadata = CIRCUIT_METADATA['coinbase_attestation'];
92
92
  * console.log(metadata.name); // "Coinbase KYC"
93
- * console.log(metadata.publicInputsCount); // 128
93
+ * console.log(metadata.publicInputsCount); // 193
94
94
  * ```
95
95
  */
96
96
  const CIRCUIT_METADATA = {
97
97
  coinbase_attestation: {
98
98
  name: 'Coinbase KYC',
99
- description: 'Prove Coinbase identity verification',
100
- // 4 x `pub [u8; 32]` in coinbase-attestation/src/main.nr, flattened to
101
- // bytes: signal_hash, signer_list_merkle_root, scope, nullifier.
102
- // Read 2 here until 2026-09-04, which was wrong under any reading —
103
- // the circuit has never had two public inputs, logical or flattened.
104
- publicInputsCount: 128,
105
- publicInputNames: ['signal_hash', 'signer_list_merkle_root'],
99
+ description: 'Prove Coinbase identity verification, optionally authorizing one EIP-712 action',
100
+ // Coinbase KYC v2 (coinbase-attestation-v2/src/main.nr): GIWA's six
101
+ // `pub [u8; 32]` in its order, then `attested_at: pub u64` = 193 fields.
102
+ // signal_hash 0-31, domain_separator 32-63, action_hash 64-95,
103
+ // signer_list_merkle_root 96-127, scope 128-159, nullifier 160-191,
104
+ // attested_at 192. v1's 128 fields are refused on every verify path.
105
+ publicInputsCount: 193,
106
+ publicInputNames: ['signal_hash', 'domain_separator', 'action_hash', 'signer_list_merkle_root', 'scope', 'nullifier', 'attested_at'],
106
107
  },
107
108
  coinbase_country_attestation: {
108
109
  name: 'Coinbase Country',