@zkpassport/sdk 0.4.2 → 0.4.3

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/cjs/index.js CHANGED
@@ -1268,7 +1268,7 @@ class ZKPassport {
1268
1268
  // Maintained certificate registry settled onchain
1269
1269
  // Here we use Ethereum Sepolia
1270
1270
  const registryClient = new registry_1.RegistryClient({ chainId: 11155111 });
1271
- await registryClient.getCertificates(`0x${root}`);
1271
+ await registryClient.getCertificates(`0x${root.padStart(64, "0")}`);
1272
1272
  }
1273
1273
  catch (error) {
1274
1274
  console.warn(error);
package/dist/esm/index.js CHANGED
@@ -1258,7 +1258,7 @@ export class ZKPassport {
1258
1258
  // Maintained certificate registry settled onchain
1259
1259
  // Here we use Ethereum Sepolia
1260
1260
  const registryClient = new RegistryClient({ chainId: 11155111 });
1261
- await registryClient.getCertificates(`0x${root}`);
1261
+ await registryClient.getCertificates(`0x${root.padStart(64, "0")}`);
1262
1262
  }
1263
1263
  catch (error) {
1264
1264
  console.warn(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkpassport/sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Privacy-preserving identity verification using passports and ID cards",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -42,7 +42,7 @@
42
42
  "@noble/ciphers": "^1.2.1",
43
43
  "@noble/hashes": "^1.7.2",
44
44
  "@noble/secp256k1": "^2.2.3",
45
- "@obsidion/bridge": "^0.10.0",
45
+ "@obsidion/bridge": "^0.10.1",
46
46
  "@zkpassport/registry": "^0.2.1",
47
47
  "@zkpassport/utils": "^0.9.6",
48
48
  "buffer": "^6.0.3",
package/src/index.ts CHANGED
@@ -1800,7 +1800,7 @@ export class ZKPassport {
1800
1800
  // Maintained certificate registry settled onchain
1801
1801
  // Here we use Ethereum Sepolia
1802
1802
  const registryClient = new RegistryClient({ chainId: 11155111 })
1803
- await registryClient.getCertificates(`0x${root}`)
1803
+ await registryClient.getCertificates(`0x${root.padStart(64, "0")}`)
1804
1804
  } catch (error) {
1805
1805
  console.warn(error)
1806
1806
  // Check the legacy static roots that were used before the registry was deployed onchain