@zkproofport-app/sdk 0.2.15 → 0.2.16

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
@@ -4342,26 +4342,33 @@ const CIRCUIT_SUPPORT_STATUS = Object.freeze({
4342
4342
  mdl_kr_region: 'planned',
4343
4343
  });
4344
4344
  /**
4345
- * Where each circuit's verification key lives inside the `zkproofport/circuits`
4346
- * repository, relative to its root.
4345
+ * Where each circuit's verification key FILE lives inside the
4346
+ * `zkproofport/circuits` repository, relative to its root.
4347
4347
  *
4348
4348
  * Off-chain verification needs the verification key and nothing else — no
4349
4349
  * circuit bytecode, no witness. The key is public by nature: it is what anyone
4350
4350
  * checking a proof must already have, and the Solidity verifiers deployed
4351
4351
  * on-chain embed the same key.
4352
4352
  *
4353
+ * NOTE THE TRAILING `/vk` TWICE. In that repository `target/vk` is a DIRECTORY
4354
+ * holding `vk`, `vk_hash` and `SHA256SUMS`; the key itself is `target/vk/vk`.
4355
+ * These paths were first copied here from the mobile app, which keeps the
4356
+ * directory and the filename as two fields and joins them — so taking only the
4357
+ * directory produced a URL that answers 404, and the first browser to try
4358
+ * off-chain verification said "Could not fetch the verification key (HTTP 404)".
4359
+ *
4353
4360
  * Exhaustive over {@link CircuitId} on purpose. A new circuit whose key path is
4354
4361
  * not listed here fails to compile rather than failing at verification time,
4355
4362
  * where the only symptom would be a proof that cannot be checked.
4356
4363
  */
4357
4364
  const CIRCUIT_VK_PATHS = Object.freeze({
4358
- coinbase_attestation: 'coinbase-attestation/target/vk',
4359
- coinbase_country_attestation: 'coinbase-country-attestation/target/vk',
4360
- oidc_domain_attestation: 'oidc-domain-attestation/target/vk',
4361
- giwa_attestation: 'giwa-attestation/target/vk',
4362
- mdl_kr_ownership: 'mdl/kr-ownership/target/vk',
4363
- mdl_kr_age: 'mdl/kr-age/target/vk',
4364
- mdl_kr_region: 'mdl/kr-region/target/vk',
4365
+ coinbase_attestation: 'coinbase-attestation/target/vk/vk',
4366
+ coinbase_country_attestation: 'coinbase-country-attestation/target/vk/vk',
4367
+ oidc_domain_attestation: 'oidc-domain-attestation/target/vk/vk',
4368
+ giwa_attestation: 'giwa-attestation/target/vk/vk',
4369
+ mdl_kr_ownership: 'mdl/kr-ownership/target/vk/vk',
4370
+ mdl_kr_age: 'mdl/kr-age/target/vk/vk',
4371
+ mdl_kr_region: 'mdl/kr-region/target/vk/vk',
4365
4372
  });
4366
4373
  /**
4367
4374
  * Every canonical circuit identifier, in declaration order.