@0xpolygonid/js-sdk 1.29.3 → 1.29.4
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/browser/esm/index.js +1 -15
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +1 -15
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/iden3comm/handlers/common.js +1 -15
- package/dist/node/esm/iden3comm/handlers/common.js +3 -17
- package/package.json +1 -1
|
@@ -74698,21 +74698,7 @@ var PolygonIdSdk = (function (exports) {
|
|
|
74698
74698
|
}
|
|
74699
74699
|
const preparedZkpProof = prepareZkpProof(zkProof.proof);
|
|
74700
74700
|
const zkProofEncoded = packZkpProof(inputs, preparedZkpProof.a, preparedZkpProof.b, preparedZkpProof.c);
|
|
74701
|
-
const
|
|
74702
|
-
if (zkProof.vp) {
|
|
74703
|
-
for (const key in zkProof.vp.verifiableCredential.credentialSubject) {
|
|
74704
|
-
if (key === '@type') {
|
|
74705
|
-
continue;
|
|
74706
|
-
}
|
|
74707
|
-
const metadataValue = $$2.hashBytes(byteEncoder.encode(JSON.stringify(zkProof.vp.verifiableCredential.credentialSubject[key])));
|
|
74708
|
-
const bytesValue = byteEncoder.encode(metadataValue.toString());
|
|
74709
|
-
metadataArr.push({
|
|
74710
|
-
key,
|
|
74711
|
-
value: bytesValue
|
|
74712
|
-
});
|
|
74713
|
-
}
|
|
74714
|
-
}
|
|
74715
|
-
const metadata = metadataArr.length ? packMetadatas(metadataArr) : emptyBytes;
|
|
74701
|
+
const metadata = emptyBytes;
|
|
74716
74702
|
return { requestId, zkProofEncoded, metadata };
|
|
74717
74703
|
};
|
|
74718
74704
|
/**
|