@0xpolygonid/js-sdk 1.27.0 → 1.27.2
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 +4 -0
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +4 -0
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/proof/provers/inputs-generator.js +4 -0
- package/dist/node/esm/proof/provers/inputs-generator.js +4 -0
- package/dist/types/iden3comm/types/protocol/payment.d.ts +4 -0
- package/package.json +1 -1
|
@@ -319,6 +319,10 @@ class InputGenerator {
|
|
|
319
319
|
circuitQueries.forEach((query) => {
|
|
320
320
|
this.checkOperatorSupport(proofReq.circuitId, query.operator);
|
|
321
321
|
});
|
|
322
|
+
circuitQueries.forEach((query) => {
|
|
323
|
+
query.values = [circuits_1.Operators.SD, circuits_1.Operators.NOOP].includes(query.operator) ? [] : query.values;
|
|
324
|
+
query.valueProof = query.operator === circuits_1.Operators.NOOP ? new circuits_1.ValueProof() : query.valueProof;
|
|
325
|
+
});
|
|
322
326
|
return circuitInputs.inputsMarshal();
|
|
323
327
|
};
|
|
324
328
|
}
|
|
@@ -316,6 +316,10 @@ export class InputGenerator {
|
|
|
316
316
|
circuitQueries.forEach((query) => {
|
|
317
317
|
this.checkOperatorSupport(proofReq.circuitId, query.operator);
|
|
318
318
|
});
|
|
319
|
+
circuitQueries.forEach((query) => {
|
|
320
|
+
query.values = [Operators.SD, Operators.NOOP].includes(query.operator) ? [] : query.values;
|
|
321
|
+
query.valueProof = query.operator === Operators.NOOP ? new ValueProof() : query.valueProof;
|
|
322
|
+
});
|
|
319
323
|
return circuitInputs.inputsMarshal();
|
|
320
324
|
};
|
|
321
325
|
}
|
|
@@ -4,6 +4,8 @@ import { PROTOCOL_MESSAGE_TYPE } from '../../constants';
|
|
|
4
4
|
/** @beta PaymentRequestMessage is struct the represents payment-request message */
|
|
5
5
|
export type PaymentRequestMessage = BasicMessage & {
|
|
6
6
|
body: PaymentRequestMessageBody;
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
7
9
|
type: typeof PROTOCOL_MESSAGE_TYPE.PAYMENT_REQUEST_MESSAGE_TYPE;
|
|
8
10
|
};
|
|
9
11
|
/** @beta PaymentRequestMessageBody is struct the represents body for payment-request */
|
|
@@ -66,6 +68,8 @@ export type EthereumEip712Signature2021 = {
|
|
|
66
68
|
/** @beta PaymentMessage is struct the represents payment message */
|
|
67
69
|
export type PaymentMessage = BasicMessage & {
|
|
68
70
|
body: PaymentMessageBody;
|
|
71
|
+
from: string;
|
|
72
|
+
to: string;
|
|
69
73
|
type: typeof PROTOCOL_MESSAGE_TYPE.PAYMENT_MESSAGE_TYPE;
|
|
70
74
|
};
|
|
71
75
|
/** @beta PaymentMessageBody is struct the represents body for payment message */
|