@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/circuits.d.ts +9 -2
- package/dist/circuits.esm.js +16 -9
- package/dist/circuits.esm.js.map +1 -1
- package/dist/circuits.js +16 -9
- package/dist/circuits.js.map +1 -1
- package/dist/circuits.mjs +16 -9
- package/dist/circuits.mjs.map +1 -1
- package/dist/index.esm.js +16 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1480,26 +1480,33 @@ const CIRCUIT_SUPPORT_STATUS = Object.freeze({
|
|
|
1480
1480
|
mdl_kr_region: 'planned',
|
|
1481
1481
|
});
|
|
1482
1482
|
/**
|
|
1483
|
-
* Where each circuit's verification key lives inside the
|
|
1484
|
-
* repository, relative to its root.
|
|
1483
|
+
* Where each circuit's verification key FILE lives inside the
|
|
1484
|
+
* `zkproofport/circuits` repository, relative to its root.
|
|
1485
1485
|
*
|
|
1486
1486
|
* Off-chain verification needs the verification key and nothing else — no
|
|
1487
1487
|
* circuit bytecode, no witness. The key is public by nature: it is what anyone
|
|
1488
1488
|
* checking a proof must already have, and the Solidity verifiers deployed
|
|
1489
1489
|
* on-chain embed the same key.
|
|
1490
1490
|
*
|
|
1491
|
+
* NOTE THE TRAILING `/vk` TWICE. In that repository `target/vk` is a DIRECTORY
|
|
1492
|
+
* holding `vk`, `vk_hash` and `SHA256SUMS`; the key itself is `target/vk/vk`.
|
|
1493
|
+
* These paths were first copied here from the mobile app, which keeps the
|
|
1494
|
+
* directory and the filename as two fields and joins them — so taking only the
|
|
1495
|
+
* directory produced a URL that answers 404, and the first browser to try
|
|
1496
|
+
* off-chain verification said "Could not fetch the verification key (HTTP 404)".
|
|
1497
|
+
*
|
|
1491
1498
|
* Exhaustive over {@link CircuitId} on purpose. A new circuit whose key path is
|
|
1492
1499
|
* not listed here fails to compile rather than failing at verification time,
|
|
1493
1500
|
* where the only symptom would be a proof that cannot be checked.
|
|
1494
1501
|
*/
|
|
1495
1502
|
const CIRCUIT_VK_PATHS = Object.freeze({
|
|
1496
|
-
coinbase_attestation: 'coinbase-attestation/target/vk',
|
|
1497
|
-
coinbase_country_attestation: 'coinbase-country-attestation/target/vk',
|
|
1498
|
-
oidc_domain_attestation: 'oidc-domain-attestation/target/vk',
|
|
1499
|
-
giwa_attestation: 'giwa-attestation/target/vk',
|
|
1500
|
-
mdl_kr_ownership: 'mdl/kr-ownership/target/vk',
|
|
1501
|
-
mdl_kr_age: 'mdl/kr-age/target/vk',
|
|
1502
|
-
mdl_kr_region: 'mdl/kr-region/target/vk',
|
|
1503
|
+
coinbase_attestation: 'coinbase-attestation/target/vk/vk',
|
|
1504
|
+
coinbase_country_attestation: 'coinbase-country-attestation/target/vk/vk',
|
|
1505
|
+
oidc_domain_attestation: 'oidc-domain-attestation/target/vk/vk',
|
|
1506
|
+
giwa_attestation: 'giwa-attestation/target/vk/vk',
|
|
1507
|
+
mdl_kr_ownership: 'mdl/kr-ownership/target/vk/vk',
|
|
1508
|
+
mdl_kr_age: 'mdl/kr-age/target/vk/vk',
|
|
1509
|
+
mdl_kr_region: 'mdl/kr-region/target/vk/vk',
|
|
1503
1510
|
});
|
|
1504
1511
|
/**
|
|
1505
1512
|
* Every canonical circuit identifier, in declaration order.
|