@zkpassport/sdk 0.6.0-beta.3 → 0.6.0
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.cjs +2 -7
- package/dist/esm/index.js +2 -7
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -2923,7 +2923,6 @@ var ZKPassport = class {
|
|
|
2923
2923
|
});
|
|
2924
2924
|
const params = this.getSolidityVerifierParameters({
|
|
2925
2925
|
proof,
|
|
2926
|
-
validityPeriodInDays: validity,
|
|
2927
2926
|
domain: this.domain,
|
|
2928
2927
|
scope,
|
|
2929
2928
|
devMode
|
|
@@ -2994,10 +2993,6 @@ var ZKPassport = class {
|
|
|
2994
2993
|
);
|
|
2995
2994
|
}
|
|
2996
2995
|
const proofData = (0, import_utils.getProofData)(proof.proof, (0, import_utils.getNumberOfPublicInputs)(proof.name));
|
|
2997
|
-
const actualProof = proofData.proof.slice(16);
|
|
2998
|
-
const actualPublicInputs = proofData.publicInputs.concat(
|
|
2999
|
-
proofData.proof.slice(0, 16).map((x) => `0x${x}`)
|
|
3000
|
-
);
|
|
3001
2996
|
let committedInputCounts = [];
|
|
3002
2997
|
let committedInputs = [];
|
|
3003
2998
|
for (const key in proof.committedInputs) {
|
|
@@ -3084,8 +3079,8 @@ var ZKPassport = class {
|
|
|
3084
3079
|
const params = {
|
|
3085
3080
|
// Make sure the vkeyHash is 32 bytes
|
|
3086
3081
|
vkeyHash: `0x${proof.vkeyHash.replace("0x", "").padStart(64, "0")}`,
|
|
3087
|
-
proof: `0x${
|
|
3088
|
-
publicInputs:
|
|
3082
|
+
proof: `0x${proofData.proof.join("")}`,
|
|
3083
|
+
publicInputs: proofData.publicInputs,
|
|
3089
3084
|
committedInputs: `0x${compressedCommittedInputs}`,
|
|
3090
3085
|
committedInputCounts: committedInputCountsArray,
|
|
3091
3086
|
validityPeriodInDays,
|
package/dist/esm/index.js
CHANGED
|
@@ -2923,7 +2923,6 @@ var ZKPassport = class {
|
|
|
2923
2923
|
});
|
|
2924
2924
|
const params = this.getSolidityVerifierParameters({
|
|
2925
2925
|
proof,
|
|
2926
|
-
validityPeriodInDays: validity,
|
|
2927
2926
|
domain: this.domain,
|
|
2928
2927
|
scope,
|
|
2929
2928
|
devMode
|
|
@@ -2994,10 +2993,6 @@ var ZKPassport = class {
|
|
|
2994
2993
|
);
|
|
2995
2994
|
}
|
|
2996
2995
|
const proofData = getProofData(proof.proof, getNumberOfPublicInputs(proof.name));
|
|
2997
|
-
const actualProof = proofData.proof.slice(16);
|
|
2998
|
-
const actualPublicInputs = proofData.publicInputs.concat(
|
|
2999
|
-
proofData.proof.slice(0, 16).map((x) => `0x${x}`)
|
|
3000
|
-
);
|
|
3001
2996
|
let committedInputCounts = [];
|
|
3002
2997
|
let committedInputs = [];
|
|
3003
2998
|
for (const key in proof.committedInputs) {
|
|
@@ -3084,8 +3079,8 @@ var ZKPassport = class {
|
|
|
3084
3079
|
const params = {
|
|
3085
3080
|
// Make sure the vkeyHash is 32 bytes
|
|
3086
3081
|
vkeyHash: `0x${proof.vkeyHash.replace("0x", "").padStart(64, "0")}`,
|
|
3087
|
-
proof: `0x${
|
|
3088
|
-
publicInputs:
|
|
3082
|
+
proof: `0x${proofData.proof.join("")}`,
|
|
3083
|
+
publicInputs: proofData.publicInputs,
|
|
3089
3084
|
committedInputs: `0x${compressedCommittedInputs}`,
|
|
3090
3085
|
committedInputCounts: committedInputCountsArray,
|
|
3091
3086
|
validityPeriodInDays,
|