@midnight-ntwrk/credential-compact 0.1.0-rc2 → 0.2.0-rc1

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +43 -1
  2. package/README.md +47 -27
  3. package/dist/compact-build.json +6 -13
  4. package/dist/compact-value-codec.d.ts +14 -0
  5. package/dist/compact-value-codec.d.ts.map +1 -0
  6. package/dist/compact-value-codec.js +135 -0
  7. package/dist/compact-value-codec.js.map +1 -0
  8. package/dist/credentials/composable.compact +1 -3
  9. package/dist/credentials/holder-bindings.compact +11 -289
  10. package/dist/credentials/proofs.compact +85 -0
  11. package/dist/credentials/relations.compact +3 -2
  12. package/dist/credentials/signer-authorization.compact +246 -0
  13. package/dist/credentials/status-bindings.compact +0 -19
  14. package/dist/credentials/types.compact +23 -93
  15. package/dist/credentials/vc.compact +24 -3
  16. package/dist/credentials.compact +0 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/managed/credentials/contract/index.d.ts +102 -196
  22. package/dist/managed/credentials/contract/index.js +746 -1342
  23. package/dist/managed/credentials/contract/index.js.map +2 -2
  24. package/package.json +12 -53
  25. package/dist/contract.d.ts +0 -2
  26. package/dist/contract.d.ts.map +0 -1
  27. package/dist/contract.js +0 -2
  28. package/dist/contract.js.map +0 -1
  29. package/dist/credentials/bindings.compact +0 -5
  30. package/dist/credentials/issue.compact +0 -91
  31. package/dist/credentials/present.compact +0 -84
  32. package/dist/credentials/protocol-support.compact +0 -7
  33. package/dist/credentials/protocols.compact +0 -125
  34. package/dist/credentials/vc-support.compact +0 -8
  35. package/dist/holder-binding/same-holder/composable.compact +0 -179
  36. package/dist/holder-binding/same-holder.compact +0 -180
  37. package/dist/holder-binding/same-holder.d.ts +0 -2
  38. package/dist/holder-binding/same-holder.d.ts.map +0 -1
  39. package/dist/holder-binding/same-holder.js +0 -2
  40. package/dist/holder-binding/same-holder.js.map +0 -1
  41. package/dist/jubjub.d.ts +0 -3
  42. package/dist/jubjub.d.ts.map +0 -1
  43. package/dist/jubjub.js +0 -6
  44. package/dist/jubjub.js.map +0 -1
  45. package/dist/managed/same-holder/contract/index.d.ts +0 -400
  46. package/dist/managed/same-holder/contract/index.js +0 -2688
  47. package/dist/managed/same-holder/contract/index.js.map +0 -8
  48. package/src/credentials/bindings.compact +0 -5
  49. package/src/credentials/composable.compact +0 -14
  50. package/src/credentials/holder-bindings.compact +0 -320
  51. package/src/credentials/issue.compact +0 -91
  52. package/src/credentials/present.compact +0 -84
  53. package/src/credentials/proofs.compact +0 -122
  54. package/src/credentials/protocol-support.compact +0 -7
  55. package/src/credentials/protocols.compact +0 -125
  56. package/src/credentials/relations.compact +0 -36
  57. package/src/credentials/status-bindings.compact +0 -60
  58. package/src/credentials/types.compact +0 -141
  59. package/src/credentials/vc-support.compact +0 -8
  60. package/src/credentials/vc.compact +0 -59
  61. package/src/credentials/vp.compact +0 -25
  62. package/src/credentials.compact +0 -20
  63. package/src/holder-binding/same-holder/composable.compact +0 -179
  64. package/src/holder-binding/same-holder.compact +0 -180
@@ -1,379 +1,254 @@
1
1
  import * as __compactRuntime from '@midnight-ntwrk/compact-runtime';
2
- __compactRuntime.checkRuntimeVersion('0.15.0');
2
+ __compactRuntime.checkRuntimeVersion('0.16.0');
3
3
 
4
- export var HolderBindingProfile;
5
- (function (HolderBindingProfile) {
6
- HolderBindingProfile[HolderBindingProfile['explicitDid'] = 0] = 'explicitDid';
7
- HolderBindingProfile[HolderBindingProfile['secretHolder'] = 1] = 'secretHolder';
8
- HolderBindingProfile[HolderBindingProfile['blindedSecretHolder'] = 2] = 'blindedSecretHolder';
9
- })(HolderBindingProfile || (HolderBindingProfile = {}));
4
+ export var SignerRole;
5
+ (function (SignerRole) {
6
+ SignerRole[SignerRole['issuer'] = 0] = 'issuer';
7
+ SignerRole[SignerRole['verifier'] = 1] = 'verifier';
8
+ })(SignerRole || (SignerRole = {}));
10
9
 
11
- export var StatusType;
12
- (function (StatusType) {
13
- StatusType[StatusType['revocationRegistry'] = 0] = 'revocationRegistry';
14
- })(StatusType || (StatusType = {}));
10
+ export var AuthorizationState;
11
+ (function (AuthorizationState) {
12
+ AuthorizationState[AuthorizationState['active'] = 0] = 'active';
13
+ AuthorizationState[AuthorizationState['suspended'] = 1] = 'suspended';
14
+ AuthorizationState[AuthorizationState['revoked'] = 2] = 'revoked';
15
+ })(AuthorizationState || (AuthorizationState = {}));
15
16
 
16
- const _descriptor_0 = new __compactRuntime.CompactTypeEnum(0, 0);
17
+ export var VerificationRelationship;
18
+ (function (VerificationRelationship) {
19
+ VerificationRelationship[VerificationRelationship['assertionMethod'] = 0] = 'assertionMethod';
20
+ VerificationRelationship[VerificationRelationship['authentication'] = 1] = 'authentication';
21
+ VerificationRelationship[VerificationRelationship['capabilityInvocation'] = 2] = 'capabilityInvocation';
22
+ })(VerificationRelationship || (VerificationRelationship = {}));
17
23
 
18
- const _descriptor_1 = new __compactRuntime.CompactTypeBytes(32);
24
+ const _descriptor_0 = new __compactRuntime.CompactTypeBytes(32);
19
25
 
20
26
  class _ContractAddress_0 {
21
27
  alignment() {
22
- return _descriptor_1.alignment();
28
+ return _descriptor_0.alignment();
23
29
  }
24
30
  fromValue(value_0) {
25
31
  return {
26
- bytes: _descriptor_1.fromValue(value_0)
32
+ bytes: _descriptor_0.fromValue(value_0)
27
33
  }
28
34
  }
29
35
  toValue(value_0) {
30
- return _descriptor_1.toValue(value_0.bytes);
36
+ return _descriptor_0.toValue(value_0.bytes);
31
37
  }
32
38
  }
33
39
 
34
- const _descriptor_2 = new _ContractAddress_0();
40
+ const _descriptor_1 = new _ContractAddress_0();
35
41
 
36
42
  class _VerificationMethodRef_0 {
37
43
  alignment() {
38
- return _descriptor_2.alignment().concat(_descriptor_1.alignment());
44
+ return _descriptor_1.alignment().concat(_descriptor_0.alignment());
39
45
  }
40
46
  fromValue(value_0) {
41
47
  return {
42
- didContractAddress: _descriptor_2.fromValue(value_0),
43
- methodId: _descriptor_1.fromValue(value_0)
48
+ controllerAddress: _descriptor_1.fromValue(value_0),
49
+ methodId: _descriptor_0.fromValue(value_0)
44
50
  }
45
51
  }
46
52
  toValue(value_0) {
47
- return _descriptor_2.toValue(value_0.didContractAddress).concat(_descriptor_1.toValue(value_0.methodId));
53
+ return _descriptor_1.toValue(value_0.controllerAddress).concat(_descriptor_0.toValue(value_0.methodId));
48
54
  }
49
55
  }
50
56
 
51
- const _descriptor_3 = new _VerificationMethodRef_0();
57
+ const _descriptor_2 = new _VerificationMethodRef_0();
52
58
 
53
59
  class _StatusRegistryRef_0 {
54
60
  alignment() {
55
- return _descriptor_1.alignment().concat(_descriptor_3.alignment());
61
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment());
56
62
  }
57
63
  fromValue(value_0) {
58
64
  return {
59
- registryId: _descriptor_1.fromValue(value_0),
60
- authorityVerificationMethodRef: _descriptor_3.fromValue(value_0)
65
+ registryId: _descriptor_0.fromValue(value_0),
66
+ authorityVerificationMethodRef: _descriptor_2.fromValue(value_0)
61
67
  }
62
68
  }
63
69
  toValue(value_0) {
64
- return _descriptor_1.toValue(value_0.registryId).concat(_descriptor_3.toValue(value_0.authorityVerificationMethodRef));
70
+ return _descriptor_0.toValue(value_0.registryId).concat(_descriptor_2.toValue(value_0.authorityVerificationMethodRef));
65
71
  }
66
72
  }
67
73
 
68
- const _descriptor_4 = new _StatusRegistryRef_0();
74
+ const _descriptor_3 = new _StatusRegistryRef_0();
69
75
 
70
76
  class _RegistryBoundStatusBinding_0 {
71
77
  alignment() {
72
- return _descriptor_0.alignment().concat(_descriptor_4.alignment().concat(_descriptor_1.alignment()));
78
+ return _descriptor_3.alignment().concat(_descriptor_0.alignment());
73
79
  }
74
80
  fromValue(value_0) {
75
81
  return {
76
- statusType: _descriptor_0.fromValue(value_0),
77
- registryRef: _descriptor_4.fromValue(value_0),
78
- statusHandleCommitment: _descriptor_1.fromValue(value_0)
82
+ registryRef: _descriptor_3.fromValue(value_0),
83
+ statusHandleCommitment: _descriptor_0.fromValue(value_0)
79
84
  }
80
85
  }
81
86
  toValue(value_0) {
82
- return _descriptor_0.toValue(value_0.statusType).concat(_descriptor_4.toValue(value_0.registryRef).concat(_descriptor_1.toValue(value_0.statusHandleCommitment)));
87
+ return _descriptor_3.toValue(value_0.registryRef).concat(_descriptor_0.toValue(value_0.statusHandleCommitment));
83
88
  }
84
89
  }
85
90
 
86
- const _descriptor_5 = new _RegistryBoundStatusBinding_0();
91
+ const _descriptor_4 = new _RegistryBoundStatusBinding_0();
87
92
 
88
- class _NoStatusBinding_0 {
89
- alignment() {
90
- return [];
91
- }
92
- fromValue(value_0) {
93
- return {
94
- }
95
- }
96
- toValue(value_0) {
97
- return [];
98
- }
99
- }
100
-
101
- const _descriptor_6 = new _NoStatusBinding_0();
102
-
103
- const _descriptor_7 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
104
-
105
- const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
106
-
107
- const _descriptor_9 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
108
-
109
- class _ProtocolMessageEnvelope_0 {
110
- alignment() {
111
- return _descriptor_7.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_8.alignment().concat(_descriptor_1.alignment().concat(_descriptor_9.alignment().concat(_descriptor_8.alignment().concat(_descriptor_9.alignment())))))));
112
- }
113
- fromValue(value_0) {
114
- return {
115
- version: _descriptor_7.fromValue(value_0),
116
- messageId: _descriptor_1.fromValue(value_0),
117
- threadId: _descriptor_1.fromValue(value_0),
118
- initialMessage: _descriptor_8.fromValue(value_0),
119
- respondsToMessageId: _descriptor_1.fromValue(value_0),
120
- createdAt: _descriptor_9.fromValue(value_0),
121
- hasExpiresAt: _descriptor_8.fromValue(value_0),
122
- expiresAt: _descriptor_9.fromValue(value_0)
123
- }
124
- }
125
- toValue(value_0) {
126
- return _descriptor_7.toValue(value_0.version).concat(_descriptor_1.toValue(value_0.messageId).concat(_descriptor_1.toValue(value_0.threadId).concat(_descriptor_8.toValue(value_0.initialMessage).concat(_descriptor_1.toValue(value_0.respondsToMessageId).concat(_descriptor_9.toValue(value_0.createdAt).concat(_descriptor_8.toValue(value_0.hasExpiresAt).concat(_descriptor_9.toValue(value_0.expiresAt))))))));
127
- }
128
- }
129
-
130
- const _descriptor_10 = new _ProtocolMessageEnvelope_0();
131
-
132
- class _SchemaRef_0 {
133
- alignment() {
134
- return _descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment())));
135
- }
136
- fromValue(value_0) {
137
- return {
138
- packageId: _descriptor_1.fromValue(value_0),
139
- schemaId: _descriptor_1.fromValue(value_0),
140
- majorVersion: _descriptor_7.fromValue(value_0),
141
- minorVersion: _descriptor_7.fromValue(value_0)
142
- }
143
- }
144
- toValue(value_0) {
145
- return _descriptor_1.toValue(value_0.packageId).concat(_descriptor_1.toValue(value_0.schemaId).concat(_descriptor_7.toValue(value_0.majorVersion).concat(_descriptor_7.toValue(value_0.minorVersion))));
146
- }
147
- }
148
-
149
- const _descriptor_11 = new _SchemaRef_0();
150
-
151
- class _CredentialProtocolFeatures_0 {
93
+ class _ExplicitHolderBinding_0 {
152
94
  alignment() {
153
- return _descriptor_8.alignment().concat(_descriptor_8.alignment().concat(_descriptor_8.alignment().concat(_descriptor_8.alignment())));
95
+ return _descriptor_2.alignment();
154
96
  }
155
97
  fromValue(value_0) {
156
98
  return {
157
- supportsSelectiveDisclosure: _descriptor_8.fromValue(value_0),
158
- supportsPredicateProofs: _descriptor_8.fromValue(value_0),
159
- supportsVerifierScopedPseudonym: _descriptor_8.fromValue(value_0),
160
- supportsSameHolderProof: _descriptor_8.fromValue(value_0)
99
+ holderVerificationMethodRef: _descriptor_2.fromValue(value_0)
161
100
  }
162
101
  }
163
102
  toValue(value_0) {
164
- return _descriptor_8.toValue(value_0.supportsSelectiveDisclosure).concat(_descriptor_8.toValue(value_0.supportsPredicateProofs).concat(_descriptor_8.toValue(value_0.supportsVerifierScopedPseudonym).concat(_descriptor_8.toValue(value_0.supportsSameHolderProof))));
103
+ return _descriptor_2.toValue(value_0.holderVerificationMethodRef);
165
104
  }
166
105
  }
167
106
 
168
- const _descriptor_12 = new _CredentialProtocolFeatures_0();
169
-
170
- class _SchemaCapabilities_0 {
171
- alignment() {
172
- return _descriptor_8.alignment().concat(_descriptor_8.alignment().concat(_descriptor_8.alignment().concat(_descriptor_8.alignment())));
173
- }
174
- fromValue(value_0) {
175
- return {
176
- supportsSelectiveDisclosure: _descriptor_8.fromValue(value_0),
177
- supportsPredicateProofs: _descriptor_8.fromValue(value_0),
178
- supportsVerifierScopedPseudonym: _descriptor_8.fromValue(value_0),
179
- supportsSameHolderProof: _descriptor_8.fromValue(value_0)
180
- }
181
- }
182
- toValue(value_0) {
183
- return _descriptor_8.toValue(value_0.supportsSelectiveDisclosure).concat(_descriptor_8.toValue(value_0.supportsPredicateProofs).concat(_descriptor_8.toValue(value_0.supportsVerifierScopedPseudonym).concat(_descriptor_8.toValue(value_0.supportsSameHolderProof))));
184
- }
185
- }
107
+ const _descriptor_5 = new _ExplicitHolderBinding_0();
186
108
 
187
- const _descriptor_13 = new _SchemaCapabilities_0();
109
+ const _descriptor_6 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
188
110
 
189
- class _BlindedSecretHolderBinding_0 {
190
- alignment() {
191
- return _descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment()));
192
- }
193
- fromValue(value_0) {
194
- return {
195
- blindedHolderSecretCommitment: _descriptor_1.fromValue(value_0),
196
- issuerNonce: _descriptor_1.fromValue(value_0),
197
- requestChallengeResponse: _descriptor_1.fromValue(value_0)
198
- }
199
- }
200
- toValue(value_0) {
201
- return _descriptor_1.toValue(value_0.blindedHolderSecretCommitment).concat(_descriptor_1.toValue(value_0.issuerNonce).concat(_descriptor_1.toValue(value_0.requestChallengeResponse)));
202
- }
203
- }
111
+ const _descriptor_7 = __compactRuntime.CompactTypeJubjubPoint;
204
112
 
205
- const _descriptor_14 = new _BlindedSecretHolderBinding_0();
113
+ const _descriptor_8 = __compactRuntime.CompactTypeField;
206
114
 
207
- class _SecretHolderBinding_0 {
115
+ class _Signature_0 {
208
116
  alignment() {
209
- return _descriptor_1.alignment().concat(_descriptor_1.alignment());
117
+ return _descriptor_7.alignment().concat(_descriptor_8.alignment());
210
118
  }
211
119
  fromValue(value_0) {
212
120
  return {
213
- holderSecretCommitment: _descriptor_1.fromValue(value_0),
214
- requestChallengeResponse: _descriptor_1.fromValue(value_0)
121
+ r: _descriptor_7.fromValue(value_0),
122
+ s: _descriptor_8.fromValue(value_0)
215
123
  }
216
124
  }
217
125
  toValue(value_0) {
218
- return _descriptor_1.toValue(value_0.holderSecretCommitment).concat(_descriptor_1.toValue(value_0.requestChallengeResponse));
126
+ return _descriptor_7.toValue(value_0.r).concat(_descriptor_8.toValue(value_0.s));
219
127
  }
220
128
  }
221
129
 
222
- const _descriptor_15 = new _SecretHolderBinding_0();
130
+ const _descriptor_9 = new _Signature_0();
223
131
 
224
- const _descriptor_16 = __compactRuntime.CompactTypeJubjubPoint;
225
-
226
- class _OffchainMidnightHolderBinding_0 {
132
+ class _Proof_0 {
227
133
  alignment() {
228
- return _descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_16.alignment()));
134
+ return _descriptor_2.alignment().concat(_descriptor_6.alignment().concat(_descriptor_0.alignment().concat(_descriptor_7.alignment().concat(_descriptor_9.alignment()))));
229
135
  }
230
136
  fromValue(value_0) {
231
137
  return {
232
- holderDidStateHash: _descriptor_1.fromValue(value_0),
233
- holderMethodId: _descriptor_1.fromValue(value_0),
234
- holderPublicKey: _descriptor_16.fromValue(value_0)
138
+ signerVerificationMethodRef: _descriptor_2.fromValue(value_0),
139
+ createdAt: _descriptor_6.fromValue(value_0),
140
+ challengeHash: _descriptor_0.fromValue(value_0),
141
+ publicKey: _descriptor_7.fromValue(value_0),
142
+ signature: _descriptor_9.fromValue(value_0)
235
143
  }
236
144
  }
237
145
  toValue(value_0) {
238
- return _descriptor_1.toValue(value_0.holderDidStateHash).concat(_descriptor_1.toValue(value_0.holderMethodId).concat(_descriptor_16.toValue(value_0.holderPublicKey)));
146
+ return _descriptor_2.toValue(value_0.signerVerificationMethodRef).concat(_descriptor_6.toValue(value_0.createdAt).concat(_descriptor_0.toValue(value_0.challengeHash).concat(_descriptor_7.toValue(value_0.publicKey).concat(_descriptor_9.toValue(value_0.signature)))));
239
147
  }
240
148
  }
241
149
 
242
- const _descriptor_17 = new _OffchainMidnightHolderBinding_0();
150
+ const _descriptor_10 = new _Proof_0();
243
151
 
244
- const _descriptor_18 = __compactRuntime.CompactTypeField;
245
-
246
- class _Signature_0 {
247
- alignment() {
248
- return _descriptor_16.alignment().concat(_descriptor_18.alignment());
249
- }
250
- fromValue(value_0) {
251
- return {
252
- r: _descriptor_16.fromValue(value_0),
253
- s: _descriptor_18.fromValue(value_0)
254
- }
255
- }
256
- toValue(value_0) {
257
- return _descriptor_16.toValue(value_0.r).concat(_descriptor_18.toValue(value_0.s));
258
- }
259
- }
152
+ const _descriptor_11 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
260
153
 
261
- const _descriptor_19 = new _Signature_0();
154
+ const _descriptor_12 = new __compactRuntime.CompactTypeEnum(2, 1);
262
155
 
263
- class _Proof_0 {
264
- alignment() {
265
- return _descriptor_3.alignment().concat(_descriptor_9.alignment().concat(_descriptor_1.alignment().concat(_descriptor_16.alignment().concat(_descriptor_19.alignment()))));
266
- }
267
- fromValue(value_0) {
268
- return {
269
- signerVerificationMethodRef: _descriptor_3.fromValue(value_0),
270
- createdAt: _descriptor_9.fromValue(value_0),
271
- challengeHash: _descriptor_1.fromValue(value_0),
272
- publicKey: _descriptor_16.fromValue(value_0),
273
- signature: _descriptor_19.fromValue(value_0)
274
- }
275
- }
276
- toValue(value_0) {
277
- return _descriptor_3.toValue(value_0.signerVerificationMethodRef).concat(_descriptor_9.toValue(value_0.createdAt).concat(_descriptor_1.toValue(value_0.challengeHash).concat(_descriptor_16.toValue(value_0.publicKey).concat(_descriptor_19.toValue(value_0.signature)))));
278
- }
279
- }
156
+ const _descriptor_13 = new __compactRuntime.CompactTypeEnum(1, 1);
280
157
 
281
- const _descriptor_20 = new _Proof_0();
158
+ const _descriptor_14 = new __compactRuntime.CompactTypeEnum(2, 1);
282
159
 
283
- class _JubjubHolderBinding_0 {
160
+ class _AuthorizedSignerDescriptor_0 {
284
161
  alignment() {
285
- return _descriptor_16.alignment();
162
+ return _descriptor_11.alignment().concat(_descriptor_0.alignment().concat(_descriptor_6.alignment().concat(_descriptor_12.alignment().concat(_descriptor_13.alignment().concat(_descriptor_2.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_14.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment()))))))))));
286
163
  }
287
164
  fromValue(value_0) {
288
165
  return {
289
- holderPublicKey: _descriptor_16.fromValue(value_0)
166
+ version: _descriptor_11.fromValue(value_0),
167
+ authorizationId: _descriptor_0.fromValue(value_0),
168
+ decisionSequence: _descriptor_6.fromValue(value_0),
169
+ state: _descriptor_12.fromValue(value_0),
170
+ role: _descriptor_13.fromValue(value_0),
171
+ signerVerificationMethodRef: _descriptor_2.fromValue(value_0),
172
+ signerPublicKey: _descriptor_7.fromValue(value_0),
173
+ didStateVersion: _descriptor_6.fromValue(value_0),
174
+ verificationRelationship: _descriptor_14.fromValue(value_0),
175
+ scopeCommitment: _descriptor_0.fromValue(value_0),
176
+ policyCommitment: _descriptor_0.fromValue(value_0)
290
177
  }
291
178
  }
292
179
  toValue(value_0) {
293
- return _descriptor_16.toValue(value_0.holderPublicKey);
180
+ return _descriptor_11.toValue(value_0.version).concat(_descriptor_0.toValue(value_0.authorizationId).concat(_descriptor_6.toValue(value_0.decisionSequence).concat(_descriptor_12.toValue(value_0.state).concat(_descriptor_13.toValue(value_0.role).concat(_descriptor_2.toValue(value_0.signerVerificationMethodRef).concat(_descriptor_7.toValue(value_0.signerPublicKey).concat(_descriptor_6.toValue(value_0.didStateVersion).concat(_descriptor_14.toValue(value_0.verificationRelationship).concat(_descriptor_0.toValue(value_0.scopeCommitment).concat(_descriptor_0.toValue(value_0.policyCommitment)))))))))));
294
181
  }
295
182
  }
296
183
 
297
- const _descriptor_21 = new _JubjubHolderBinding_0();
184
+ const _descriptor_15 = new _AuthorizedSignerDescriptor_0();
298
185
 
299
- class _ExplicitHolderBinding_0 {
186
+ class _SignerAuthorizationAuthority_0 {
300
187
  alignment() {
301
- return _descriptor_3.alignment();
188
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_7.alignment()));
302
189
  }
303
190
  fromValue(value_0) {
304
191
  return {
305
- holderVerificationMethodRef: _descriptor_3.fromValue(value_0)
192
+ domainCommitment: _descriptor_0.fromValue(value_0),
193
+ verificationMethodRef: _descriptor_2.fromValue(value_0),
194
+ publicKey: _descriptor_7.fromValue(value_0)
306
195
  }
307
196
  }
308
197
  toValue(value_0) {
309
- return _descriptor_3.toValue(value_0.holderVerificationMethodRef);
198
+ return _descriptor_0.toValue(value_0.domainCommitment).concat(_descriptor_2.toValue(value_0.verificationMethodRef).concat(_descriptor_7.toValue(value_0.publicKey)));
310
199
  }
311
200
  }
312
201
 
313
- const _descriptor_22 = new _ExplicitHolderBinding_0();
202
+ const _descriptor_16 = new _SignerAuthorizationAuthority_0();
314
203
 
315
- class _SchemaFamilyResolutionHint_0 {
204
+ class _SchemaRef_0 {
316
205
  alignment() {
317
- return _descriptor_8.alignment().concat(_descriptor_1.alignment());
206
+ return _descriptor_0.alignment().concat(_descriptor_0.alignment().concat(_descriptor_11.alignment().concat(_descriptor_11.alignment())));
318
207
  }
319
208
  fromValue(value_0) {
320
209
  return {
321
- hasResolverHint: _descriptor_8.fromValue(value_0),
322
- resolverHint: _descriptor_1.fromValue(value_0)
210
+ packageId: _descriptor_0.fromValue(value_0),
211
+ schemaId: _descriptor_0.fromValue(value_0),
212
+ majorVersion: _descriptor_11.fromValue(value_0),
213
+ minorVersion: _descriptor_11.fromValue(value_0)
323
214
  }
324
215
  }
325
216
  toValue(value_0) {
326
- return _descriptor_8.toValue(value_0.hasResolverHint).concat(_descriptor_1.toValue(value_0.resolverHint));
217
+ return _descriptor_0.toValue(value_0.packageId).concat(_descriptor_0.toValue(value_0.schemaId).concat(_descriptor_11.toValue(value_0.majorVersion).concat(_descriptor_11.toValue(value_0.minorVersion))));
327
218
  }
328
219
  }
329
220
 
330
- const _descriptor_23 = new _SchemaFamilyResolutionHint_0();
331
-
332
- class _SchemaDescriptor_0 {
333
- alignment() {
334
- return _descriptor_11.alignment().concat(_descriptor_13.alignment().concat(_descriptor_23.alignment()));
335
- }
336
- fromValue(value_0) {
337
- return {
338
- schema: _descriptor_11.fromValue(value_0),
339
- capabilities: _descriptor_13.fromValue(value_0),
340
- familyResolutionHint: _descriptor_23.fromValue(value_0)
341
- }
342
- }
343
- toValue(value_0) {
344
- return _descriptor_11.toValue(value_0.schema).concat(_descriptor_13.toValue(value_0.capabilities).concat(_descriptor_23.toValue(value_0.familyResolutionHint)));
345
- }
346
- }
221
+ const _descriptor_17 = new _SchemaRef_0();
347
222
 
348
- const _descriptor_24 = new _SchemaDescriptor_0();
223
+ const _descriptor_18 = __compactRuntime.CompactTypeBoolean;
349
224
 
350
- const _descriptor_25 = new __compactRuntime.CompactTypeVector(4, _descriptor_1);
225
+ const _descriptor_19 = new __compactRuntime.CompactTypeVector(2, _descriptor_0);
351
226
 
352
- const _descriptor_26 = new __compactRuntime.CompactTypeVector(3, _descriptor_1);
227
+ const _descriptor_20 = new __compactRuntime.CompactTypeVector(5, _descriptor_0);
353
228
 
354
- const _descriptor_27 = new __compactRuntime.CompactTypeVector(5, _descriptor_1);
229
+ const _descriptor_21 = new __compactRuntime.CompactTypeVector(3, _descriptor_0);
355
230
 
356
231
  class _Either_0 {
357
232
  alignment() {
358
- return _descriptor_8.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment()));
233
+ return _descriptor_18.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment()));
359
234
  }
360
235
  fromValue(value_0) {
361
236
  return {
362
- is_left: _descriptor_8.fromValue(value_0),
363
- left: _descriptor_1.fromValue(value_0),
364
- right: _descriptor_1.fromValue(value_0)
237
+ is_left: _descriptor_18.fromValue(value_0),
238
+ left: _descriptor_0.fromValue(value_0),
239
+ right: _descriptor_0.fromValue(value_0)
365
240
  }
366
241
  }
367
242
  toValue(value_0) {
368
- return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_1.toValue(value_0.left).concat(_descriptor_1.toValue(value_0.right)));
243
+ return _descriptor_18.toValue(value_0.is_left).concat(_descriptor_0.toValue(value_0.left).concat(_descriptor_0.toValue(value_0.right)));
369
244
  }
370
245
  }
371
246
 
372
- const _descriptor_28 = new _Either_0();
247
+ const _descriptor_22 = new _Either_0();
373
248
 
374
- const _descriptor_29 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
249
+ const _descriptor_23 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
375
250
 
376
- const _descriptor_30 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
251
+ const _descriptor_24 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
377
252
 
378
253
  export class Contract {
379
254
  witnesses;
@@ -387,23 +262,14 @@ export class Contract {
387
262
  }
388
263
  this.witnesses = witnesses_0;
389
264
  this.circuits = {
390
- noSchemaFamilyResolverHint(context, ...args_1) {
391
- return { result: pureCircuits.noSchemaFamilyResolverHint(...args_1), context };
392
- },
393
265
  assertValidSchemaRef(context, ...args_1) {
394
266
  return { result: pureCircuits.assertValidSchemaRef(...args_1), context };
395
267
  },
396
- assertValidSchemaCapabilities(context, ...args_1) {
397
- return { result: pureCircuits.assertValidSchemaCapabilities(...args_1), context };
398
- },
399
- assertValidSchemaFamilyResolutionHint(context, ...args_1) {
400
- return { result: pureCircuits.assertValidSchemaFamilyResolutionHint(...args_1), context };
401
- },
402
- assertValidSchemaDescriptor(context, ...args_1) {
403
- return { result: pureCircuits.assertValidSchemaDescriptor(...args_1), context };
268
+ assertMatchingSchemaRefs(context, ...args_1) {
269
+ return { result: pureCircuits.assertMatchingSchemaRefs(...args_1), context };
404
270
  },
405
- assertMatchingSchemaCapabilities(context, ...args_1) {
406
- return { result: pureCircuits.assertMatchingSchemaCapabilities(...args_1), context };
271
+ assertValidVerificationMethodRef(context, ...args_1) {
272
+ return { result: pureCircuits.assertValidVerificationMethodRef(...args_1), context };
407
273
  },
408
274
  verifySignature(context, ...args_1) {
409
275
  return { result: pureCircuits.verifySignature(...args_1), context };
@@ -414,6 +280,12 @@ export class Contract {
414
280
  presentationContextTag(context, ...args_1) {
415
281
  return { result: pureCircuits.presentationContextTag(...args_1), context };
416
282
  },
283
+ signerAuthorizationContextTag(context, ...args_1) {
284
+ return { result: pureCircuits.signerAuthorizationContextTag(...args_1), context };
285
+ },
286
+ verifierRequestContextTag(context, ...args_1) {
287
+ return { result: pureCircuits.verifierRequestContextTag(...args_1), context };
288
+ },
417
289
  issuanceProofPayloadRoot(context, ...args_1) {
418
290
  return { result: pureCircuits.issuanceProofPayloadRoot(...args_1), context };
419
291
  },
@@ -426,108 +298,66 @@ export class Contract {
426
298
  presentationProofChallenge(context, ...args_1) {
427
299
  return { result: pureCircuits.presentationProofChallenge(...args_1), context };
428
300
  },
301
+ signerAuthorizationProofChallenge(context, ...args_1) {
302
+ return { result: pureCircuits.signerAuthorizationProofChallenge(...args_1), context };
303
+ },
304
+ verifierRequestProofChallenge(context, ...args_1) {
305
+ return { result: pureCircuits.verifierRequestProofChallenge(...args_1), context };
306
+ },
429
307
  assertValidIssuanceContextProof(context, ...args_1) {
430
308
  return { result: pureCircuits.assertValidIssuanceContextProof(...args_1), context };
431
309
  },
432
310
  assertValidPresentationContextProof(context, ...args_1) {
433
311
  return { result: pureCircuits.assertValidPresentationContextProof(...args_1), context };
434
312
  },
435
- assertValidExplicitHolderBinding(context, ...args_1) {
436
- return { result: pureCircuits.assertValidExplicitHolderBinding(...args_1), context };
437
- },
438
- assertMatchingExplicitHolderBindings(context, ...args_1) {
439
- return { result: pureCircuits.assertMatchingExplicitHolderBindings(...args_1), context };
440
- },
441
- assertProofMatchesExplicitHolderBinding(context, ...args_1) {
442
- return { result: pureCircuits.assertProofMatchesExplicitHolderBinding(...args_1), context };
443
- },
444
- assertValidJubjubHolderBinding(context, ...args_1) {
445
- return { result: pureCircuits.assertValidJubjubHolderBinding(...args_1), context };
446
- },
447
- assertMatchingJubjubHolderBindings(context, ...args_1) {
448
- return { result: pureCircuits.assertMatchingJubjubHolderBindings(...args_1), context };
449
- },
450
- assertProofMatchesJubjubHolderBinding(context, ...args_1) {
451
- return { result: pureCircuits.assertProofMatchesJubjubHolderBinding(...args_1), context };
452
- },
453
- assertValidOffchainMidnightHolderBinding(context, ...args_1) {
454
- return { result: pureCircuits.assertValidOffchainMidnightHolderBinding(...args_1), context };
455
- },
456
- assertMatchingOffchainMidnightHolderBindings(context, ...args_1) {
457
- return { result: pureCircuits.assertMatchingOffchainMidnightHolderBindings(...args_1), context };
458
- },
459
- assertProofMatchesOffchainMidnightHolderBinding(context, ...args_1) {
460
- return { result: pureCircuits.assertProofMatchesOffchainMidnightHolderBinding(...args_1), context };
313
+ assertValidSignerAuthorizationContextProof(context, ...args_1) {
314
+ return { result: pureCircuits.assertValidSignerAuthorizationContextProof(...args_1), context };
461
315
  },
462
- noSecretHolderChallengeResponse(context, ...args_1) {
463
- return { result: pureCircuits.noSecretHolderChallengeResponse(...args_1), context };
316
+ assertValidVerifierRequestContextProof(context, ...args_1) {
317
+ return { result: pureCircuits.assertValidVerifierRequestContextProof(...args_1), context };
464
318
  },
465
- secretHolderBindingCommitment(context, ...args_1) {
466
- return { result: pureCircuits.secretHolderBindingCommitment(...args_1), context };
319
+ assertValidAuthorizedSignerDescriptor(context, ...args_1) {
320
+ return { result: pureCircuits.assertValidAuthorizedSignerDescriptor(...args_1), context };
467
321
  },
468
- secretHolderBindingChallengeResponse(context, ...args_1) {
469
- return { result: pureCircuits.secretHolderBindingChallengeResponse(...args_1), context };
322
+ authorizedSignerDescriptorRoot(context, ...args_1) {
323
+ return { result: pureCircuits.authorizedSignerDescriptorRoot(...args_1), context };
470
324
  },
471
- verifierScopedPseudonym(context, ...args_1) {
472
- return { result: pureCircuits.verifierScopedPseudonym(...args_1), context };
325
+ issuerScopeCommitment(context, ...args_1) {
326
+ return { result: pureCircuits.issuerScopeCommitment(...args_1), context };
473
327
  },
474
- assertVerifierScopedPseudonym(context, ...args_1) {
475
- return { result: pureCircuits.assertVerifierScopedPseudonym(...args_1), context };
328
+ assertProofSignerMatchesAuthorization(context, ...args_1) {
329
+ return { result: pureCircuits.assertProofSignerMatchesAuthorization(...args_1), context };
476
330
  },
477
- blindedSecretHolderCommitment(context, ...args_1) {
478
- return { result: pureCircuits.blindedSecretHolderCommitment(...args_1), context };
331
+ assertAuthorizedIssuerDescriptor(context, ...args_1) {
332
+ return { result: pureCircuits.assertAuthorizedIssuerDescriptor(...args_1), context };
479
333
  },
480
- assertValidSecretHolderCredentialBinding(context, ...args_1) {
481
- return { result: pureCircuits.assertValidSecretHolderCredentialBinding(...args_1), context };
334
+ assertAuthorizedVerifierProof(context, ...args_1) {
335
+ return { result: pureCircuits.assertAuthorizedVerifierProof(...args_1), context };
482
336
  },
483
- assertValidSecretHolderPresentationBinding(context, ...args_1) {
484
- return { result: pureCircuits.assertValidSecretHolderPresentationBinding(...args_1), context };
337
+ assertValidSignerAuthorizationAuthority(context, ...args_1) {
338
+ return { result: pureCircuits.assertValidSignerAuthorizationAuthority(...args_1), context };
485
339
  },
486
- assertMatchingSecretHolderBindings(context, ...args_1) {
487
- return { result: pureCircuits.assertMatchingSecretHolderBindings(...args_1), context };
340
+ signerAuthorizationDecisionRoot(context, ...args_1) {
341
+ return { result: pureCircuits.signerAuthorizationDecisionRoot(...args_1), context };
488
342
  },
489
- assertValidBlindedSecretHolderCredentialBinding(context, ...args_1) {
490
- return { result: pureCircuits.assertValidBlindedSecretHolderCredentialBinding(...args_1), context };
343
+ assertValidSignerAuthorizationProof(context, ...args_1) {
344
+ return { result: pureCircuits.assertValidSignerAuthorizationProof(...args_1), context };
491
345
  },
492
- assertValidBlindedSecretHolderPresentationBinding(context, ...args_1) {
493
- return { result: pureCircuits.assertValidBlindedSecretHolderPresentationBinding(...args_1), context };
494
- },
495
- assertMatchingBlindedSecretHolderBindings(context, ...args_1) {
496
- return { result: pureCircuits.assertMatchingBlindedSecretHolderBindings(...args_1), context };
497
- },
498
- assertSecretHolderBindingWitness(context, ...args_1) {
499
- return { result: pureCircuits.assertSecretHolderBindingWitness(...args_1), context };
500
- },
501
- assertBlindedSecretHolderBindingWitness(context, ...args_1) {
502
- return { result: pureCircuits.assertBlindedSecretHolderBindingWitness(...args_1), context };
503
- },
504
- protocolFeaturesAsSchemaCapabilities(context, ...args_1) {
505
- return { result: pureCircuits.protocolFeaturesAsSchemaCapabilities(...args_1), context };
506
- },
507
- assertProtocolFeaturesMatchSchemaCapabilities(context, ...args_1) {
508
- return { result: pureCircuits.assertProtocolFeaturesMatchSchemaCapabilities(...args_1), context };
509
- },
510
- noProtocolResponseReference(context, ...args_1) {
511
- return { result: pureCircuits.noProtocolResponseReference(...args_1), context };
512
- },
513
- assertValidVerificationMethodRef(context, ...args_1) {
514
- return { result: pureCircuits.assertValidVerificationMethodRef(...args_1), context };
346
+ assertValidSignerAuthorizationUpdate(context, ...args_1) {
347
+ return { result: pureCircuits.assertValidSignerAuthorizationUpdate(...args_1), context };
515
348
  },
516
- assertMatchingSchemaRefs(context, ...args_1) {
517
- return { result: pureCircuits.assertMatchingSchemaRefs(...args_1), context };
349
+ assertValidExplicitHolderBinding(context, ...args_1) {
350
+ return { result: pureCircuits.assertValidExplicitHolderBinding(...args_1), context };
518
351
  },
519
- assertValidProtocolMessageEnvelope(context, ...args_1) {
520
- return { result: pureCircuits.assertValidProtocolMessageEnvelope(...args_1), context };
352
+ assertMatchingExplicitHolderBindings(context, ...args_1) {
353
+ return { result: pureCircuits.assertMatchingExplicitHolderBindings(...args_1), context };
521
354
  },
522
- assertProtocolResponseEnvelope(context, ...args_1) {
523
- return { result: pureCircuits.assertProtocolResponseEnvelope(...args_1), context };
355
+ assertProofMatchesExplicitHolderBinding(context, ...args_1) {
356
+ return { result: pureCircuits.assertProofMatchesExplicitHolderBinding(...args_1), context };
524
357
  },
525
358
  assertValidStatusRegistryRef(context, ...args_1) {
526
359
  return { result: pureCircuits.assertValidStatusRegistryRef(...args_1), context };
527
360
  },
528
- assertValidNoStatusBinding(context, ...args_1) {
529
- return { result: pureCircuits.assertValidNoStatusBinding(...args_1), context };
530
- },
531
361
  assertValidRegistryBoundStatusBinding(context, ...args_1) {
532
362
  return { result: pureCircuits.assertValidRegistryBoundStatusBinding(...args_1), context };
533
363
  },
@@ -570,37 +400,39 @@ export class Contract {
570
400
  }
571
401
  }
572
402
  _transientHash_0(value_0) {
573
- const result_0 = __compactRuntime.transientHash(_descriptor_16, value_0);
403
+ const result_0 = __compactRuntime.transientHash(_descriptor_7, value_0);
574
404
  return result_0;
575
405
  }
576
406
  _transientHash_1(value_0) {
577
- const result_0 = __compactRuntime.transientHash(_descriptor_9, value_0);
407
+ const result_0 = __compactRuntime.transientHash(_descriptor_6, value_0);
578
408
  return result_0;
579
409
  }
580
410
  _persistentHash_0(value_0) {
581
- const result_0 = __compactRuntime.persistentHash(_descriptor_27, value_0);
411
+ const result_0 = __compactRuntime.persistentHash(_descriptor_21, value_0);
582
412
  return result_0;
583
413
  }
584
414
  _persistentHash_1(value_0) {
585
- const result_0 = __compactRuntime.persistentHash(_descriptor_3, value_0);
415
+ const result_0 = __compactRuntime.persistentHash(_descriptor_20, value_0);
586
416
  return result_0;
587
417
  }
588
418
  _persistentHash_2(value_0) {
589
- const result_0 = __compactRuntime.persistentHash(_descriptor_26, value_0);
419
+ const result_0 = __compactRuntime.persistentHash(_descriptor_2, value_0);
590
420
  return result_0;
591
421
  }
592
422
  _persistentHash_3(value_0) {
593
- const result_0 = __compactRuntime.persistentHash(_descriptor_25, value_0);
423
+ const result_0 = __compactRuntime.persistentHash(_descriptor_17, value_0);
594
424
  return result_0;
595
425
  }
596
426
  _persistentHash_4(value_0) {
597
- const result_0 = __compactRuntime.persistentHash(_descriptor_5, value_0);
427
+ const result_0 = __compactRuntime.persistentHash(_descriptor_19, value_0);
428
+ return result_0;
429
+ }
430
+ _persistentHash_5(value_0) {
431
+ const result_0 = __compactRuntime.persistentHash(_descriptor_15, value_0);
598
432
  return result_0;
599
433
  }
600
- _persistentCommit_0(value_0, rand_0) {
601
- const result_0 = __compactRuntime.persistentCommit(_descriptor_1,
602
- value_0,
603
- rand_0);
434
+ _persistentHash_6(value_0) {
435
+ const result_0 = __compactRuntime.persistentHash(_descriptor_4, value_0);
604
436
  return result_0;
605
437
  }
606
438
  _degradeToTransient_0(x_0) {
@@ -631,9 +463,6 @@ export class Contract {
631
463
  const result_0 = __compactRuntime.ecMulGenerator(b_0);
632
464
  return result_0;
633
465
  }
634
- _noSchemaFamilyResolverHint_0() {
635
- return new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 58, 118, 99, 58, 115, 99, 104, 101, 109, 97, 58, 110, 111, 45, 104, 105, 110, 116, 0, 0, 0, 0, 0, 0]);
636
- }
637
466
  _assertValidSchemaRef_0(schema_0) {
638
467
  __compactRuntime.assert(!this._equal_0(schema_0.packageId,
639
468
  new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
@@ -646,47 +475,56 @@ export class Contract {
646
475
  'Schema major version must be positive');
647
476
  return [];
648
477
  }
649
- _assertValidSchemaCapabilities_0(capabilities_0) { return []; }
650
- _assertValidSchemaFamilyResolutionHint_0(hint_0) {
651
- const noHint_0 = this._noSchemaFamilyResolverHint_0();
652
- if (hint_0.hasResolverHint) {
653
- __compactRuntime.assert(!this._equal_2(hint_0.resolverHint, noHint_0),
654
- 'Schema resolver hint must be set');
655
- __compactRuntime.assert(!this._equal_3(hint_0.resolverHint,
656
- new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
657
- 'Schema resolver hint must not be empty');
658
- } else {
659
- __compactRuntime.assert(this._equal_4(hint_0.resolverHint, noHint_0),
660
- 'Absent schema resolver hint must use the no-hint sentinel');
661
- }
478
+ _assertMatchingSchemaRefs_0(expected_0, actual_0) {
479
+ this._assertValidSchemaRef_0(expected_0);
480
+ this._assertValidSchemaRef_0(actual_0);
481
+ __compactRuntime.assert(this._equal_2(expected_0.packageId,
482
+ actual_0.packageId)
483
+ &&
484
+ this._equal_3(expected_0.schemaId, actual_0.schemaId)
485
+ &&
486
+ this._equal_4(expected_0.majorVersion,
487
+ actual_0.majorVersion)
488
+ &&
489
+ this._equal_5(expected_0.minorVersion,
490
+ actual_0.minorVersion),
491
+ 'Schema reference mismatch');
662
492
  return [];
663
493
  }
664
- _assertValidSchemaDescriptor_0(descriptor_0) {
665
- this._assertValidSchemaRef_0(descriptor_0.schema);
666
- this._assertValidSchemaCapabilities_0(descriptor_0.capabilities);
667
- this._assertValidSchemaFamilyResolutionHint_0(descriptor_0.familyResolutionHint);
494
+ _assertValidVerificationMethodRef_0(verificationMethodRef_0) {
495
+ __compactRuntime.assert(!this._equal_6(verificationMethodRef_0.controllerAddress.bytes,
496
+ new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
497
+ 'Verification method controller address must be set');
498
+ __compactRuntime.assert(!this._equal_7(verificationMethodRef_0.methodId,
499
+ new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
500
+ 'Verification method reference must be set');
668
501
  return [];
669
502
  }
670
- _assertMatchingSchemaCapabilities_0(expected_0, actual_0) {
671
- __compactRuntime.assert(expected_0.supportsSelectiveDisclosure
672
- ===
673
- actual_0.supportsSelectiveDisclosure
674
- &&
675
- expected_0.supportsPredicateProofs
503
+ _assertMatchingJubjubPoints_0(expected_0, actual_0) {
504
+ __compactRuntime.assert(this._jubjubPointX_0(expected_0)
676
505
  ===
677
- actual_0.supportsPredicateProofs
506
+ this._jubjubPointX_0(actual_0)
678
507
  &&
679
- expected_0.supportsVerifierScopedPseudonym
508
+ this._jubjubPointY_0(expected_0)
680
509
  ===
681
- actual_0.supportsVerifierScopedPseudonym
682
- &&
683
- expected_0.supportsSameHolderProof
684
- ===
685
- actual_0.supportsSameHolderProof,
686
- 'Schema capabilities mismatch');
510
+ this._jubjubPointY_0(actual_0),
511
+ 'Jubjub points do not match');
512
+ return [];
513
+ }
514
+ _assertUsableJubjubPoint_0(point_0) {
515
+ __compactRuntime.assert(this._jubjubPointX_0(point_0) !== 0n
516
+ ||
517
+ this._jubjubPointY_0(point_0) !== 1n,
518
+ 'Jubjub point must not be the identity point');
519
+ const subgroupProjection_0 = this._ecMul_0(this._ecMul_0(point_0,
520
+ 819310549611346726241370945440405716213240158234039660170669895299022906775n),
521
+ 8n);
522
+ this._assertMatchingJubjubPoints_0(point_0, subgroupProjection_0);
687
523
  return [];
688
524
  }
689
525
  _verifySignature_0(pk_0, signature_0, challenge_0) {
526
+ this._assertUsableJubjubPoint_0(pk_0);
527
+ this._assertUsableJubjubPoint_0(signature_0.r);
690
528
  const leftSide_0 = this._ecMulGenerator_0(signature_0.s);
691
529
  const cPk_0 = this._ecMul_0(pk_0, challenge_0);
692
530
  const rightSide_0 = this._ecAdd_0(signature_0.r, cPk_0);
@@ -706,21 +544,28 @@ export class Contract {
706
544
  _presentationContextTag_0() {
707
545
  return new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 58, 118, 99, 58, 112, 114, 101, 115, 101, 110, 116, 97, 116, 105, 111, 110, 0, 0, 0, 0, 0, 0, 0, 0]);
708
546
  }
547
+ _signerAuthorizationContextTag_0() {
548
+ return new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 58, 118, 99, 58, 115, 105, 103, 110, 101, 114, 45, 97, 117, 116, 104, 58, 118, 49, 0, 0, 0, 0, 0, 0]);
549
+ }
550
+ _verifierRequestContextTag_0() {
551
+ return new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 58, 118, 99, 58, 118, 101, 114, 105, 102, 105, 101, 114, 45, 114, 101, 113, 58, 118, 49, 0, 0, 0, 0, 0]);
552
+ }
709
553
  _proofPayloadRootForContext_0(bodyRoot_0, contextTag_0, proof_0) {
710
- return this._persistentHash_0([bodyRoot_0,
554
+ return this._persistentHash_1([bodyRoot_0,
711
555
  contextTag_0,
712
- this._persistentHash_1(proof_0.signerVerificationMethodRef),
556
+ this._persistentHash_2(proof_0.signerVerificationMethodRef),
713
557
  this._upgradeFromTransient_0(this._transientHash_1(proof_0.createdAt)),
714
558
  proof_0.challengeHash]);
715
559
  }
716
560
  _proofChallengeForContext_0(bodyRoot_0, contextTag_0, proof_0) {
717
- return this._degradeToTransient_0(this._persistentHash_2([this._proofPayloadRootForContext_0(bodyRoot_0,
561
+ return this._degradeToTransient_0(this._persistentHash_0([this._proofPayloadRootForContext_0(bodyRoot_0,
718
562
  contextTag_0,
719
563
  proof_0),
720
564
  this._upgradeFromTransient_0(this._transientHash_0(proof_0.publicKey)),
721
565
  this._upgradeFromTransient_0(this._transientHash_0(proof_0.signature.r))]));
722
566
  }
723
567
  _assertValidProofForContext_0(bodyRoot_0, contextTag_0, proof_0) {
568
+ this._assertValidVerificationMethodRef_0(proof_0.signerVerificationMethodRef);
724
569
  __compactRuntime.assert(this._verifySignature_0(proof_0.publicKey,
725
570
  proof_0.signature,
726
571
  this._proofChallengeForContext_0(bodyRoot_0,
@@ -749,6 +594,16 @@ export class Contract {
749
594
  this._presentationContextTag_0(),
750
595
  proof_0);
751
596
  }
597
+ _signerAuthorizationProofChallenge_0(bodyRoot_0, proof_0) {
598
+ return this._proofChallengeForContext_0(bodyRoot_0,
599
+ this._signerAuthorizationContextTag_0(),
600
+ proof_0);
601
+ }
602
+ _verifierRequestProofChallenge_0(requestScopeCommitment_0, proof_0) {
603
+ return this._proofChallengeForContext_0(requestScopeCommitment_0,
604
+ this._verifierRequestContextTag_0(),
605
+ proof_0);
606
+ }
752
607
  _assertValidIssuanceContextProof_0(bodyRoot_0, proof_0) {
753
608
  this._assertValidProofForContext_0(bodyRoot_0,
754
609
  this._issuanceContextTag_0(),
@@ -761,320 +616,201 @@ export class Contract {
761
616
  proof_0);
762
617
  return [];
763
618
  }
764
- _assertValidExplicitHolderBinding_0(binding_0) {
765
- __compactRuntime.assert(!this._equal_5(binding_0.holderVerificationMethodRef.didContractAddress.bytes,
766
- new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
767
- 'Explicit holder binding DID contract address must be set');
768
- __compactRuntime.assert(!this._equal_6(binding_0.holderVerificationMethodRef.methodId,
769
- new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
770
- 'Explicit holder binding method reference must be set');
771
- return [];
772
- }
773
- _assertMatchingExplicitHolderBindings_0(credentialBinding_0,
774
- presentationBinding_0)
775
- {
776
- __compactRuntime.assert(this._equal_7(presentationBinding_0.holderVerificationMethodRef.didContractAddress,
777
- credentialBinding_0.holderVerificationMethodRef.didContractAddress),
778
- 'Presentation holder contract does not match credential holder binding');
779
- __compactRuntime.assert(this._equal_8(presentationBinding_0.holderVerificationMethodRef.methodId,
780
- credentialBinding_0.holderVerificationMethodRef.methodId),
781
- 'Presentation holder method reference does not match credential holder binding');
782
- return [];
783
- }
784
- _assertProofMatchesExplicitHolderBinding_0(binding_0, presentationProof_0) {
785
- __compactRuntime.assert(this._equal_9(binding_0.holderVerificationMethodRef.didContractAddress,
786
- presentationProof_0.signerVerificationMethodRef.didContractAddress),
787
- 'Presentation proof signer must match holder binding');
788
- __compactRuntime.assert(this._equal_10(binding_0.holderVerificationMethodRef.methodId,
789
- presentationProof_0.signerVerificationMethodRef.methodId),
790
- 'Presentation proof signer method reference must match holder binding');
791
- return [];
792
- }
793
- _assertValidJubjubHolderBinding_0(binding_0) {
794
- __compactRuntime.assert(this._jubjubPointX_0(binding_0.holderPublicKey)
795
- !==
796
- 0n
797
- ||
798
- this._jubjubPointY_0(binding_0.holderPublicKey)
799
- !==
800
- 0n,
801
- 'Jubjub holder binding public key must be set');
802
- return [];
803
- }
804
- _assertMatchingJubjubHolderBindings_0(credentialBinding_0,
805
- presentationBinding_0)
806
- {
807
- __compactRuntime.assert(this._jubjubPointX_0(presentationBinding_0.holderPublicKey)
808
- ===
809
- this._jubjubPointX_0(credentialBinding_0.holderPublicKey)
810
- &&
811
- this._jubjubPointY_0(presentationBinding_0.holderPublicKey)
812
- ===
813
- this._jubjubPointY_0(credentialBinding_0.holderPublicKey),
814
- 'Presentation Jubjub holder key does not match the credential holder binding');
619
+ _assertValidSignerAuthorizationContextProof_0(bodyRoot_0, proof_0) {
620
+ this._assertValidProofForContext_0(bodyRoot_0,
621
+ this._signerAuthorizationContextTag_0(),
622
+ proof_0);
815
623
  return [];
816
624
  }
817
- _assertProofMatchesJubjubHolderBinding_0(binding_0, presentationProof_0) {
818
- __compactRuntime.assert(this._jubjubPointX_0(binding_0.holderPublicKey)
819
- ===
820
- this._jubjubPointX_0(presentationProof_0.publicKey)
821
- &&
822
- this._jubjubPointY_0(binding_0.holderPublicKey)
823
- ===
824
- this._jubjubPointY_0(presentationProof_0.publicKey),
825
- 'Presentation proof public key must match the Jubjub holder binding');
625
+ _assertValidVerifierRequestContextProof_0(requestScopeCommitment_0, proof_0) {
626
+ this._assertValidProofForContext_0(requestScopeCommitment_0,
627
+ this._verifierRequestContextTag_0(),
628
+ proof_0);
826
629
  return [];
827
630
  }
828
- _assertValidOffchainMidnightHolderBinding_0(binding_0) {
829
- __compactRuntime.assert(!this._equal_11(binding_0.holderDidStateHash,
631
+ _assertValidAuthorizedSignerDescriptor_0(descriptor_0) {
632
+ __compactRuntime.assert(this._equal_8(descriptor_0.version, 1n),
633
+ 'Signer authorization version mismatch');
634
+ __compactRuntime.assert(!this._equal_9(descriptor_0.authorizationId,
635
+ new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
636
+ 'Signer authorization id must be set');
637
+ let t_0;
638
+ __compactRuntime.assert((t_0 = descriptor_0.decisionSequence, t_0 > 0n),
639
+ 'Signer authorization decision sequence must be positive');
640
+ this._assertValidVerificationMethodRef_0(descriptor_0.signerVerificationMethodRef);
641
+ this._assertUsableJubjubPoint_0(descriptor_0.signerPublicKey);
642
+ let t_1;
643
+ __compactRuntime.assert((t_1 = descriptor_0.didStateVersion, t_1 > 0n),
644
+ 'Signer authorization DID state version must be positive');
645
+ __compactRuntime.assert(!this._equal_10(descriptor_0.scopeCommitment,
830
646
  new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
831
- 'Offchain Midnight holder state hash must be set');
832
- __compactRuntime.assert(!this._equal_12(binding_0.holderMethodId,
647
+ 'Signer authorization scope commitment must be set');
648
+ __compactRuntime.assert(!this._equal_11(descriptor_0.policyCommitment,
833
649
  new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
834
- 'Offchain Midnight holder method id must be set');
835
- const jubjubBinding_0 = { holderPublicKey: binding_0.holderPublicKey };
836
- this._assertValidJubjubHolderBinding_0(jubjubBinding_0);
650
+ 'Signer authorization policy commitment must be set');
651
+ if (descriptor_0.role === 0) {
652
+ __compactRuntime.assert(descriptor_0.verificationRelationship === 0,
653
+ 'Issuer authorization requires assertionMethod');
654
+ } else {
655
+ __compactRuntime.assert(descriptor_0.verificationRelationship === 1
656
+ ||
657
+ descriptor_0.verificationRelationship === 2,
658
+ 'Verifier authorization requires authentication or capabilityInvocation');
659
+ }
837
660
  return [];
838
661
  }
839
- _assertMatchingOffchainMidnightHolderBindings_0(credentialBinding_0,
840
- presentationBinding_0)
841
- {
842
- __compactRuntime.assert(this._equal_13(presentationBinding_0.holderDidStateHash,
843
- credentialBinding_0.holderDidStateHash),
844
- 'Offchain Midnight holder state hash does not match the credential holder binding');
845
- __compactRuntime.assert(this._equal_14(presentationBinding_0.holderMethodId,
846
- credentialBinding_0.holderMethodId),
847
- 'Offchain Midnight holder method id does not match the credential holder binding');
848
- const credentialJubjubBinding_0 = { holderPublicKey:
849
- credentialBinding_0.holderPublicKey };
850
- const presentationJubjubBinding_0 = { holderPublicKey:
851
- presentationBinding_0.holderPublicKey };
852
- this._assertMatchingJubjubHolderBindings_0(credentialJubjubBinding_0,
853
- presentationJubjubBinding_0);
662
+ _authorizedSignerDescriptorRoot_0(descriptor_0) {
663
+ this._assertValidAuthorizedSignerDescriptor_0(descriptor_0);
664
+ return this._authorizedSignerDescriptorHash_0(descriptor_0);
665
+ }
666
+ _authorizedSignerDescriptorHash_0(descriptor_0) {
667
+ return this._persistentHash_5(descriptor_0);
668
+ }
669
+ _issuerScopeCommitment_0(schema_0) {
670
+ this._assertValidSchemaRef_0(schema_0);
671
+ return this._persistentHash_3(schema_0);
672
+ }
673
+ _assertProofSignerMatchesAuthorization_0(proof_0, descriptor_0) {
674
+ this._assertValidAuthorizedSignerDescriptor_0(descriptor_0);
675
+ __compactRuntime.assert(descriptor_0.state === 0,
676
+ 'Signer authorization must be active');
677
+ __compactRuntime.assert(this._equal_12(proof_0.signerVerificationMethodRef.controllerAddress,
678
+ descriptor_0.signerVerificationMethodRef.controllerAddress),
679
+ 'Proof signer controller does not match authorization');
680
+ __compactRuntime.assert(this._equal_13(proof_0.signerVerificationMethodRef.methodId,
681
+ descriptor_0.signerVerificationMethodRef.methodId),
682
+ 'Proof signer method does not match authorization');
683
+ this._assertMatchingJubjubPoints_0(descriptor_0.signerPublicKey,
684
+ proof_0.publicKey);
854
685
  return [];
855
686
  }
856
- _assertProofMatchesOffchainMidnightHolderBinding_0(binding_0,
857
- presentationProof_0)
858
- {
859
- const jubjubBinding_0 = { holderPublicKey: binding_0.holderPublicKey };
860
- this._assertProofMatchesJubjubHolderBinding_0(jubjubBinding_0,
861
- presentationProof_0);
687
+ _assertAuthorizedIssuerDescriptor_0(schema_0, proof_0, descriptor_0) {
688
+ this._assertProofSignerMatchesAuthorization_0(proof_0, descriptor_0);
689
+ __compactRuntime.assert(descriptor_0.role === 0,
690
+ 'Signer authorization role must be issuer');
691
+ __compactRuntime.assert(this._equal_14(descriptor_0.scopeCommitment,
692
+ this._issuerScopeCommitment_0(schema_0)),
693
+ 'Issuer authorization scope does not match schema');
862
694
  return [];
863
695
  }
864
- _noSecretHolderChallengeResponse_0() {
865
- return new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 58, 118, 99, 58, 110, 111, 45, 104, 111, 108, 100, 101, 114, 45, 114, 101, 115, 112, 111, 110, 115, 101, 0, 0]);
866
- }
867
- _secretHolderBindingCommitment_0(holderSecret_0, opening_0) {
868
- return this._persistentCommit_0(holderSecret_0, opening_0);
869
- }
870
- _secretHolderBindingChallengeResponse_0(holderSecret_0,
871
- verifierChallengeHash_0)
696
+ _assertAuthorizedVerifierProof_0(requestScopeCommitment_0,
697
+ proof_0,
698
+ descriptor_0)
872
699
  {
873
- return this._persistentHash_2([new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 58, 118, 99, 58, 104, 111, 108, 100, 101, 114, 45, 99, 104, 97, 108, 108, 0, 0, 0, 0, 0, 0, 0, 0]),
874
- holderSecret_0,
875
- verifierChallengeHash_0]);
876
- }
877
- _verifierScopedPseudonym_0(holderSecret_0, verifierDomainHash_0) {
878
- return this._persistentHash_2([new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 58, 118, 99, 58, 104, 111, 108, 100, 101, 114, 45, 112, 115, 101, 117, 100, 111, 110, 121, 109, 0, 0, 0, 0]),
879
- holderSecret_0,
880
- verifierDomainHash_0]);
881
- }
882
- _assertVerifierScopedPseudonym_0(pseudonym_0,
883
- holderSecret_0,
884
- verifierDomainHash_0)
885
- {
886
- __compactRuntime.assert(this._equal_15(pseudonym_0,
887
- this._verifierScopedPseudonym_0(holderSecret_0,
888
- verifierDomainHash_0)),
889
- 'Verifier-scoped pseudonym does not match the holder secret and verifier domain');
700
+ __compactRuntime.assert(!this._equal_15(requestScopeCommitment_0,
701
+ new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
702
+ 'Verifier request scope commitment must be set');
703
+ this._assertProofSignerMatchesAuthorization_0(proof_0, descriptor_0);
704
+ __compactRuntime.assert(descriptor_0.role === 1,
705
+ 'Signer authorization role must be verifier');
706
+ __compactRuntime.assert(this._equal_16(descriptor_0.scopeCommitment,
707
+ requestScopeCommitment_0),
708
+ 'Verifier authorization scope does not match request');
709
+ this._assertValidVerifierRequestContextProof_0(requestScopeCommitment_0,
710
+ proof_0);
890
711
  return [];
891
712
  }
892
- _blindedSecretHolderCommitment_0(holderSecretCommitment_0,
893
- issuerNonce_0,
894
- blindingFactor_0)
895
- {
896
- return this._persistentHash_3([new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 58, 118, 99, 58, 98, 108, 105, 110, 100, 45, 104, 111, 108, 100, 101, 114, 0, 0, 0, 0, 0, 0, 0, 0]),
897
- holderSecretCommitment_0,
898
- issuerNonce_0,
899
- blindingFactor_0]);
900
- }
901
- _assertValidSecretHolderCredentialBinding_0(binding_0) {
902
- __compactRuntime.assert(this._equal_16(binding_0.requestChallengeResponse,
903
- this._noSecretHolderChallengeResponse_0()),
904
- 'Credential secret holder binding must not embed a request challenge response');
713
+ _assertValidSignerAuthorizationAuthority_0(authority_0) {
714
+ __compactRuntime.assert(!this._equal_17(authority_0.domainCommitment,
715
+ new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
716
+ 'Signer authorization authority domain must be set');
717
+ this._assertValidVerificationMethodRef_0(authority_0.verificationMethodRef);
718
+ this._assertUsableJubjubPoint_0(authority_0.publicKey);
905
719
  return [];
906
720
  }
907
- _assertValidSecretHolderPresentationBinding_0(binding_0) {
908
- __compactRuntime.assert(!this._equal_17(binding_0.requestChallengeResponse,
909
- this._noSecretHolderChallengeResponse_0()),
910
- 'Presentation secret holder binding must include a request challenge response');
911
- return [];
721
+ _signerAuthorizationDecisionRoot_0(descriptor_0, domainCommitment_0) {
722
+ this._assertValidAuthorizedSignerDescriptor_0(descriptor_0);
723
+ __compactRuntime.assert(!this._equal_18(domainCommitment_0,
724
+ new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
725
+ 'Signer authorization authority domain must be set');
726
+ return this._persistentHash_4([domainCommitment_0,
727
+ this._authorizedSignerDescriptorHash_0(descriptor_0)]);
912
728
  }
913
- _assertMatchingSecretHolderBindings_0(credentialBinding_0,
914
- presentationBinding_0)
729
+ _assertValidSignerAuthorizationProof_0(descriptor_0,
730
+ authorizationProof_0,
731
+ authority_0)
915
732
  {
916
- __compactRuntime.assert(this._equal_18(credentialBinding_0.holderSecretCommitment,
917
- presentationBinding_0.holderSecretCommitment),
918
- 'Presentation holder secret commitment does not match the credential holder binding');
919
- return [];
920
- }
921
- _assertValidBlindedSecretHolderCredentialBinding_0(binding_0) {
922
- __compactRuntime.assert(this._equal_19(binding_0.requestChallengeResponse,
923
- this._noSecretHolderChallengeResponse_0()),
924
- 'Credential blinded holder binding must not embed a request challenge response');
925
- return [];
926
- }
927
- _assertValidBlindedSecretHolderPresentationBinding_0(binding_0) {
928
- __compactRuntime.assert(!this._equal_20(binding_0.requestChallengeResponse,
929
- this._noSecretHolderChallengeResponse_0()),
930
- 'Presentation blinded holder binding must include a request challenge response');
733
+ this._assertValidAuthorizedSignerDescriptor_0(descriptor_0);
734
+ this._assertValidSignerAuthorizationAuthority_0(authority_0);
735
+ __compactRuntime.assert(this._equal_19(authorizationProof_0.createdAt,
736
+ descriptor_0.decisionSequence),
737
+ 'Authorization proof sequence does not match descriptor');
738
+ __compactRuntime.assert(this._equal_20(authorizationProof_0.signerVerificationMethodRef.controllerAddress,
739
+ authority_0.verificationMethodRef.controllerAddress),
740
+ 'Authorization proof controller does not match authority');
741
+ __compactRuntime.assert(this._equal_21(authorizationProof_0.signerVerificationMethodRef.methodId,
742
+ authority_0.verificationMethodRef.methodId),
743
+ 'Authorization proof method does not match authority');
744
+ this._assertMatchingJubjubPoints_0(authority_0.publicKey,
745
+ authorizationProof_0.publicKey);
746
+ this._assertValidSignerAuthorizationContextProof_0(this._signerAuthorizationDecisionRoot_0(descriptor_0,
747
+ authority_0.domainCommitment),
748
+ authorizationProof_0);
931
749
  return [];
932
750
  }
933
- _assertMatchingBlindedSecretHolderBindings_0(credentialBinding_0,
934
- presentationBinding_0)
935
- {
936
- __compactRuntime.assert(this._equal_21(credentialBinding_0.blindedHolderSecretCommitment,
937
- presentationBinding_0.blindedHolderSecretCommitment),
938
- 'Presentation blinded holder commitment does not match the credential holder binding');
939
- __compactRuntime.assert(this._equal_22(credentialBinding_0.issuerNonce,
940
- presentationBinding_0.issuerNonce),
941
- 'Presentation issuer nonce does not match the credential holder binding');
751
+ _assertValidSignerAuthorizationUpdate_0(previous_0, next_0) {
752
+ this._assertValidAuthorizedSignerDescriptor_0(previous_0);
753
+ this._assertValidAuthorizedSignerDescriptor_0(next_0);
754
+ __compactRuntime.assert(this._equal_22(previous_0.authorizationId,
755
+ next_0.authorizationId),
756
+ 'Signer authorization update id mismatch');
757
+ let t_0;
758
+ __compactRuntime.assert((t_0 = next_0.decisionSequence,
759
+ t_0 > previous_0.decisionSequence),
760
+ 'Signer authorization update sequence must increase');
761
+ let t_1;
762
+ __compactRuntime.assert((t_1 = next_0.didStateVersion,
763
+ t_1 >= previous_0.didStateVersion),
764
+ 'Signer authorization DID state version must not decrease');
765
+ __compactRuntime.assert(previous_0.state !== 2 || next_0.state === 2,
766
+ 'Revoked signer authorization must remain revoked');
942
767
  return [];
943
768
  }
944
- _assertSecretHolderBindingWitness_0(binding_0,
945
- verifierChallengeHash_0,
946
- holderSecret_0,
947
- opening_0)
948
- {
949
- __compactRuntime.assert(this._equal_23(this._secretHolderBindingCommitment_0(holderSecret_0,
950
- opening_0),
951
- binding_0.holderSecretCommitment),
952
- 'Holder secret witness does not match the holder-binding commitment');
953
- __compactRuntime.assert(this._equal_24(this._secretHolderBindingChallengeResponse_0(holderSecret_0,
954
- verifierChallengeHash_0),
955
- binding_0.requestChallengeResponse),
956
- 'Holder secret challenge response does not match the verifier challenge');
769
+ _assertValidExplicitHolderBinding_0(binding_0) {
770
+ this._assertValidVerificationMethodRef_0(binding_0.holderVerificationMethodRef);
957
771
  return [];
958
772
  }
959
- _assertBlindedSecretHolderBindingWitness_0(binding_0,
960
- verifierChallengeHash_0,
961
- holderSecret_0,
962
- opening_0,
963
- blindingFactor_0)
773
+ _assertMatchingExplicitHolderBindings_0(credentialBinding_0,
774
+ presentationBinding_0)
964
775
  {
965
- const holderCommitment_0 = this._secretHolderBindingCommitment_0(holderSecret_0,
966
- opening_0);
967
- __compactRuntime.assert(this._equal_25(this._blindedSecretHolderCommitment_0(holderCommitment_0,
968
- binding_0.issuerNonce,
969
- blindingFactor_0),
970
- binding_0.blindedHolderSecretCommitment),
971
- 'Blinded holder commitment does not match the hidden holder secret witness');
972
- __compactRuntime.assert(this._equal_26(this._secretHolderBindingChallengeResponse_0(holderSecret_0,
973
- verifierChallengeHash_0),
974
- binding_0.requestChallengeResponse),
975
- 'Blinded holder challenge response does not match the verifier challenge');
976
- return [];
977
- }
978
- _protocolFeaturesAsSchemaCapabilities_0(features_0) {
979
- return { supportsSelectiveDisclosure: features_0.supportsSelectiveDisclosure,
980
- supportsPredicateProofs: features_0.supportsPredicateProofs,
981
- supportsVerifierScopedPseudonym:
982
- features_0.supportsVerifierScopedPseudonym,
983
- supportsSameHolderProof: features_0.supportsSameHolderProof };
984
- }
985
- _assertProtocolFeaturesMatchSchemaCapabilities_0(features_0, capabilities_0) {
986
- this._assertMatchingSchemaCapabilities_0(this._protocolFeaturesAsSchemaCapabilities_0(features_0),
987
- capabilities_0);
988
- return [];
989
- }
990
- _noProtocolResponseReference_0() {
991
- return new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 58, 118, 99, 58, 112, 114, 111, 116, 111, 99, 111, 108, 58, 110, 111, 110, 101, 0, 0, 0, 0, 0, 0, 0]);
992
- }
993
- _assertValidVerificationMethodRef_0(verificationMethodRef_0) {
994
- __compactRuntime.assert(!this._equal_27(verificationMethodRef_0.methodId,
995
- new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
996
- 'Verification method reference must be set');
997
- return [];
998
- }
999
- _assertMatchingSchemaRefs_0(expected_0, actual_0) {
1000
- this._assertValidSchemaRef_0(expected_0);
1001
- this._assertValidSchemaRef_0(actual_0);
1002
- __compactRuntime.assert(this._equal_28(expected_0.packageId,
1003
- actual_0.packageId)
1004
- &&
1005
- this._equal_29(expected_0.schemaId,
1006
- actual_0.schemaId)
1007
- &&
1008
- this._equal_30(expected_0.majorVersion,
1009
- actual_0.majorVersion)
1010
- &&
1011
- this._equal_31(expected_0.minorVersion,
1012
- actual_0.minorVersion),
1013
- 'Schema reference mismatch');
1014
- return [];
1015
- }
1016
- _assertValidProtocolMessageEnvelope_0(envelope_0) {
1017
- const noResponse_0 = this._noProtocolResponseReference_0();
1018
- __compactRuntime.assert(this._equal_32(envelope_0.version, 1n),
1019
- 'Protocol message version mismatch');
1020
- __compactRuntime.assert(!this._equal_33(envelope_0.messageId, noResponse_0),
1021
- 'Protocol message id must be set');
1022
- __compactRuntime.assert(!this._equal_34(envelope_0.threadId, noResponse_0),
1023
- 'Protocol thread id must be set');
1024
- if (envelope_0.initialMessage) {
1025
- __compactRuntime.assert(this._equal_35(envelope_0.respondsToMessageId,
1026
- noResponse_0),
1027
- 'Initial protocol message must not reference a previous message');
1028
- } else {
1029
- __compactRuntime.assert(!this._equal_36(envelope_0.respondsToMessageId,
1030
- noResponse_0),
1031
- 'Protocol response message must reference a previous message');
1032
- }
1033
- if (envelope_0.hasExpiresAt) {
1034
- let t_0;
1035
- __compactRuntime.assert((t_0 = envelope_0.expiresAt,
1036
- t_0 >= envelope_0.createdAt),
1037
- 'Protocol message expiration must not precede creation');
1038
- }
776
+ this._assertValidExplicitHolderBinding_0(credentialBinding_0);
777
+ this._assertValidExplicitHolderBinding_0(presentationBinding_0);
778
+ __compactRuntime.assert(this._equal_23(presentationBinding_0.holderVerificationMethodRef.controllerAddress,
779
+ credentialBinding_0.holderVerificationMethodRef.controllerAddress),
780
+ 'Presentation holder controller does not match credential holder binding');
781
+ __compactRuntime.assert(this._equal_24(presentationBinding_0.holderVerificationMethodRef.methodId,
782
+ credentialBinding_0.holderVerificationMethodRef.methodId),
783
+ 'Presentation holder method reference does not match credential holder binding');
1039
784
  return [];
1040
785
  }
1041
- _assertProtocolResponseEnvelope_0(requestEnvelope_0, responseEnvelope_0) {
1042
- this._assertValidProtocolMessageEnvelope_0(requestEnvelope_0);
1043
- this._assertValidProtocolMessageEnvelope_0(responseEnvelope_0);
1044
- __compactRuntime.assert(!responseEnvelope_0.initialMessage,
1045
- 'Protocol response must not be initial');
1046
- __compactRuntime.assert(this._equal_37(responseEnvelope_0.threadId,
1047
- requestEnvelope_0.threadId),
1048
- 'Protocol response thread id does not match the request thread id');
1049
- __compactRuntime.assert(this._equal_38(responseEnvelope_0.respondsToMessageId,
1050
- requestEnvelope_0.messageId),
1051
- 'Protocol response does not reference the request message id');
1052
- let t_0;
1053
- __compactRuntime.assert((t_0 = responseEnvelope_0.createdAt,
1054
- t_0 >= requestEnvelope_0.createdAt),
1055
- 'Protocol response creation time must not precede the request');
786
+ _assertProofMatchesExplicitHolderBinding_0(binding_0, presentationProof_0) {
787
+ this._assertValidExplicitHolderBinding_0(binding_0);
788
+ this._assertValidVerificationMethodRef_0(presentationProof_0.signerVerificationMethodRef);
789
+ __compactRuntime.assert(this._equal_25(binding_0.holderVerificationMethodRef.controllerAddress,
790
+ presentationProof_0.signerVerificationMethodRef.controllerAddress),
791
+ 'Presentation proof signer must match holder binding');
792
+ __compactRuntime.assert(this._equal_26(binding_0.holderVerificationMethodRef.methodId,
793
+ presentationProof_0.signerVerificationMethodRef.methodId),
794
+ 'Presentation proof signer method reference must match holder binding');
1056
795
  return [];
1057
796
  }
1058
797
  _assertValidStatusRegistryRef_0(registryRef_0) {
1059
- __compactRuntime.assert(!this._equal_39(registryRef_0.registryId,
798
+ __compactRuntime.assert(!this._equal_27(registryRef_0.registryId,
1060
799
  new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
1061
800
  'Status registry id must be set');
1062
801
  this._assertValidVerificationMethodRef_0(registryRef_0.authorityVerificationMethodRef);
1063
802
  return [];
1064
803
  }
1065
- _assertValidNoStatusBinding_0(binding_0) { return []; }
1066
804
  _assertValidRegistryBoundStatusBinding_0(binding_0) {
1067
- __compactRuntime.assert(binding_0.statusType === 0,
1068
- 'Registry-bound status type must be revocationRegistry');
1069
805
  this._assertValidStatusRegistryRef_0(binding_0.registryRef);
1070
- __compactRuntime.assert(!this._equal_40(binding_0.statusHandleCommitment,
806
+ __compactRuntime.assert(!this._equal_28(binding_0.statusHandleCommitment,
1071
807
  new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
1072
808
  'Status handle commitment must be set');
1073
809
  return [];
1074
810
  }
1075
811
  _registryBoundStatusBindingRoot_0(binding_0) {
1076
812
  this._assertValidRegistryBoundStatusBinding_0(binding_0);
1077
- return this._persistentHash_4(binding_0);
813
+ return this._persistentHash_6(binding_0);
1078
814
  }
1079
815
  _equal_0(x0, y0) {
1080
816
  if (!x0.every((x, i) => y0[i] === x)) { return false; }
@@ -1093,11 +829,11 @@ export class Contract {
1093
829
  return true;
1094
830
  }
1095
831
  _equal_4(x0, y0) {
1096
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
832
+ if (x0 !== y0) { return false; }
1097
833
  return true;
1098
834
  }
1099
835
  _equal_5(x0, y0) {
1100
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
836
+ if (x0 !== y0) { return false; }
1101
837
  return true;
1102
838
  }
1103
839
  _equal_6(x0, y0) {
@@ -1105,23 +841,15 @@ export class Contract {
1105
841
  return true;
1106
842
  }
1107
843
  _equal_7(x0, y0) {
1108
- {
1109
- let x1 = x0.bytes;
1110
- let y1 = y0.bytes;
1111
- if (!x1.every((x, i) => y1[i] === x)) { return false; }
1112
- }
844
+ if (!x0.every((x, i) => y0[i] === x)) { return false; }
1113
845
  return true;
1114
846
  }
1115
847
  _equal_8(x0, y0) {
1116
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
848
+ if (x0 !== y0) { return false; }
1117
849
  return true;
1118
850
  }
1119
851
  _equal_9(x0, y0) {
1120
- {
1121
- let x1 = x0.bytes;
1122
- let y1 = y0.bytes;
1123
- if (!x1.every((x, i) => y1[i] === x)) { return false; }
1124
- }
852
+ if (!x0.every((x, i) => y0[i] === x)) { return false; }
1125
853
  return true;
1126
854
  }
1127
855
  _equal_10(x0, y0) {
@@ -1133,7 +861,11 @@ export class Contract {
1133
861
  return true;
1134
862
  }
1135
863
  _equal_12(x0, y0) {
1136
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
864
+ {
865
+ let x1 = x0.bytes;
866
+ let y1 = y0.bytes;
867
+ if (!x1.every((x, i) => y1[i] === x)) { return false; }
868
+ }
1137
869
  return true;
1138
870
  }
1139
871
  _equal_13(x0, y0) {
@@ -1161,11 +893,15 @@ export class Contract {
1161
893
  return true;
1162
894
  }
1163
895
  _equal_19(x0, y0) {
1164
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
896
+ if (x0 !== y0) { return false; }
1165
897
  return true;
1166
898
  }
1167
899
  _equal_20(x0, y0) {
1168
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
900
+ {
901
+ let x1 = x0.bytes;
902
+ let y1 = y0.bytes;
903
+ if (!x1.every((x, i) => y1[i] === x)) { return false; }
904
+ }
1169
905
  return true;
1170
906
  }
1171
907
  _equal_21(x0, y0) {
@@ -1177,7 +913,11 @@ export class Contract {
1177
913
  return true;
1178
914
  }
1179
915
  _equal_23(x0, y0) {
1180
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
916
+ {
917
+ let x1 = x0.bytes;
918
+ let y1 = y0.bytes;
919
+ if (!x1.every((x, i) => y1[i] === x)) { return false; }
920
+ }
1181
921
  return true;
1182
922
  }
1183
923
  _equal_24(x0, y0) {
@@ -1185,7 +925,11 @@ export class Contract {
1185
925
  return true;
1186
926
  }
1187
927
  _equal_25(x0, y0) {
1188
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
928
+ {
929
+ let x1 = x0.bytes;
930
+ let y1 = y0.bytes;
931
+ if (!x1.every((x, i) => y1[i] === x)) { return false; }
932
+ }
1189
933
  return true;
1190
934
  }
1191
935
  _equal_26(x0, y0) {
@@ -1200,54 +944,6 @@ export class Contract {
1200
944
  if (!x0.every((x, i) => y0[i] === x)) { return false; }
1201
945
  return true;
1202
946
  }
1203
- _equal_29(x0, y0) {
1204
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1205
- return true;
1206
- }
1207
- _equal_30(x0, y0) {
1208
- if (x0 !== y0) { return false; }
1209
- return true;
1210
- }
1211
- _equal_31(x0, y0) {
1212
- if (x0 !== y0) { return false; }
1213
- return true;
1214
- }
1215
- _equal_32(x0, y0) {
1216
- if (x0 !== y0) { return false; }
1217
- return true;
1218
- }
1219
- _equal_33(x0, y0) {
1220
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1221
- return true;
1222
- }
1223
- _equal_34(x0, y0) {
1224
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1225
- return true;
1226
- }
1227
- _equal_35(x0, y0) {
1228
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1229
- return true;
1230
- }
1231
- _equal_36(x0, y0) {
1232
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1233
- return true;
1234
- }
1235
- _equal_37(x0, y0) {
1236
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1237
- return true;
1238
- }
1239
- _equal_38(x0, y0) {
1240
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1241
- return true;
1242
- }
1243
- _equal_39(x0, y0) {
1244
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1245
- return true;
1246
- }
1247
- _equal_40(x0, y0) {
1248
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1249
- return true;
1250
- }
1251
947
  }
1252
948
  export function ledger(stateOrChargedState) {
1253
949
  const state = stateOrChargedState instanceof __compactRuntime.StateValue ? stateOrChargedState : stateOrChargedState.state;
@@ -1270,12 +966,6 @@ const _emptyContext = {
1270
966
  };
1271
967
  const _dummyContract = new Contract({ });
1272
968
  export const pureCircuits = {
1273
- noSchemaFamilyResolverHint: (...args_0) => {
1274
- if (args_0.length !== 0) {
1275
- throw new __compactRuntime.CompactError(`noSchemaFamilyResolverHint: expected 0 arguments (as invoked from Typescript), received ${args_0.length}`);
1276
- }
1277
- return _dummyContract._noSchemaFamilyResolverHint_0();
1278
- },
1279
969
  assertValidSchemaRef: (...args_0) => {
1280
970
  if (args_0.length !== 1) {
1281
971
  throw new __compactRuntime.CompactError(`assertValidSchemaRef: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
@@ -1284,76 +974,47 @@ export const pureCircuits = {
1284
974
  if (!(typeof(schema_0) === 'object' && schema_0.packageId.buffer instanceof ArrayBuffer && schema_0.packageId.BYTES_PER_ELEMENT === 1 && schema_0.packageId.length === 32 && schema_0.schemaId.buffer instanceof ArrayBuffer && schema_0.schemaId.BYTES_PER_ELEMENT === 1 && schema_0.schemaId.length === 32 && typeof(schema_0.majorVersion) === 'bigint' && schema_0.majorVersion >= 0n && schema_0.majorVersion <= 65535n && typeof(schema_0.minorVersion) === 'bigint' && schema_0.minorVersion >= 0n && schema_0.minorVersion <= 65535n)) {
1285
975
  __compactRuntime.typeError('assertValidSchemaRef',
1286
976
  'argument 1',
1287
- 'types.compact line 30 char 1',
977
+ 'types.compact line 8 char 1',
1288
978
  'struct SchemaRef<packageId: Bytes<32>, schemaId: Bytes<32>, majorVersion: Uint<0..65536>, minorVersion: Uint<0..65536>>',
1289
979
  schema_0)
1290
980
  }
1291
981
  return _dummyContract._assertValidSchemaRef_0(schema_0);
1292
982
  },
1293
- assertValidSchemaCapabilities: (...args_0) => {
1294
- if (args_0.length !== 1) {
1295
- throw new __compactRuntime.CompactError(`assertValidSchemaCapabilities: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1296
- }
1297
- const capabilities_0 = args_0[0];
1298
- if (!(typeof(capabilities_0) === 'object' && typeof(capabilities_0.supportsSelectiveDisclosure) === 'boolean' && typeof(capabilities_0.supportsPredicateProofs) === 'boolean' && typeof(capabilities_0.supportsVerifierScopedPseudonym) === 'boolean' && typeof(capabilities_0.supportsSameHolderProof) === 'boolean')) {
1299
- __compactRuntime.typeError('assertValidSchemaCapabilities',
1300
- 'argument 1',
1301
- 'types.compact line 36 char 1',
1302
- 'struct SchemaCapabilities<supportsSelectiveDisclosure: Boolean, supportsPredicateProofs: Boolean, supportsVerifierScopedPseudonym: Boolean, supportsSameHolderProof: Boolean>',
1303
- capabilities_0)
1304
- }
1305
- return _dummyContract._assertValidSchemaCapabilities_0(capabilities_0);
1306
- },
1307
- assertValidSchemaFamilyResolutionHint: (...args_0) => {
1308
- if (args_0.length !== 1) {
1309
- throw new __compactRuntime.CompactError(`assertValidSchemaFamilyResolutionHint: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1310
- }
1311
- const hint_0 = args_0[0];
1312
- if (!(typeof(hint_0) === 'object' && typeof(hint_0.hasResolverHint) === 'boolean' && hint_0.resolverHint.buffer instanceof ArrayBuffer && hint_0.resolverHint.BYTES_PER_ELEMENT === 1 && hint_0.resolverHint.length === 32)) {
1313
- __compactRuntime.typeError('assertValidSchemaFamilyResolutionHint',
1314
- 'argument 1',
1315
- 'types.compact line 43 char 1',
1316
- 'struct SchemaFamilyResolutionHint<hasResolverHint: Boolean, resolverHint: Bytes<32>>',
1317
- hint_0)
1318
- }
1319
- return _dummyContract._assertValidSchemaFamilyResolutionHint_0(hint_0);
1320
- },
1321
- assertValidSchemaDescriptor: (...args_0) => {
1322
- if (args_0.length !== 1) {
1323
- throw new __compactRuntime.CompactError(`assertValidSchemaDescriptor: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1324
- }
1325
- const descriptor_0 = args_0[0];
1326
- if (!(typeof(descriptor_0) === 'object' && typeof(descriptor_0.schema) === 'object' && descriptor_0.schema.packageId.buffer instanceof ArrayBuffer && descriptor_0.schema.packageId.BYTES_PER_ELEMENT === 1 && descriptor_0.schema.packageId.length === 32 && descriptor_0.schema.schemaId.buffer instanceof ArrayBuffer && descriptor_0.schema.schemaId.BYTES_PER_ELEMENT === 1 && descriptor_0.schema.schemaId.length === 32 && typeof(descriptor_0.schema.majorVersion) === 'bigint' && descriptor_0.schema.majorVersion >= 0n && descriptor_0.schema.majorVersion <= 65535n && typeof(descriptor_0.schema.minorVersion) === 'bigint' && descriptor_0.schema.minorVersion >= 0n && descriptor_0.schema.minorVersion <= 65535n && typeof(descriptor_0.capabilities) === 'object' && typeof(descriptor_0.capabilities.supportsSelectiveDisclosure) === 'boolean' && typeof(descriptor_0.capabilities.supportsPredicateProofs) === 'boolean' && typeof(descriptor_0.capabilities.supportsVerifierScopedPseudonym) === 'boolean' && typeof(descriptor_0.capabilities.supportsSameHolderProof) === 'boolean' && typeof(descriptor_0.familyResolutionHint) === 'object' && typeof(descriptor_0.familyResolutionHint.hasResolverHint) === 'boolean' && descriptor_0.familyResolutionHint.resolverHint.buffer instanceof ArrayBuffer && descriptor_0.familyResolutionHint.resolverHint.BYTES_PER_ELEMENT === 1 && descriptor_0.familyResolutionHint.resolverHint.length === 32)) {
1327
- __compactRuntime.typeError('assertValidSchemaDescriptor',
1328
- 'argument 1',
1329
- 'types.compact line 61 char 1',
1330
- 'struct SchemaDescriptor<schema: struct SchemaRef<packageId: Bytes<32>, schemaId: Bytes<32>, majorVersion: Uint<0..65536>, minorVersion: Uint<0..65536>>, capabilities: struct SchemaCapabilities<supportsSelectiveDisclosure: Boolean, supportsPredicateProofs: Boolean, supportsVerifierScopedPseudonym: Boolean, supportsSameHolderProof: Boolean>, familyResolutionHint: struct SchemaFamilyResolutionHint<hasResolverHint: Boolean, resolverHint: Bytes<32>>>',
1331
- descriptor_0)
1332
- }
1333
- return _dummyContract._assertValidSchemaDescriptor_0(descriptor_0);
1334
- },
1335
- assertMatchingSchemaCapabilities: (...args_0) => {
983
+ assertMatchingSchemaRefs: (...args_0) => {
1336
984
  if (args_0.length !== 2) {
1337
- throw new __compactRuntime.CompactError(`assertMatchingSchemaCapabilities: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
985
+ throw new __compactRuntime.CompactError(`assertMatchingSchemaRefs: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1338
986
  }
1339
987
  const expected_0 = args_0[0];
1340
988
  const actual_0 = args_0[1];
1341
- if (!(typeof(expected_0) === 'object' && typeof(expected_0.supportsSelectiveDisclosure) === 'boolean' && typeof(expected_0.supportsPredicateProofs) === 'boolean' && typeof(expected_0.supportsVerifierScopedPseudonym) === 'boolean' && typeof(expected_0.supportsSameHolderProof) === 'boolean')) {
1342
- __compactRuntime.typeError('assertMatchingSchemaCapabilities',
989
+ if (!(typeof(expected_0) === 'object' && expected_0.packageId.buffer instanceof ArrayBuffer && expected_0.packageId.BYTES_PER_ELEMENT === 1 && expected_0.packageId.length === 32 && expected_0.schemaId.buffer instanceof ArrayBuffer && expected_0.schemaId.BYTES_PER_ELEMENT === 1 && expected_0.schemaId.length === 32 && typeof(expected_0.majorVersion) === 'bigint' && expected_0.majorVersion >= 0n && expected_0.majorVersion <= 65535n && typeof(expected_0.minorVersion) === 'bigint' && expected_0.minorVersion >= 0n && expected_0.minorVersion <= 65535n)) {
990
+ __compactRuntime.typeError('assertMatchingSchemaRefs',
1343
991
  'argument 1',
1344
- 'types.compact line 69 char 1',
1345
- 'struct SchemaCapabilities<supportsSelectiveDisclosure: Boolean, supportsPredicateProofs: Boolean, supportsVerifierScopedPseudonym: Boolean, supportsSameHolderProof: Boolean>',
992
+ 'types.compact line 14 char 1',
993
+ 'struct SchemaRef<packageId: Bytes<32>, schemaId: Bytes<32>, majorVersion: Uint<0..65536>, minorVersion: Uint<0..65536>>',
1346
994
  expected_0)
1347
995
  }
1348
- if (!(typeof(actual_0) === 'object' && typeof(actual_0.supportsSelectiveDisclosure) === 'boolean' && typeof(actual_0.supportsPredicateProofs) === 'boolean' && typeof(actual_0.supportsVerifierScopedPseudonym) === 'boolean' && typeof(actual_0.supportsSameHolderProof) === 'boolean')) {
1349
- __compactRuntime.typeError('assertMatchingSchemaCapabilities',
996
+ if (!(typeof(actual_0) === 'object' && actual_0.packageId.buffer instanceof ArrayBuffer && actual_0.packageId.BYTES_PER_ELEMENT === 1 && actual_0.packageId.length === 32 && actual_0.schemaId.buffer instanceof ArrayBuffer && actual_0.schemaId.BYTES_PER_ELEMENT === 1 && actual_0.schemaId.length === 32 && typeof(actual_0.majorVersion) === 'bigint' && actual_0.majorVersion >= 0n && actual_0.majorVersion <= 65535n && typeof(actual_0.minorVersion) === 'bigint' && actual_0.minorVersion >= 0n && actual_0.minorVersion <= 65535n)) {
997
+ __compactRuntime.typeError('assertMatchingSchemaRefs',
1350
998
  'argument 2',
1351
- 'types.compact line 69 char 1',
1352
- 'struct SchemaCapabilities<supportsSelectiveDisclosure: Boolean, supportsPredicateProofs: Boolean, supportsVerifierScopedPseudonym: Boolean, supportsSameHolderProof: Boolean>',
999
+ 'types.compact line 14 char 1',
1000
+ 'struct SchemaRef<packageId: Bytes<32>, schemaId: Bytes<32>, majorVersion: Uint<0..65536>, minorVersion: Uint<0..65536>>',
1353
1001
  actual_0)
1354
1002
  }
1355
- return _dummyContract._assertMatchingSchemaCapabilities_0(expected_0,
1356
- actual_0);
1003
+ return _dummyContract._assertMatchingSchemaRefs_0(expected_0, actual_0);
1004
+ },
1005
+ assertValidVerificationMethodRef: (...args_0) => {
1006
+ if (args_0.length !== 1) {
1007
+ throw new __compactRuntime.CompactError(`assertValidVerificationMethodRef: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1008
+ }
1009
+ const verificationMethodRef_0 = args_0[0];
1010
+ if (!(typeof(verificationMethodRef_0) === 'object' && typeof(verificationMethodRef_0.controllerAddress) === 'object' && verificationMethodRef_0.controllerAddress.bytes.buffer instanceof ArrayBuffer && verificationMethodRef_0.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && verificationMethodRef_0.controllerAddress.bytes.length === 32 && verificationMethodRef_0.methodId.buffer instanceof ArrayBuffer && verificationMethodRef_0.methodId.BYTES_PER_ELEMENT === 1 && verificationMethodRef_0.methodId.length === 32)) {
1011
+ __compactRuntime.typeError('assertValidVerificationMethodRef',
1012
+ 'argument 1',
1013
+ 'types.compact line 34 char 1',
1014
+ 'struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>',
1015
+ verificationMethodRef_0)
1016
+ }
1017
+ return _dummyContract._assertValidVerificationMethodRef_0(verificationMethodRef_0);
1357
1018
  },
1358
1019
  verifySignature: (...args_0) => {
1359
1020
  if (args_0.length !== 3) {
@@ -1365,14 +1026,14 @@ export const pureCircuits = {
1365
1026
  if (!(typeof(signature_0) === 'object' && true && typeof(signature_0.s) === 'bigint' && signature_0.s >= 0 && signature_0.s <= __compactRuntime.MAX_FIELD)) {
1366
1027
  __compactRuntime.typeError('verifySignature',
1367
1028
  'argument 2',
1368
- 'proofs.compact line 4 char 1',
1029
+ 'proofs.compact line 34 char 1',
1369
1030
  'struct Signature<r: Opaque<"JubjubPoint">, s: Field>',
1370
1031
  signature_0)
1371
1032
  }
1372
1033
  if (!(typeof(challenge_0) === 'bigint' && challenge_0 >= 0 && challenge_0 <= __compactRuntime.MAX_FIELD)) {
1373
1034
  __compactRuntime.typeError('verifySignature',
1374
1035
  'argument 3',
1375
- 'proofs.compact line 4 char 1',
1036
+ 'proofs.compact line 34 char 1',
1376
1037
  'Field',
1377
1038
  challenge_0)
1378
1039
  }
@@ -1390,6 +1051,18 @@ export const pureCircuits = {
1390
1051
  }
1391
1052
  return _dummyContract._presentationContextTag_0();
1392
1053
  },
1054
+ signerAuthorizationContextTag: (...args_0) => {
1055
+ if (args_0.length !== 0) {
1056
+ throw new __compactRuntime.CompactError(`signerAuthorizationContextTag: expected 0 arguments (as invoked from Typescript), received ${args_0.length}`);
1057
+ }
1058
+ return _dummyContract._signerAuthorizationContextTag_0();
1059
+ },
1060
+ verifierRequestContextTag: (...args_0) => {
1061
+ if (args_0.length !== 0) {
1062
+ throw new __compactRuntime.CompactError(`verifierRequestContextTag: expected 0 arguments (as invoked from Typescript), received ${args_0.length}`);
1063
+ }
1064
+ return _dummyContract._verifierRequestContextTag_0();
1065
+ },
1393
1066
  issuanceProofPayloadRoot: (...args_0) => {
1394
1067
  if (args_0.length !== 2) {
1395
1068
  throw new __compactRuntime.CompactError(`issuanceProofPayloadRoot: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
@@ -1399,15 +1072,15 @@ export const pureCircuits = {
1399
1072
  if (!(bodyRoot_0.buffer instanceof ArrayBuffer && bodyRoot_0.BYTES_PER_ELEMENT === 1 && bodyRoot_0.length === 32)) {
1400
1073
  __compactRuntime.typeError('issuanceProofPayloadRoot',
1401
1074
  'argument 1',
1402
- 'proofs.compact line 76 char 1',
1075
+ 'proofs.compact line 117 char 1',
1403
1076
  'Bytes<32>',
1404
1077
  bodyRoot_0)
1405
1078
  }
1406
- if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.didContractAddress) === 'object' && proof_0.signerVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.didContractAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1079
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1407
1080
  __compactRuntime.typeError('issuanceProofPayloadRoot',
1408
1081
  'argument 2',
1409
- 'proofs.compact line 76 char 1',
1410
- 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1082
+ 'proofs.compact line 117 char 1',
1083
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1411
1084
  proof_0)
1412
1085
  }
1413
1086
  return _dummyContract._issuanceProofPayloadRoot_0(bodyRoot_0, proof_0);
@@ -1421,15 +1094,15 @@ export const pureCircuits = {
1421
1094
  if (!(bodyRoot_0.buffer instanceof ArrayBuffer && bodyRoot_0.BYTES_PER_ELEMENT === 1 && bodyRoot_0.length === 32)) {
1422
1095
  __compactRuntime.typeError('presentationProofPayloadRoot',
1423
1096
  'argument 1',
1424
- 'proofs.compact line 83 char 1',
1097
+ 'proofs.compact line 124 char 1',
1425
1098
  'Bytes<32>',
1426
1099
  bodyRoot_0)
1427
1100
  }
1428
- if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.didContractAddress) === 'object' && proof_0.signerVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.didContractAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1101
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1429
1102
  __compactRuntime.typeError('presentationProofPayloadRoot',
1430
1103
  'argument 2',
1431
- 'proofs.compact line 83 char 1',
1432
- 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1104
+ 'proofs.compact line 124 char 1',
1105
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1433
1106
  proof_0)
1434
1107
  }
1435
1108
  return _dummyContract._presentationProofPayloadRoot_0(bodyRoot_0, proof_0);
@@ -1443,15 +1116,15 @@ export const pureCircuits = {
1443
1116
  if (!(bodyRoot_0.buffer instanceof ArrayBuffer && bodyRoot_0.BYTES_PER_ELEMENT === 1 && bodyRoot_0.length === 32)) {
1444
1117
  __compactRuntime.typeError('issuanceProofChallenge',
1445
1118
  'argument 1',
1446
- 'proofs.compact line 90 char 1',
1119
+ 'proofs.compact line 131 char 1',
1447
1120
  'Bytes<32>',
1448
1121
  bodyRoot_0)
1449
1122
  }
1450
- if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.didContractAddress) === 'object' && proof_0.signerVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.didContractAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1123
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1451
1124
  __compactRuntime.typeError('issuanceProofChallenge',
1452
1125
  'argument 2',
1453
- 'proofs.compact line 90 char 1',
1454
- 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1126
+ 'proofs.compact line 131 char 1',
1127
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1455
1128
  proof_0)
1456
1129
  }
1457
1130
  return _dummyContract._issuanceProofChallenge_0(bodyRoot_0, proof_0);
@@ -1465,19 +1138,65 @@ export const pureCircuits = {
1465
1138
  if (!(bodyRoot_0.buffer instanceof ArrayBuffer && bodyRoot_0.BYTES_PER_ELEMENT === 1 && bodyRoot_0.length === 32)) {
1466
1139
  __compactRuntime.typeError('presentationProofChallenge',
1467
1140
  'argument 1',
1468
- 'proofs.compact line 97 char 1',
1141
+ 'proofs.compact line 138 char 1',
1469
1142
  'Bytes<32>',
1470
1143
  bodyRoot_0)
1471
1144
  }
1472
- if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.didContractAddress) === 'object' && proof_0.signerVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.didContractAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1145
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1473
1146
  __compactRuntime.typeError('presentationProofChallenge',
1474
1147
  'argument 2',
1475
- 'proofs.compact line 97 char 1',
1476
- 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1148
+ 'proofs.compact line 138 char 1',
1149
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1477
1150
  proof_0)
1478
1151
  }
1479
1152
  return _dummyContract._presentationProofChallenge_0(bodyRoot_0, proof_0);
1480
1153
  },
1154
+ signerAuthorizationProofChallenge: (...args_0) => {
1155
+ if (args_0.length !== 2) {
1156
+ throw new __compactRuntime.CompactError(`signerAuthorizationProofChallenge: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1157
+ }
1158
+ const bodyRoot_0 = args_0[0];
1159
+ const proof_0 = args_0[1];
1160
+ if (!(bodyRoot_0.buffer instanceof ArrayBuffer && bodyRoot_0.BYTES_PER_ELEMENT === 1 && bodyRoot_0.length === 32)) {
1161
+ __compactRuntime.typeError('signerAuthorizationProofChallenge',
1162
+ 'argument 1',
1163
+ 'proofs.compact line 145 char 1',
1164
+ 'Bytes<32>',
1165
+ bodyRoot_0)
1166
+ }
1167
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1168
+ __compactRuntime.typeError('signerAuthorizationProofChallenge',
1169
+ 'argument 2',
1170
+ 'proofs.compact line 145 char 1',
1171
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1172
+ proof_0)
1173
+ }
1174
+ return _dummyContract._signerAuthorizationProofChallenge_0(bodyRoot_0,
1175
+ proof_0);
1176
+ },
1177
+ verifierRequestProofChallenge: (...args_0) => {
1178
+ if (args_0.length !== 2) {
1179
+ throw new __compactRuntime.CompactError(`verifierRequestProofChallenge: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1180
+ }
1181
+ const requestScopeCommitment_0 = args_0[0];
1182
+ const proof_0 = args_0[1];
1183
+ if (!(requestScopeCommitment_0.buffer instanceof ArrayBuffer && requestScopeCommitment_0.BYTES_PER_ELEMENT === 1 && requestScopeCommitment_0.length === 32)) {
1184
+ __compactRuntime.typeError('verifierRequestProofChallenge',
1185
+ 'argument 1',
1186
+ 'proofs.compact line 156 char 1',
1187
+ 'Bytes<32>',
1188
+ requestScopeCommitment_0)
1189
+ }
1190
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1191
+ __compactRuntime.typeError('verifierRequestProofChallenge',
1192
+ 'argument 2',
1193
+ 'proofs.compact line 156 char 1',
1194
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1195
+ proof_0)
1196
+ }
1197
+ return _dummyContract._verifierRequestProofChallenge_0(requestScopeCommitment_0,
1198
+ proof_0);
1199
+ },
1481
1200
  assertValidIssuanceContextProof: (...args_0) => {
1482
1201
  if (args_0.length !== 2) {
1483
1202
  throw new __compactRuntime.CompactError(`assertValidIssuanceContextProof: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
@@ -1487,15 +1206,15 @@ export const pureCircuits = {
1487
1206
  if (!(bodyRoot_0.buffer instanceof ArrayBuffer && bodyRoot_0.BYTES_PER_ELEMENT === 1 && bodyRoot_0.length === 32)) {
1488
1207
  __compactRuntime.typeError('assertValidIssuanceContextProof',
1489
1208
  'argument 1',
1490
- 'proofs.compact line 110 char 1',
1209
+ 'proofs.compact line 173 char 1',
1491
1210
  'Bytes<32>',
1492
1211
  bodyRoot_0)
1493
1212
  }
1494
- if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.didContractAddress) === 'object' && proof_0.signerVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.didContractAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1213
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1495
1214
  __compactRuntime.typeError('assertValidIssuanceContextProof',
1496
1215
  'argument 2',
1497
- 'proofs.compact line 110 char 1',
1498
- 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1216
+ 'proofs.compact line 173 char 1',
1217
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1499
1218
  proof_0)
1500
1219
  }
1501
1220
  return _dummyContract._assertValidIssuanceContextProof_0(bodyRoot_0, proof_0);
@@ -1509,686 +1228,371 @@ export const pureCircuits = {
1509
1228
  if (!(bodyRoot_0.buffer instanceof ArrayBuffer && bodyRoot_0.BYTES_PER_ELEMENT === 1 && bodyRoot_0.length === 32)) {
1510
1229
  __compactRuntime.typeError('assertValidPresentationContextProof',
1511
1230
  'argument 1',
1512
- 'proofs.compact line 117 char 1',
1231
+ 'proofs.compact line 180 char 1',
1513
1232
  'Bytes<32>',
1514
1233
  bodyRoot_0)
1515
1234
  }
1516
- if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.didContractAddress) === 'object' && proof_0.signerVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.didContractAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1235
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1517
1236
  __compactRuntime.typeError('assertValidPresentationContextProof',
1518
1237
  'argument 2',
1519
- 'proofs.compact line 117 char 1',
1520
- 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1238
+ 'proofs.compact line 180 char 1',
1239
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1521
1240
  proof_0)
1522
1241
  }
1523
1242
  return _dummyContract._assertValidPresentationContextProof_0(bodyRoot_0,
1524
1243
  proof_0);
1525
1244
  },
1526
- assertValidExplicitHolderBinding: (...args_0) => {
1527
- if (args_0.length !== 1) {
1528
- throw new __compactRuntime.CompactError(`assertValidExplicitHolderBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1529
- }
1530
- const binding_0 = args_0[0];
1531
- if (!(typeof(binding_0) === 'object' && typeof(binding_0.holderVerificationMethodRef) === 'object' && typeof(binding_0.holderVerificationMethodRef.didContractAddress) === 'object' && binding_0.holderVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && binding_0.holderVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && binding_0.holderVerificationMethodRef.didContractAddress.bytes.length === 32 && binding_0.holderVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && binding_0.holderVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && binding_0.holderVerificationMethodRef.methodId.length === 32)) {
1532
- __compactRuntime.typeError('assertValidExplicitHolderBinding',
1533
- 'argument 1',
1534
- 'holder-bindings.compact line 7 char 1',
1535
- 'struct ExplicitHolderBinding<holderVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
1536
- binding_0)
1537
- }
1538
- return _dummyContract._assertValidExplicitHolderBinding_0(binding_0);
1539
- },
1540
- assertMatchingExplicitHolderBindings: (...args_0) => {
1245
+ assertValidSignerAuthorizationContextProof: (...args_0) => {
1541
1246
  if (args_0.length !== 2) {
1542
- throw new __compactRuntime.CompactError(`assertMatchingExplicitHolderBindings: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1247
+ throw new __compactRuntime.CompactError(`assertValidSignerAuthorizationContextProof: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1543
1248
  }
1544
- const credentialBinding_0 = args_0[0];
1545
- const presentationBinding_0 = args_0[1];
1546
- if (!(typeof(credentialBinding_0) === 'object' && typeof(credentialBinding_0.holderVerificationMethodRef) === 'object' && typeof(credentialBinding_0.holderVerificationMethodRef.didContractAddress) === 'object' && credentialBinding_0.holderVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && credentialBinding_0.holderVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && credentialBinding_0.holderVerificationMethodRef.didContractAddress.bytes.length === 32 && credentialBinding_0.holderVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && credentialBinding_0.holderVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && credentialBinding_0.holderVerificationMethodRef.methodId.length === 32)) {
1547
- __compactRuntime.typeError('assertMatchingExplicitHolderBindings',
1249
+ const bodyRoot_0 = args_0[0];
1250
+ const proof_0 = args_0[1];
1251
+ if (!(bodyRoot_0.buffer instanceof ArrayBuffer && bodyRoot_0.BYTES_PER_ELEMENT === 1 && bodyRoot_0.length === 32)) {
1252
+ __compactRuntime.typeError('assertValidSignerAuthorizationContextProof',
1548
1253
  'argument 1',
1549
- 'holder-bindings.compact line 20 char 1',
1550
- 'struct ExplicitHolderBinding<holderVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
1551
- credentialBinding_0)
1254
+ 'proofs.compact line 187 char 1',
1255
+ 'Bytes<32>',
1256
+ bodyRoot_0)
1552
1257
  }
1553
- if (!(typeof(presentationBinding_0) === 'object' && typeof(presentationBinding_0.holderVerificationMethodRef) === 'object' && typeof(presentationBinding_0.holderVerificationMethodRef.didContractAddress) === 'object' && presentationBinding_0.holderVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && presentationBinding_0.holderVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && presentationBinding_0.holderVerificationMethodRef.didContractAddress.bytes.length === 32 && presentationBinding_0.holderVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && presentationBinding_0.holderVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && presentationBinding_0.holderVerificationMethodRef.methodId.length === 32)) {
1554
- __compactRuntime.typeError('assertMatchingExplicitHolderBindings',
1258
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1259
+ __compactRuntime.typeError('assertValidSignerAuthorizationContextProof',
1555
1260
  'argument 2',
1556
- 'holder-bindings.compact line 20 char 1',
1557
- 'struct ExplicitHolderBinding<holderVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
1558
- presentationBinding_0)
1261
+ 'proofs.compact line 187 char 1',
1262
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1263
+ proof_0)
1559
1264
  }
1560
- return _dummyContract._assertMatchingExplicitHolderBindings_0(credentialBinding_0,
1561
- presentationBinding_0);
1265
+ return _dummyContract._assertValidSignerAuthorizationContextProof_0(bodyRoot_0,
1266
+ proof_0);
1562
1267
  },
1563
- assertProofMatchesExplicitHolderBinding: (...args_0) => {
1268
+ assertValidVerifierRequestContextProof: (...args_0) => {
1564
1269
  if (args_0.length !== 2) {
1565
- throw new __compactRuntime.CompactError(`assertProofMatchesExplicitHolderBinding: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1270
+ throw new __compactRuntime.CompactError(`assertValidVerifierRequestContextProof: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1566
1271
  }
1567
- const binding_0 = args_0[0];
1568
- const presentationProof_0 = args_0[1];
1569
- if (!(typeof(binding_0) === 'object' && typeof(binding_0.holderVerificationMethodRef) === 'object' && typeof(binding_0.holderVerificationMethodRef.didContractAddress) === 'object' && binding_0.holderVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && binding_0.holderVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && binding_0.holderVerificationMethodRef.didContractAddress.bytes.length === 32 && binding_0.holderVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && binding_0.holderVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && binding_0.holderVerificationMethodRef.methodId.length === 32)) {
1570
- __compactRuntime.typeError('assertProofMatchesExplicitHolderBinding',
1272
+ const requestScopeCommitment_0 = args_0[0];
1273
+ const proof_0 = args_0[1];
1274
+ if (!(requestScopeCommitment_0.buffer instanceof ArrayBuffer && requestScopeCommitment_0.BYTES_PER_ELEMENT === 1 && requestScopeCommitment_0.length === 32)) {
1275
+ __compactRuntime.typeError('assertValidVerifierRequestContextProof',
1571
1276
  'argument 1',
1572
- 'holder-bindings.compact line 36 char 1',
1573
- 'struct ExplicitHolderBinding<holderVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
1574
- binding_0)
1277
+ 'proofs.compact line 198 char 1',
1278
+ 'Bytes<32>',
1279
+ requestScopeCommitment_0)
1575
1280
  }
1576
- if (!(typeof(presentationProof_0) === 'object' && typeof(presentationProof_0.signerVerificationMethodRef) === 'object' && typeof(presentationProof_0.signerVerificationMethodRef.didContractAddress) === 'object' && presentationProof_0.signerVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && presentationProof_0.signerVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && presentationProof_0.signerVerificationMethodRef.didContractAddress.bytes.length === 32 && presentationProof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && presentationProof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && presentationProof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(presentationProof_0.createdAt) === 'bigint' && presentationProof_0.createdAt >= 0n && presentationProof_0.createdAt <= 18446744073709551615n && presentationProof_0.challengeHash.buffer instanceof ArrayBuffer && presentationProof_0.challengeHash.BYTES_PER_ELEMENT === 1 && presentationProof_0.challengeHash.length === 32 && true && typeof(presentationProof_0.signature) === 'object' && true && typeof(presentationProof_0.signature.s) === 'bigint' && presentationProof_0.signature.s >= 0 && presentationProof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1577
- __compactRuntime.typeError('assertProofMatchesExplicitHolderBinding',
1281
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1282
+ __compactRuntime.typeError('assertValidVerifierRequestContextProof',
1578
1283
  'argument 2',
1579
- 'holder-bindings.compact line 36 char 1',
1580
- 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1581
- presentationProof_0)
1284
+ 'proofs.compact line 198 char 1',
1285
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1286
+ proof_0)
1582
1287
  }
1583
- return _dummyContract._assertProofMatchesExplicitHolderBinding_0(binding_0,
1584
- presentationProof_0);
1288
+ return _dummyContract._assertValidVerifierRequestContextProof_0(requestScopeCommitment_0,
1289
+ proof_0);
1585
1290
  },
1586
- assertValidJubjubHolderBinding: (...args_0) => {
1291
+ assertValidAuthorizedSignerDescriptor: (...args_0) => {
1587
1292
  if (args_0.length !== 1) {
1588
- throw new __compactRuntime.CompactError(`assertValidJubjubHolderBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1293
+ throw new __compactRuntime.CompactError(`assertValidAuthorizedSignerDescriptor: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1589
1294
  }
1590
- const binding_0 = args_0[0];
1591
- if (!(typeof(binding_0) === 'object' && true)) {
1592
- __compactRuntime.typeError('assertValidJubjubHolderBinding',
1593
- 'argument 1',
1594
- 'holder-bindings.compact line 52 char 1',
1595
- 'struct JubjubHolderBinding<holderPublicKey: Opaque<"JubjubPoint">>',
1596
- binding_0)
1597
- }
1598
- return _dummyContract._assertValidJubjubHolderBinding_0(binding_0);
1599
- },
1600
- assertMatchingJubjubHolderBindings: (...args_0) => {
1601
- if (args_0.length !== 2) {
1602
- throw new __compactRuntime.CompactError(`assertMatchingJubjubHolderBindings: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1603
- }
1604
- const credentialBinding_0 = args_0[0];
1605
- const presentationBinding_0 = args_0[1];
1606
- if (!(typeof(credentialBinding_0) === 'object' && true)) {
1607
- __compactRuntime.typeError('assertMatchingJubjubHolderBindings',
1295
+ const descriptor_0 = args_0[0];
1296
+ if (!(typeof(descriptor_0) === 'object' && typeof(descriptor_0.version) === 'bigint' && descriptor_0.version >= 0n && descriptor_0.version <= 65535n && descriptor_0.authorizationId.buffer instanceof ArrayBuffer && descriptor_0.authorizationId.BYTES_PER_ELEMENT === 1 && descriptor_0.authorizationId.length === 32 && typeof(descriptor_0.decisionSequence) === 'bigint' && descriptor_0.decisionSequence >= 0n && descriptor_0.decisionSequence <= 18446744073709551615n && typeof(descriptor_0.state) === 'number' && descriptor_0.state >= 0 && descriptor_0.state <= 2 && typeof(descriptor_0.role) === 'number' && descriptor_0.role >= 0 && descriptor_0.role <= 1 && typeof(descriptor_0.signerVerificationMethodRef) === 'object' && typeof(descriptor_0.signerVerificationMethodRef.controllerAddress) === 'object' && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && descriptor_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.methodId.length === 32 && true && typeof(descriptor_0.didStateVersion) === 'bigint' && descriptor_0.didStateVersion >= 0n && descriptor_0.didStateVersion <= 18446744073709551615n && typeof(descriptor_0.verificationRelationship) === 'number' && descriptor_0.verificationRelationship >= 0 && descriptor_0.verificationRelationship <= 2 && descriptor_0.scopeCommitment.buffer instanceof ArrayBuffer && descriptor_0.scopeCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.scopeCommitment.length === 32 && descriptor_0.policyCommitment.buffer instanceof ArrayBuffer && descriptor_0.policyCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.policyCommitment.length === 32)) {
1297
+ __compactRuntime.typeError('assertValidAuthorizedSignerDescriptor',
1608
1298
  'argument 1',
1609
- 'holder-bindings.compact line 67 char 1',
1610
- 'struct JubjubHolderBinding<holderPublicKey: Opaque<"JubjubPoint">>',
1611
- credentialBinding_0)
1612
- }
1613
- if (!(typeof(presentationBinding_0) === 'object' && true)) {
1614
- __compactRuntime.typeError('assertMatchingJubjubHolderBindings',
1615
- 'argument 2',
1616
- 'holder-bindings.compact line 67 char 1',
1617
- 'struct JubjubHolderBinding<holderPublicKey: Opaque<"JubjubPoint">>',
1618
- presentationBinding_0)
1299
+ 'signer-authorization.compact line 42 char 1',
1300
+ 'struct AuthorizedSignerDescriptor<version: Uint<0..65536>, authorizationId: Bytes<32>, decisionSequence: Uint<0..18446744073709551616>, state: Enum<AuthorizationState, active, suspended, revoked>, role: Enum<SignerRole, issuer, verifier>, signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, signerPublicKey: Opaque<"JubjubPoint">, didStateVersion: Uint<0..18446744073709551616>, verificationRelationship: Enum<VerificationRelationship, assertionMethod, authentication, capabilityInvocation>, scopeCommitment: Bytes<32>, policyCommitment: Bytes<32>>',
1301
+ descriptor_0)
1619
1302
  }
1620
- return _dummyContract._assertMatchingJubjubHolderBindings_0(credentialBinding_0,
1621
- presentationBinding_0);
1303
+ return _dummyContract._assertValidAuthorizedSignerDescriptor_0(descriptor_0);
1622
1304
  },
1623
- assertProofMatchesJubjubHolderBinding: (...args_0) => {
1624
- if (args_0.length !== 2) {
1625
- throw new __compactRuntime.CompactError(`assertProofMatchesJubjubHolderBinding: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1305
+ authorizedSignerDescriptorRoot: (...args_0) => {
1306
+ if (args_0.length !== 1) {
1307
+ throw new __compactRuntime.CompactError(`authorizedSignerDescriptorRoot: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1626
1308
  }
1627
- const binding_0 = args_0[0];
1628
- const presentationProof_0 = args_0[1];
1629
- if (!(typeof(binding_0) === 'object' && true)) {
1630
- __compactRuntime.typeError('assertProofMatchesJubjubHolderBinding',
1309
+ const descriptor_0 = args_0[0];
1310
+ if (!(typeof(descriptor_0) === 'object' && typeof(descriptor_0.version) === 'bigint' && descriptor_0.version >= 0n && descriptor_0.version <= 65535n && descriptor_0.authorizationId.buffer instanceof ArrayBuffer && descriptor_0.authorizationId.BYTES_PER_ELEMENT === 1 && descriptor_0.authorizationId.length === 32 && typeof(descriptor_0.decisionSequence) === 'bigint' && descriptor_0.decisionSequence >= 0n && descriptor_0.decisionSequence <= 18446744073709551615n && typeof(descriptor_0.state) === 'number' && descriptor_0.state >= 0 && descriptor_0.state <= 2 && typeof(descriptor_0.role) === 'number' && descriptor_0.role >= 0 && descriptor_0.role <= 1 && typeof(descriptor_0.signerVerificationMethodRef) === 'object' && typeof(descriptor_0.signerVerificationMethodRef.controllerAddress) === 'object' && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && descriptor_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.methodId.length === 32 && true && typeof(descriptor_0.didStateVersion) === 'bigint' && descriptor_0.didStateVersion >= 0n && descriptor_0.didStateVersion <= 18446744073709551615n && typeof(descriptor_0.verificationRelationship) === 'number' && descriptor_0.verificationRelationship >= 0 && descriptor_0.verificationRelationship <= 2 && descriptor_0.scopeCommitment.buffer instanceof ArrayBuffer && descriptor_0.scopeCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.scopeCommitment.length === 32 && descriptor_0.policyCommitment.buffer instanceof ArrayBuffer && descriptor_0.policyCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.policyCommitment.length === 32)) {
1311
+ __compactRuntime.typeError('authorizedSignerDescriptorRoot',
1631
1312
  'argument 1',
1632
- 'holder-bindings.compact line 80 char 1',
1633
- 'struct JubjubHolderBinding<holderPublicKey: Opaque<"JubjubPoint">>',
1634
- binding_0)
1635
- }
1636
- if (!(typeof(presentationProof_0) === 'object' && typeof(presentationProof_0.signerVerificationMethodRef) === 'object' && typeof(presentationProof_0.signerVerificationMethodRef.didContractAddress) === 'object' && presentationProof_0.signerVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && presentationProof_0.signerVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && presentationProof_0.signerVerificationMethodRef.didContractAddress.bytes.length === 32 && presentationProof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && presentationProof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && presentationProof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(presentationProof_0.createdAt) === 'bigint' && presentationProof_0.createdAt >= 0n && presentationProof_0.createdAt <= 18446744073709551615n && presentationProof_0.challengeHash.buffer instanceof ArrayBuffer && presentationProof_0.challengeHash.BYTES_PER_ELEMENT === 1 && presentationProof_0.challengeHash.length === 32 && true && typeof(presentationProof_0.signature) === 'object' && true && typeof(presentationProof_0.signature.s) === 'bigint' && presentationProof_0.signature.s >= 0 && presentationProof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1637
- __compactRuntime.typeError('assertProofMatchesJubjubHolderBinding',
1638
- 'argument 2',
1639
- 'holder-bindings.compact line 80 char 1',
1640
- 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1641
- presentationProof_0)
1313
+ 'signer-authorization.compact line 86 char 1',
1314
+ 'struct AuthorizedSignerDescriptor<version: Uint<0..65536>, authorizationId: Bytes<32>, decisionSequence: Uint<0..18446744073709551616>, state: Enum<AuthorizationState, active, suspended, revoked>, role: Enum<SignerRole, issuer, verifier>, signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, signerPublicKey: Opaque<"JubjubPoint">, didStateVersion: Uint<0..18446744073709551616>, verificationRelationship: Enum<VerificationRelationship, assertionMethod, authentication, capabilityInvocation>, scopeCommitment: Bytes<32>, policyCommitment: Bytes<32>>',
1315
+ descriptor_0)
1642
1316
  }
1643
- return _dummyContract._assertProofMatchesJubjubHolderBinding_0(binding_0,
1644
- presentationProof_0);
1317
+ return _dummyContract._authorizedSignerDescriptorRoot_0(descriptor_0);
1645
1318
  },
1646
- assertValidOffchainMidnightHolderBinding: (...args_0) => {
1319
+ issuerScopeCommitment: (...args_0) => {
1647
1320
  if (args_0.length !== 1) {
1648
- throw new __compactRuntime.CompactError(`assertValidOffchainMidnightHolderBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1321
+ throw new __compactRuntime.CompactError(`issuerScopeCommitment: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1649
1322
  }
1650
- const binding_0 = args_0[0];
1651
- if (!(typeof(binding_0) === 'object' && binding_0.holderDidStateHash.buffer instanceof ArrayBuffer && binding_0.holderDidStateHash.BYTES_PER_ELEMENT === 1 && binding_0.holderDidStateHash.length === 32 && binding_0.holderMethodId.buffer instanceof ArrayBuffer && binding_0.holderMethodId.BYTES_PER_ELEMENT === 1 && binding_0.holderMethodId.length === 32 && true)) {
1652
- __compactRuntime.typeError('assertValidOffchainMidnightHolderBinding',
1323
+ const schema_0 = args_0[0];
1324
+ if (!(typeof(schema_0) === 'object' && schema_0.packageId.buffer instanceof ArrayBuffer && schema_0.packageId.BYTES_PER_ELEMENT === 1 && schema_0.packageId.length === 32 && schema_0.schemaId.buffer instanceof ArrayBuffer && schema_0.schemaId.BYTES_PER_ELEMENT === 1 && schema_0.schemaId.length === 32 && typeof(schema_0.majorVersion) === 'bigint' && schema_0.majorVersion >= 0n && schema_0.majorVersion <= 65535n && typeof(schema_0.minorVersion) === 'bigint' && schema_0.minorVersion >= 0n && schema_0.minorVersion <= 65535n)) {
1325
+ __compactRuntime.typeError('issuerScopeCommitment',
1653
1326
  'argument 1',
1654
- 'holder-bindings.compact line 93 char 1',
1655
- 'struct OffchainMidnightHolderBinding<holderDidStateHash: Bytes<32>, holderMethodId: Bytes<32>, holderPublicKey: Opaque<"JubjubPoint">>',
1656
- binding_0)
1327
+ 'signer-authorization.compact line 99 char 1',
1328
+ 'struct SchemaRef<packageId: Bytes<32>, schemaId: Bytes<32>, majorVersion: Uint<0..65536>, minorVersion: Uint<0..65536>>',
1329
+ schema_0)
1657
1330
  }
1658
- return _dummyContract._assertValidOffchainMidnightHolderBinding_0(binding_0);
1331
+ return _dummyContract._issuerScopeCommitment_0(schema_0);
1659
1332
  },
1660
- assertMatchingOffchainMidnightHolderBindings: (...args_0) => {
1333
+ assertProofSignerMatchesAuthorization: (...args_0) => {
1661
1334
  if (args_0.length !== 2) {
1662
- throw new __compactRuntime.CompactError(`assertMatchingOffchainMidnightHolderBindings: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1335
+ throw new __compactRuntime.CompactError(`assertProofSignerMatchesAuthorization: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1663
1336
  }
1664
- const credentialBinding_0 = args_0[0];
1665
- const presentationBinding_0 = args_0[1];
1666
- if (!(typeof(credentialBinding_0) === 'object' && credentialBinding_0.holderDidStateHash.buffer instanceof ArrayBuffer && credentialBinding_0.holderDidStateHash.BYTES_PER_ELEMENT === 1 && credentialBinding_0.holderDidStateHash.length === 32 && credentialBinding_0.holderMethodId.buffer instanceof ArrayBuffer && credentialBinding_0.holderMethodId.BYTES_PER_ELEMENT === 1 && credentialBinding_0.holderMethodId.length === 32 && true)) {
1667
- __compactRuntime.typeError('assertMatchingOffchainMidnightHolderBindings',
1337
+ const proof_0 = args_0[0];
1338
+ const descriptor_0 = args_0[1];
1339
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1340
+ __compactRuntime.typeError('assertProofSignerMatchesAuthorization',
1668
1341
  'argument 1',
1669
- 'holder-bindings.compact line 114 char 1',
1670
- 'struct OffchainMidnightHolderBinding<holderDidStateHash: Bytes<32>, holderMethodId: Bytes<32>, holderPublicKey: Opaque<"JubjubPoint">>',
1671
- credentialBinding_0)
1342
+ 'signer-authorization.compact line 104 char 1',
1343
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1344
+ proof_0)
1672
1345
  }
1673
- if (!(typeof(presentationBinding_0) === 'object' && presentationBinding_0.holderDidStateHash.buffer instanceof ArrayBuffer && presentationBinding_0.holderDidStateHash.BYTES_PER_ELEMENT === 1 && presentationBinding_0.holderDidStateHash.length === 32 && presentationBinding_0.holderMethodId.buffer instanceof ArrayBuffer && presentationBinding_0.holderMethodId.BYTES_PER_ELEMENT === 1 && presentationBinding_0.holderMethodId.length === 32 && true)) {
1674
- __compactRuntime.typeError('assertMatchingOffchainMidnightHolderBindings',
1346
+ if (!(typeof(descriptor_0) === 'object' && typeof(descriptor_0.version) === 'bigint' && descriptor_0.version >= 0n && descriptor_0.version <= 65535n && descriptor_0.authorizationId.buffer instanceof ArrayBuffer && descriptor_0.authorizationId.BYTES_PER_ELEMENT === 1 && descriptor_0.authorizationId.length === 32 && typeof(descriptor_0.decisionSequence) === 'bigint' && descriptor_0.decisionSequence >= 0n && descriptor_0.decisionSequence <= 18446744073709551615n && typeof(descriptor_0.state) === 'number' && descriptor_0.state >= 0 && descriptor_0.state <= 2 && typeof(descriptor_0.role) === 'number' && descriptor_0.role >= 0 && descriptor_0.role <= 1 && typeof(descriptor_0.signerVerificationMethodRef) === 'object' && typeof(descriptor_0.signerVerificationMethodRef.controllerAddress) === 'object' && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && descriptor_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.methodId.length === 32 && true && typeof(descriptor_0.didStateVersion) === 'bigint' && descriptor_0.didStateVersion >= 0n && descriptor_0.didStateVersion <= 18446744073709551615n && typeof(descriptor_0.verificationRelationship) === 'number' && descriptor_0.verificationRelationship >= 0 && descriptor_0.verificationRelationship <= 2 && descriptor_0.scopeCommitment.buffer instanceof ArrayBuffer && descriptor_0.scopeCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.scopeCommitment.length === 32 && descriptor_0.policyCommitment.buffer instanceof ArrayBuffer && descriptor_0.policyCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.policyCommitment.length === 32)) {
1347
+ __compactRuntime.typeError('assertProofSignerMatchesAuthorization',
1675
1348
  'argument 2',
1676
- 'holder-bindings.compact line 114 char 1',
1677
- 'struct OffchainMidnightHolderBinding<holderDidStateHash: Bytes<32>, holderMethodId: Bytes<32>, holderPublicKey: Opaque<"JubjubPoint">>',
1678
- presentationBinding_0)
1349
+ 'signer-authorization.compact line 104 char 1',
1350
+ 'struct AuthorizedSignerDescriptor<version: Uint<0..65536>, authorizationId: Bytes<32>, decisionSequence: Uint<0..18446744073709551616>, state: Enum<AuthorizationState, active, suspended, revoked>, role: Enum<SignerRole, issuer, verifier>, signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, signerPublicKey: Opaque<"JubjubPoint">, didStateVersion: Uint<0..18446744073709551616>, verificationRelationship: Enum<VerificationRelationship, assertionMethod, authentication, capabilityInvocation>, scopeCommitment: Bytes<32>, policyCommitment: Bytes<32>>',
1351
+ descriptor_0)
1679
1352
  }
1680
- return _dummyContract._assertMatchingOffchainMidnightHolderBindings_0(credentialBinding_0,
1681
- presentationBinding_0);
1353
+ return _dummyContract._assertProofSignerMatchesAuthorization_0(proof_0,
1354
+ descriptor_0);
1682
1355
  },
1683
- assertProofMatchesOffchainMidnightHolderBinding: (...args_0) => {
1684
- if (args_0.length !== 2) {
1685
- throw new __compactRuntime.CompactError(`assertProofMatchesOffchainMidnightHolderBinding: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1356
+ assertAuthorizedIssuerDescriptor: (...args_0) => {
1357
+ if (args_0.length !== 3) {
1358
+ throw new __compactRuntime.CompactError(`assertAuthorizedIssuerDescriptor: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1686
1359
  }
1687
- const binding_0 = args_0[0];
1688
- const presentationProof_0 = args_0[1];
1689
- if (!(typeof(binding_0) === 'object' && binding_0.holderDidStateHash.buffer instanceof ArrayBuffer && binding_0.holderDidStateHash.BYTES_PER_ELEMENT === 1 && binding_0.holderDidStateHash.length === 32 && binding_0.holderMethodId.buffer instanceof ArrayBuffer && binding_0.holderMethodId.BYTES_PER_ELEMENT === 1 && binding_0.holderMethodId.length === 32 && true)) {
1690
- __compactRuntime.typeError('assertProofMatchesOffchainMidnightHolderBinding',
1360
+ const schema_0 = args_0[0];
1361
+ const proof_0 = args_0[1];
1362
+ const descriptor_0 = args_0[2];
1363
+ if (!(typeof(schema_0) === 'object' && schema_0.packageId.buffer instanceof ArrayBuffer && schema_0.packageId.BYTES_PER_ELEMENT === 1 && schema_0.packageId.length === 32 && schema_0.schemaId.buffer instanceof ArrayBuffer && schema_0.schemaId.BYTES_PER_ELEMENT === 1 && schema_0.schemaId.length === 32 && typeof(schema_0.majorVersion) === 'bigint' && schema_0.majorVersion >= 0n && schema_0.majorVersion <= 65535n && typeof(schema_0.minorVersion) === 'bigint' && schema_0.minorVersion >= 0n && schema_0.minorVersion <= 65535n)) {
1364
+ __compactRuntime.typeError('assertAuthorizedIssuerDescriptor',
1691
1365
  'argument 1',
1692
- 'holder-bindings.compact line 140 char 1',
1693
- 'struct OffchainMidnightHolderBinding<holderDidStateHash: Bytes<32>, holderMethodId: Bytes<32>, holderPublicKey: Opaque<"JubjubPoint">>',
1694
- binding_0)
1366
+ 'signer-authorization.compact line 129 char 1',
1367
+ 'struct SchemaRef<packageId: Bytes<32>, schemaId: Bytes<32>, majorVersion: Uint<0..65536>, minorVersion: Uint<0..65536>>',
1368
+ schema_0)
1695
1369
  }
1696
- if (!(typeof(presentationProof_0) === 'object' && typeof(presentationProof_0.signerVerificationMethodRef) === 'object' && typeof(presentationProof_0.signerVerificationMethodRef.didContractAddress) === 'object' && presentationProof_0.signerVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && presentationProof_0.signerVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && presentationProof_0.signerVerificationMethodRef.didContractAddress.bytes.length === 32 && presentationProof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && presentationProof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && presentationProof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(presentationProof_0.createdAt) === 'bigint' && presentationProof_0.createdAt >= 0n && presentationProof_0.createdAt <= 18446744073709551615n && presentationProof_0.challengeHash.buffer instanceof ArrayBuffer && presentationProof_0.challengeHash.BYTES_PER_ELEMENT === 1 && presentationProof_0.challengeHash.length === 32 && true && typeof(presentationProof_0.signature) === 'object' && true && typeof(presentationProof_0.signature.s) === 'bigint' && presentationProof_0.signature.s >= 0 && presentationProof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1697
- __compactRuntime.typeError('assertProofMatchesOffchainMidnightHolderBinding',
1370
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1371
+ __compactRuntime.typeError('assertAuthorizedIssuerDescriptor',
1698
1372
  'argument 2',
1699
- 'holder-bindings.compact line 140 char 1',
1700
- 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1701
- presentationProof_0)
1373
+ 'signer-authorization.compact line 129 char 1',
1374
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1375
+ proof_0)
1702
1376
  }
1703
- return _dummyContract._assertProofMatchesOffchainMidnightHolderBinding_0(binding_0,
1704
- presentationProof_0);
1705
- },
1706
- noSecretHolderChallengeResponse: (...args_0) => {
1707
- if (args_0.length !== 0) {
1708
- throw new __compactRuntime.CompactError(`noSecretHolderChallengeResponse: expected 0 arguments (as invoked from Typescript), received ${args_0.length}`);
1377
+ if (!(typeof(descriptor_0) === 'object' && typeof(descriptor_0.version) === 'bigint' && descriptor_0.version >= 0n && descriptor_0.version <= 65535n && descriptor_0.authorizationId.buffer instanceof ArrayBuffer && descriptor_0.authorizationId.BYTES_PER_ELEMENT === 1 && descriptor_0.authorizationId.length === 32 && typeof(descriptor_0.decisionSequence) === 'bigint' && descriptor_0.decisionSequence >= 0n && descriptor_0.decisionSequence <= 18446744073709551615n && typeof(descriptor_0.state) === 'number' && descriptor_0.state >= 0 && descriptor_0.state <= 2 && typeof(descriptor_0.role) === 'number' && descriptor_0.role >= 0 && descriptor_0.role <= 1 && typeof(descriptor_0.signerVerificationMethodRef) === 'object' && typeof(descriptor_0.signerVerificationMethodRef.controllerAddress) === 'object' && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && descriptor_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.methodId.length === 32 && true && typeof(descriptor_0.didStateVersion) === 'bigint' && descriptor_0.didStateVersion >= 0n && descriptor_0.didStateVersion <= 18446744073709551615n && typeof(descriptor_0.verificationRelationship) === 'number' && descriptor_0.verificationRelationship >= 0 && descriptor_0.verificationRelationship <= 2 && descriptor_0.scopeCommitment.buffer instanceof ArrayBuffer && descriptor_0.scopeCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.scopeCommitment.length === 32 && descriptor_0.policyCommitment.buffer instanceof ArrayBuffer && descriptor_0.policyCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.policyCommitment.length === 32)) {
1378
+ __compactRuntime.typeError('assertAuthorizedIssuerDescriptor',
1379
+ 'argument 3',
1380
+ 'signer-authorization.compact line 129 char 1',
1381
+ 'struct AuthorizedSignerDescriptor<version: Uint<0..65536>, authorizationId: Bytes<32>, decisionSequence: Uint<0..18446744073709551616>, state: Enum<AuthorizationState, active, suspended, revoked>, role: Enum<SignerRole, issuer, verifier>, signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, signerPublicKey: Opaque<"JubjubPoint">, didStateVersion: Uint<0..18446744073709551616>, verificationRelationship: Enum<VerificationRelationship, assertionMethod, authentication, capabilityInvocation>, scopeCommitment: Bytes<32>, policyCommitment: Bytes<32>>',
1382
+ descriptor_0)
1709
1383
  }
1710
- return _dummyContract._noSecretHolderChallengeResponse_0();
1384
+ return _dummyContract._assertAuthorizedIssuerDescriptor_0(schema_0,
1385
+ proof_0,
1386
+ descriptor_0);
1711
1387
  },
1712
- secretHolderBindingCommitment: (...args_0) => {
1713
- if (args_0.length !== 2) {
1714
- throw new __compactRuntime.CompactError(`secretHolderBindingCommitment: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1388
+ assertAuthorizedVerifierProof: (...args_0) => {
1389
+ if (args_0.length !== 3) {
1390
+ throw new __compactRuntime.CompactError(`assertAuthorizedVerifierProof: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1715
1391
  }
1716
- const holderSecret_0 = args_0[0];
1717
- const opening_0 = args_0[1];
1718
- if (!(holderSecret_0.buffer instanceof ArrayBuffer && holderSecret_0.BYTES_PER_ELEMENT === 1 && holderSecret_0.length === 32)) {
1719
- __compactRuntime.typeError('secretHolderBindingCommitment',
1392
+ const requestScopeCommitment_0 = args_0[0];
1393
+ const proof_0 = args_0[1];
1394
+ const descriptor_0 = args_0[2];
1395
+ if (!(requestScopeCommitment_0.buffer instanceof ArrayBuffer && requestScopeCommitment_0.BYTES_PER_ELEMENT === 1 && requestScopeCommitment_0.length === 32)) {
1396
+ __compactRuntime.typeError('assertAuthorizedVerifierProof',
1720
1397
  'argument 1',
1721
- 'holder-bindings.compact line 157 char 1',
1398
+ 'signer-authorization.compact line 145 char 1',
1722
1399
  'Bytes<32>',
1723
- holderSecret_0)
1400
+ requestScopeCommitment_0)
1724
1401
  }
1725
- if (!(opening_0.buffer instanceof ArrayBuffer && opening_0.BYTES_PER_ELEMENT === 1 && opening_0.length === 32)) {
1726
- __compactRuntime.typeError('secretHolderBindingCommitment',
1402
+ if (!(typeof(proof_0) === 'object' && typeof(proof_0.signerVerificationMethodRef) === 'object' && typeof(proof_0.signerVerificationMethodRef.controllerAddress) === 'object' && proof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && proof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && proof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && proof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(proof_0.createdAt) === 'bigint' && proof_0.createdAt >= 0n && proof_0.createdAt <= 18446744073709551615n && proof_0.challengeHash.buffer instanceof ArrayBuffer && proof_0.challengeHash.BYTES_PER_ELEMENT === 1 && proof_0.challengeHash.length === 32 && true && typeof(proof_0.signature) === 'object' && true && typeof(proof_0.signature.s) === 'bigint' && proof_0.signature.s >= 0 && proof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1403
+ __compactRuntime.typeError('assertAuthorizedVerifierProof',
1727
1404
  'argument 2',
1728
- 'holder-bindings.compact line 157 char 1',
1729
- 'Bytes<32>',
1730
- opening_0)
1731
- }
1732
- return _dummyContract._secretHolderBindingCommitment_0(holderSecret_0,
1733
- opening_0);
1734
- },
1735
- secretHolderBindingChallengeResponse: (...args_0) => {
1736
- if (args_0.length !== 2) {
1737
- throw new __compactRuntime.CompactError(`secretHolderBindingChallengeResponse: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1738
- }
1739
- const holderSecret_0 = args_0[0];
1740
- const verifierChallengeHash_0 = args_0[1];
1741
- if (!(holderSecret_0.buffer instanceof ArrayBuffer && holderSecret_0.BYTES_PER_ELEMENT === 1 && holderSecret_0.length === 32)) {
1742
- __compactRuntime.typeError('secretHolderBindingChallengeResponse',
1743
- 'argument 1',
1744
- 'holder-bindings.compact line 164 char 1',
1745
- 'Bytes<32>',
1746
- holderSecret_0)
1405
+ 'signer-authorization.compact line 145 char 1',
1406
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1407
+ proof_0)
1747
1408
  }
1748
- if (!(verifierChallengeHash_0.buffer instanceof ArrayBuffer && verifierChallengeHash_0.BYTES_PER_ELEMENT === 1 && verifierChallengeHash_0.length === 32)) {
1749
- __compactRuntime.typeError('secretHolderBindingChallengeResponse',
1750
- 'argument 2',
1751
- 'holder-bindings.compact line 164 char 1',
1752
- 'Bytes<32>',
1753
- verifierChallengeHash_0)
1409
+ if (!(typeof(descriptor_0) === 'object' && typeof(descriptor_0.version) === 'bigint' && descriptor_0.version >= 0n && descriptor_0.version <= 65535n && descriptor_0.authorizationId.buffer instanceof ArrayBuffer && descriptor_0.authorizationId.BYTES_PER_ELEMENT === 1 && descriptor_0.authorizationId.length === 32 && typeof(descriptor_0.decisionSequence) === 'bigint' && descriptor_0.decisionSequence >= 0n && descriptor_0.decisionSequence <= 18446744073709551615n && typeof(descriptor_0.state) === 'number' && descriptor_0.state >= 0 && descriptor_0.state <= 2 && typeof(descriptor_0.role) === 'number' && descriptor_0.role >= 0 && descriptor_0.role <= 1 && typeof(descriptor_0.signerVerificationMethodRef) === 'object' && typeof(descriptor_0.signerVerificationMethodRef.controllerAddress) === 'object' && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && descriptor_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.methodId.length === 32 && true && typeof(descriptor_0.didStateVersion) === 'bigint' && descriptor_0.didStateVersion >= 0n && descriptor_0.didStateVersion <= 18446744073709551615n && typeof(descriptor_0.verificationRelationship) === 'number' && descriptor_0.verificationRelationship >= 0 && descriptor_0.verificationRelationship <= 2 && descriptor_0.scopeCommitment.buffer instanceof ArrayBuffer && descriptor_0.scopeCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.scopeCommitment.length === 32 && descriptor_0.policyCommitment.buffer instanceof ArrayBuffer && descriptor_0.policyCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.policyCommitment.length === 32)) {
1410
+ __compactRuntime.typeError('assertAuthorizedVerifierProof',
1411
+ 'argument 3',
1412
+ 'signer-authorization.compact line 145 char 1',
1413
+ 'struct AuthorizedSignerDescriptor<version: Uint<0..65536>, authorizationId: Bytes<32>, decisionSequence: Uint<0..18446744073709551616>, state: Enum<AuthorizationState, active, suspended, revoked>, role: Enum<SignerRole, issuer, verifier>, signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, signerPublicKey: Opaque<"JubjubPoint">, didStateVersion: Uint<0..18446744073709551616>, verificationRelationship: Enum<VerificationRelationship, assertionMethod, authentication, capabilityInvocation>, scopeCommitment: Bytes<32>, policyCommitment: Bytes<32>>',
1414
+ descriptor_0)
1754
1415
  }
1755
- return _dummyContract._secretHolderBindingChallengeResponse_0(holderSecret_0,
1756
- verifierChallengeHash_0);
1416
+ return _dummyContract._assertAuthorizedVerifierProof_0(requestScopeCommitment_0,
1417
+ proof_0,
1418
+ descriptor_0);
1757
1419
  },
1758
- verifierScopedPseudonym: (...args_0) => {
1759
- if (args_0.length !== 2) {
1760
- throw new __compactRuntime.CompactError(`verifierScopedPseudonym: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1420
+ assertValidSignerAuthorizationAuthority: (...args_0) => {
1421
+ if (args_0.length !== 1) {
1422
+ throw new __compactRuntime.CompactError(`assertValidSignerAuthorizationAuthority: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1761
1423
  }
1762
- const holderSecret_0 = args_0[0];
1763
- const verifierDomainHash_0 = args_0[1];
1764
- if (!(holderSecret_0.buffer instanceof ArrayBuffer && holderSecret_0.BYTES_PER_ELEMENT === 1 && holderSecret_0.length === 32)) {
1765
- __compactRuntime.typeError('verifierScopedPseudonym',
1424
+ const authority_0 = args_0[0];
1425
+ if (!(typeof(authority_0) === 'object' && authority_0.domainCommitment.buffer instanceof ArrayBuffer && authority_0.domainCommitment.BYTES_PER_ELEMENT === 1 && authority_0.domainCommitment.length === 32 && typeof(authority_0.verificationMethodRef) === 'object' && typeof(authority_0.verificationMethodRef.controllerAddress) === 'object' && authority_0.verificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && authority_0.verificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && authority_0.verificationMethodRef.controllerAddress.bytes.length === 32 && authority_0.verificationMethodRef.methodId.buffer instanceof ArrayBuffer && authority_0.verificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && authority_0.verificationMethodRef.methodId.length === 32 && true)) {
1426
+ __compactRuntime.typeError('assertValidSignerAuthorizationAuthority',
1766
1427
  'argument 1',
1767
- 'holder-bindings.compact line 175 char 1',
1768
- 'Bytes<32>',
1769
- holderSecret_0)
1428
+ 'signer-authorization.compact line 166 char 1',
1429
+ 'struct SignerAuthorizationAuthority<domainCommitment: Bytes<32>, verificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, publicKey: Opaque<"JubjubPoint">>',
1430
+ authority_0)
1770
1431
  }
1771
- if (!(verifierDomainHash_0.buffer instanceof ArrayBuffer && verifierDomainHash_0.BYTES_PER_ELEMENT === 1 && verifierDomainHash_0.length === 32)) {
1772
- __compactRuntime.typeError('verifierScopedPseudonym',
1773
- 'argument 2',
1774
- 'holder-bindings.compact line 175 char 1',
1775
- 'Bytes<32>',
1776
- verifierDomainHash_0)
1777
- }
1778
- return _dummyContract._verifierScopedPseudonym_0(holderSecret_0,
1779
- verifierDomainHash_0);
1432
+ return _dummyContract._assertValidSignerAuthorizationAuthority_0(authority_0);
1780
1433
  },
1781
- assertVerifierScopedPseudonym: (...args_0) => {
1782
- if (args_0.length !== 3) {
1783
- throw new __compactRuntime.CompactError(`assertVerifierScopedPseudonym: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1434
+ signerAuthorizationDecisionRoot: (...args_0) => {
1435
+ if (args_0.length !== 2) {
1436
+ throw new __compactRuntime.CompactError(`signerAuthorizationDecisionRoot: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1784
1437
  }
1785
- const pseudonym_0 = args_0[0];
1786
- const holderSecret_0 = args_0[1];
1787
- const verifierDomainHash_0 = args_0[2];
1788
- if (!(pseudonym_0.buffer instanceof ArrayBuffer && pseudonym_0.BYTES_PER_ELEMENT === 1 && pseudonym_0.length === 32)) {
1789
- __compactRuntime.typeError('assertVerifierScopedPseudonym',
1438
+ const descriptor_0 = args_0[0];
1439
+ const domainCommitment_0 = args_0[1];
1440
+ if (!(typeof(descriptor_0) === 'object' && typeof(descriptor_0.version) === 'bigint' && descriptor_0.version >= 0n && descriptor_0.version <= 65535n && descriptor_0.authorizationId.buffer instanceof ArrayBuffer && descriptor_0.authorizationId.BYTES_PER_ELEMENT === 1 && descriptor_0.authorizationId.length === 32 && typeof(descriptor_0.decisionSequence) === 'bigint' && descriptor_0.decisionSequence >= 0n && descriptor_0.decisionSequence <= 18446744073709551615n && typeof(descriptor_0.state) === 'number' && descriptor_0.state >= 0 && descriptor_0.state <= 2 && typeof(descriptor_0.role) === 'number' && descriptor_0.role >= 0 && descriptor_0.role <= 1 && typeof(descriptor_0.signerVerificationMethodRef) === 'object' && typeof(descriptor_0.signerVerificationMethodRef.controllerAddress) === 'object' && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && descriptor_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.methodId.length === 32 && true && typeof(descriptor_0.didStateVersion) === 'bigint' && descriptor_0.didStateVersion >= 0n && descriptor_0.didStateVersion <= 18446744073709551615n && typeof(descriptor_0.verificationRelationship) === 'number' && descriptor_0.verificationRelationship >= 0 && descriptor_0.verificationRelationship <= 2 && descriptor_0.scopeCommitment.buffer instanceof ArrayBuffer && descriptor_0.scopeCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.scopeCommitment.length === 32 && descriptor_0.policyCommitment.buffer instanceof ArrayBuffer && descriptor_0.policyCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.policyCommitment.length === 32)) {
1441
+ __compactRuntime.typeError('signerAuthorizationDecisionRoot',
1790
1442
  'argument 1',
1791
- 'holder-bindings.compact line 186 char 1',
1792
- 'Bytes<32>',
1793
- pseudonym_0)
1443
+ 'signer-authorization.compact line 177 char 1',
1444
+ 'struct AuthorizedSignerDescriptor<version: Uint<0..65536>, authorizationId: Bytes<32>, decisionSequence: Uint<0..18446744073709551616>, state: Enum<AuthorizationState, active, suspended, revoked>, role: Enum<SignerRole, issuer, verifier>, signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, signerPublicKey: Opaque<"JubjubPoint">, didStateVersion: Uint<0..18446744073709551616>, verificationRelationship: Enum<VerificationRelationship, assertionMethod, authentication, capabilityInvocation>, scopeCommitment: Bytes<32>, policyCommitment: Bytes<32>>',
1445
+ descriptor_0)
1794
1446
  }
1795
- if (!(holderSecret_0.buffer instanceof ArrayBuffer && holderSecret_0.BYTES_PER_ELEMENT === 1 && holderSecret_0.length === 32)) {
1796
- __compactRuntime.typeError('assertVerifierScopedPseudonym',
1447
+ if (!(domainCommitment_0.buffer instanceof ArrayBuffer && domainCommitment_0.BYTES_PER_ELEMENT === 1 && domainCommitment_0.length === 32)) {
1448
+ __compactRuntime.typeError('signerAuthorizationDecisionRoot',
1797
1449
  'argument 2',
1798
- 'holder-bindings.compact line 186 char 1',
1450
+ 'signer-authorization.compact line 177 char 1',
1799
1451
  'Bytes<32>',
1800
- holderSecret_0)
1452
+ domainCommitment_0)
1801
1453
  }
1802
- if (!(verifierDomainHash_0.buffer instanceof ArrayBuffer && verifierDomainHash_0.BYTES_PER_ELEMENT === 1 && verifierDomainHash_0.length === 32)) {
1803
- __compactRuntime.typeError('assertVerifierScopedPseudonym',
1804
- 'argument 3',
1805
- 'holder-bindings.compact line 186 char 1',
1806
- 'Bytes<32>',
1807
- verifierDomainHash_0)
1808
- }
1809
- return _dummyContract._assertVerifierScopedPseudonym_0(pseudonym_0,
1810
- holderSecret_0,
1811
- verifierDomainHash_0);
1454
+ return _dummyContract._signerAuthorizationDecisionRoot_0(descriptor_0,
1455
+ domainCommitment_0);
1812
1456
  },
1813
- blindedSecretHolderCommitment: (...args_0) => {
1457
+ assertValidSignerAuthorizationProof: (...args_0) => {
1814
1458
  if (args_0.length !== 3) {
1815
- throw new __compactRuntime.CompactError(`blindedSecretHolderCommitment: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1459
+ throw new __compactRuntime.CompactError(`assertValidSignerAuthorizationProof: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1816
1460
  }
1817
- const holderSecretCommitment_0 = args_0[0];
1818
- const issuerNonce_0 = args_0[1];
1819
- const blindingFactor_0 = args_0[2];
1820
- if (!(holderSecretCommitment_0.buffer instanceof ArrayBuffer && holderSecretCommitment_0.BYTES_PER_ELEMENT === 1 && holderSecretCommitment_0.length === 32)) {
1821
- __compactRuntime.typeError('blindedSecretHolderCommitment',
1461
+ const descriptor_0 = args_0[0];
1462
+ const authorizationProof_0 = args_0[1];
1463
+ const authority_0 = args_0[2];
1464
+ if (!(typeof(descriptor_0) === 'object' && typeof(descriptor_0.version) === 'bigint' && descriptor_0.version >= 0n && descriptor_0.version <= 65535n && descriptor_0.authorizationId.buffer instanceof ArrayBuffer && descriptor_0.authorizationId.BYTES_PER_ELEMENT === 1 && descriptor_0.authorizationId.length === 32 && typeof(descriptor_0.decisionSequence) === 'bigint' && descriptor_0.decisionSequence >= 0n && descriptor_0.decisionSequence <= 18446744073709551615n && typeof(descriptor_0.state) === 'number' && descriptor_0.state >= 0 && descriptor_0.state <= 2 && typeof(descriptor_0.role) === 'number' && descriptor_0.role >= 0 && descriptor_0.role <= 1 && typeof(descriptor_0.signerVerificationMethodRef) === 'object' && typeof(descriptor_0.signerVerificationMethodRef.controllerAddress) === 'object' && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && descriptor_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && descriptor_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && descriptor_0.signerVerificationMethodRef.methodId.length === 32 && true && typeof(descriptor_0.didStateVersion) === 'bigint' && descriptor_0.didStateVersion >= 0n && descriptor_0.didStateVersion <= 18446744073709551615n && typeof(descriptor_0.verificationRelationship) === 'number' && descriptor_0.verificationRelationship >= 0 && descriptor_0.verificationRelationship <= 2 && descriptor_0.scopeCommitment.buffer instanceof ArrayBuffer && descriptor_0.scopeCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.scopeCommitment.length === 32 && descriptor_0.policyCommitment.buffer instanceof ArrayBuffer && descriptor_0.policyCommitment.BYTES_PER_ELEMENT === 1 && descriptor_0.policyCommitment.length === 32)) {
1465
+ __compactRuntime.typeError('assertValidSignerAuthorizationProof',
1822
1466
  'argument 1',
1823
- 'holder-bindings.compact line 197 char 1',
1824
- 'Bytes<32>',
1825
- holderSecretCommitment_0)
1467
+ 'signer-authorization.compact line 192 char 1',
1468
+ 'struct AuthorizedSignerDescriptor<version: Uint<0..65536>, authorizationId: Bytes<32>, decisionSequence: Uint<0..18446744073709551616>, state: Enum<AuthorizationState, active, suspended, revoked>, role: Enum<SignerRole, issuer, verifier>, signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, signerPublicKey: Opaque<"JubjubPoint">, didStateVersion: Uint<0..18446744073709551616>, verificationRelationship: Enum<VerificationRelationship, assertionMethod, authentication, capabilityInvocation>, scopeCommitment: Bytes<32>, policyCommitment: Bytes<32>>',
1469
+ descriptor_0)
1826
1470
  }
1827
- if (!(issuerNonce_0.buffer instanceof ArrayBuffer && issuerNonce_0.BYTES_PER_ELEMENT === 1 && issuerNonce_0.length === 32)) {
1828
- __compactRuntime.typeError('blindedSecretHolderCommitment',
1471
+ if (!(typeof(authorizationProof_0) === 'object' && typeof(authorizationProof_0.signerVerificationMethodRef) === 'object' && typeof(authorizationProof_0.signerVerificationMethodRef.controllerAddress) === 'object' && authorizationProof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && authorizationProof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && authorizationProof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && authorizationProof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && authorizationProof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && authorizationProof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(authorizationProof_0.createdAt) === 'bigint' && authorizationProof_0.createdAt >= 0n && authorizationProof_0.createdAt <= 18446744073709551615n && authorizationProof_0.challengeHash.buffer instanceof ArrayBuffer && authorizationProof_0.challengeHash.BYTES_PER_ELEMENT === 1 && authorizationProof_0.challengeHash.length === 32 && true && typeof(authorizationProof_0.signature) === 'object' && true && typeof(authorizationProof_0.signature.s) === 'bigint' && authorizationProof_0.signature.s >= 0 && authorizationProof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1472
+ __compactRuntime.typeError('assertValidSignerAuthorizationProof',
1829
1473
  'argument 2',
1830
- 'holder-bindings.compact line 197 char 1',
1831
- 'Bytes<32>',
1832
- issuerNonce_0)
1474
+ 'signer-authorization.compact line 192 char 1',
1475
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1476
+ authorizationProof_0)
1833
1477
  }
1834
- if (!(blindingFactor_0.buffer instanceof ArrayBuffer && blindingFactor_0.BYTES_PER_ELEMENT === 1 && blindingFactor_0.length === 32)) {
1835
- __compactRuntime.typeError('blindedSecretHolderCommitment',
1478
+ if (!(typeof(authority_0) === 'object' && authority_0.domainCommitment.buffer instanceof ArrayBuffer && authority_0.domainCommitment.BYTES_PER_ELEMENT === 1 && authority_0.domainCommitment.length === 32 && typeof(authority_0.verificationMethodRef) === 'object' && typeof(authority_0.verificationMethodRef.controllerAddress) === 'object' && authority_0.verificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && authority_0.verificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && authority_0.verificationMethodRef.controllerAddress.bytes.length === 32 && authority_0.verificationMethodRef.methodId.buffer instanceof ArrayBuffer && authority_0.verificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && authority_0.verificationMethodRef.methodId.length === 32 && true)) {
1479
+ __compactRuntime.typeError('assertValidSignerAuthorizationProof',
1836
1480
  'argument 3',
1837
- 'holder-bindings.compact line 197 char 1',
1838
- 'Bytes<32>',
1839
- blindingFactor_0)
1481
+ 'signer-authorization.compact line 192 char 1',
1482
+ 'struct SignerAuthorizationAuthority<domainCommitment: Bytes<32>, verificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, publicKey: Opaque<"JubjubPoint">>',
1483
+ authority_0)
1840
1484
  }
1841
- return _dummyContract._blindedSecretHolderCommitment_0(holderSecretCommitment_0,
1842
- issuerNonce_0,
1843
- blindingFactor_0);
1485
+ return _dummyContract._assertValidSignerAuthorizationProof_0(descriptor_0,
1486
+ authorizationProof_0,
1487
+ authority_0);
1844
1488
  },
1845
- assertValidSecretHolderCredentialBinding: (...args_0) => {
1846
- if (args_0.length !== 1) {
1847
- throw new __compactRuntime.CompactError(`assertValidSecretHolderCredentialBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1848
- }
1849
- const binding_0 = args_0[0];
1850
- if (!(typeof(binding_0) === 'object' && binding_0.holderSecretCommitment.buffer instanceof ArrayBuffer && binding_0.holderSecretCommitment.BYTES_PER_ELEMENT === 1 && binding_0.holderSecretCommitment.length === 32 && binding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && binding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && binding_0.requestChallengeResponse.length === 32)) {
1851
- __compactRuntime.typeError('assertValidSecretHolderCredentialBinding',
1852
- 'argument 1',
1853
- 'holder-bindings.compact line 213 char 1',
1854
- 'struct SecretHolderBinding<holderSecretCommitment: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1855
- binding_0)
1856
- }
1857
- return _dummyContract._assertValidSecretHolderCredentialBinding_0(binding_0);
1858
- },
1859
- assertValidSecretHolderPresentationBinding: (...args_0) => {
1860
- if (args_0.length !== 1) {
1861
- throw new __compactRuntime.CompactError(`assertValidSecretHolderPresentationBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1862
- }
1863
- const binding_0 = args_0[0];
1864
- if (!(typeof(binding_0) === 'object' && binding_0.holderSecretCommitment.buffer instanceof ArrayBuffer && binding_0.holderSecretCommitment.BYTES_PER_ELEMENT === 1 && binding_0.holderSecretCommitment.length === 32 && binding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && binding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && binding_0.requestChallengeResponse.length === 32)) {
1865
- __compactRuntime.typeError('assertValidSecretHolderPresentationBinding',
1866
- 'argument 1',
1867
- 'holder-bindings.compact line 222 char 1',
1868
- 'struct SecretHolderBinding<holderSecretCommitment: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1869
- binding_0)
1870
- }
1871
- return _dummyContract._assertValidSecretHolderPresentationBinding_0(binding_0);
1872
- },
1873
- assertMatchingSecretHolderBindings: (...args_0) => {
1489
+ assertValidSignerAuthorizationUpdate: (...args_0) => {
1874
1490
  if (args_0.length !== 2) {
1875
- throw new __compactRuntime.CompactError(`assertMatchingSecretHolderBindings: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1491
+ throw new __compactRuntime.CompactError(`assertValidSignerAuthorizationUpdate: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1876
1492
  }
1877
- const credentialBinding_0 = args_0[0];
1878
- const presentationBinding_0 = args_0[1];
1879
- if (!(typeof(credentialBinding_0) === 'object' && credentialBinding_0.holderSecretCommitment.buffer instanceof ArrayBuffer && credentialBinding_0.holderSecretCommitment.BYTES_PER_ELEMENT === 1 && credentialBinding_0.holderSecretCommitment.length === 32 && credentialBinding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && credentialBinding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && credentialBinding_0.requestChallengeResponse.length === 32)) {
1880
- __compactRuntime.typeError('assertMatchingSecretHolderBindings',
1493
+ const previous_0 = args_0[0];
1494
+ const next_0 = args_0[1];
1495
+ if (!(typeof(previous_0) === 'object' && typeof(previous_0.version) === 'bigint' && previous_0.version >= 0n && previous_0.version <= 65535n && previous_0.authorizationId.buffer instanceof ArrayBuffer && previous_0.authorizationId.BYTES_PER_ELEMENT === 1 && previous_0.authorizationId.length === 32 && typeof(previous_0.decisionSequence) === 'bigint' && previous_0.decisionSequence >= 0n && previous_0.decisionSequence <= 18446744073709551615n && typeof(previous_0.state) === 'number' && previous_0.state >= 0 && previous_0.state <= 2 && typeof(previous_0.role) === 'number' && previous_0.role >= 0 && previous_0.role <= 1 && typeof(previous_0.signerVerificationMethodRef) === 'object' && typeof(previous_0.signerVerificationMethodRef.controllerAddress) === 'object' && previous_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && previous_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && previous_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && previous_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && previous_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && previous_0.signerVerificationMethodRef.methodId.length === 32 && true && typeof(previous_0.didStateVersion) === 'bigint' && previous_0.didStateVersion >= 0n && previous_0.didStateVersion <= 18446744073709551615n && typeof(previous_0.verificationRelationship) === 'number' && previous_0.verificationRelationship >= 0 && previous_0.verificationRelationship <= 2 && previous_0.scopeCommitment.buffer instanceof ArrayBuffer && previous_0.scopeCommitment.BYTES_PER_ELEMENT === 1 && previous_0.scopeCommitment.length === 32 && previous_0.policyCommitment.buffer instanceof ArrayBuffer && previous_0.policyCommitment.BYTES_PER_ELEMENT === 1 && previous_0.policyCommitment.length === 32)) {
1496
+ __compactRuntime.typeError('assertValidSignerAuthorizationUpdate',
1881
1497
  'argument 1',
1882
- 'holder-bindings.compact line 231 char 1',
1883
- 'struct SecretHolderBinding<holderSecretCommitment: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1884
- credentialBinding_0)
1498
+ 'signer-authorization.compact line 223 char 1',
1499
+ 'struct AuthorizedSignerDescriptor<version: Uint<0..65536>, authorizationId: Bytes<32>, decisionSequence: Uint<0..18446744073709551616>, state: Enum<AuthorizationState, active, suspended, revoked>, role: Enum<SignerRole, issuer, verifier>, signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, signerPublicKey: Opaque<"JubjubPoint">, didStateVersion: Uint<0..18446744073709551616>, verificationRelationship: Enum<VerificationRelationship, assertionMethod, authentication, capabilityInvocation>, scopeCommitment: Bytes<32>, policyCommitment: Bytes<32>>',
1500
+ previous_0)
1885
1501
  }
1886
- if (!(typeof(presentationBinding_0) === 'object' && presentationBinding_0.holderSecretCommitment.buffer instanceof ArrayBuffer && presentationBinding_0.holderSecretCommitment.BYTES_PER_ELEMENT === 1 && presentationBinding_0.holderSecretCommitment.length === 32 && presentationBinding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && presentationBinding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && presentationBinding_0.requestChallengeResponse.length === 32)) {
1887
- __compactRuntime.typeError('assertMatchingSecretHolderBindings',
1502
+ if (!(typeof(next_0) === 'object' && typeof(next_0.version) === 'bigint' && next_0.version >= 0n && next_0.version <= 65535n && next_0.authorizationId.buffer instanceof ArrayBuffer && next_0.authorizationId.BYTES_PER_ELEMENT === 1 && next_0.authorizationId.length === 32 && typeof(next_0.decisionSequence) === 'bigint' && next_0.decisionSequence >= 0n && next_0.decisionSequence <= 18446744073709551615n && typeof(next_0.state) === 'number' && next_0.state >= 0 && next_0.state <= 2 && typeof(next_0.role) === 'number' && next_0.role >= 0 && next_0.role <= 1 && typeof(next_0.signerVerificationMethodRef) === 'object' && typeof(next_0.signerVerificationMethodRef.controllerAddress) === 'object' && next_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && next_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && next_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && next_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && next_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && next_0.signerVerificationMethodRef.methodId.length === 32 && true && typeof(next_0.didStateVersion) === 'bigint' && next_0.didStateVersion >= 0n && next_0.didStateVersion <= 18446744073709551615n && typeof(next_0.verificationRelationship) === 'number' && next_0.verificationRelationship >= 0 && next_0.verificationRelationship <= 2 && next_0.scopeCommitment.buffer instanceof ArrayBuffer && next_0.scopeCommitment.BYTES_PER_ELEMENT === 1 && next_0.scopeCommitment.length === 32 && next_0.policyCommitment.buffer instanceof ArrayBuffer && next_0.policyCommitment.BYTES_PER_ELEMENT === 1 && next_0.policyCommitment.length === 32)) {
1503
+ __compactRuntime.typeError('assertValidSignerAuthorizationUpdate',
1888
1504
  'argument 2',
1889
- 'holder-bindings.compact line 231 char 1',
1890
- 'struct SecretHolderBinding<holderSecretCommitment: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1891
- presentationBinding_0)
1505
+ 'signer-authorization.compact line 223 char 1',
1506
+ 'struct AuthorizedSignerDescriptor<version: Uint<0..65536>, authorizationId: Bytes<32>, decisionSequence: Uint<0..18446744073709551616>, state: Enum<AuthorizationState, active, suspended, revoked>, role: Enum<SignerRole, issuer, verifier>, signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, signerPublicKey: Opaque<"JubjubPoint">, didStateVersion: Uint<0..18446744073709551616>, verificationRelationship: Enum<VerificationRelationship, assertionMethod, authentication, capabilityInvocation>, scopeCommitment: Bytes<32>, policyCommitment: Bytes<32>>',
1507
+ next_0)
1892
1508
  }
1893
- return _dummyContract._assertMatchingSecretHolderBindings_0(credentialBinding_0,
1894
- presentationBinding_0);
1509
+ return _dummyContract._assertValidSignerAuthorizationUpdate_0(previous_0,
1510
+ next_0);
1895
1511
  },
1896
- assertValidBlindedSecretHolderCredentialBinding: (...args_0) => {
1897
- if (args_0.length !== 1) {
1898
- throw new __compactRuntime.CompactError(`assertValidBlindedSecretHolderCredentialBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1899
- }
1900
- const binding_0 = args_0[0];
1901
- if (!(typeof(binding_0) === 'object' && binding_0.blindedHolderSecretCommitment.buffer instanceof ArrayBuffer && binding_0.blindedHolderSecretCommitment.BYTES_PER_ELEMENT === 1 && binding_0.blindedHolderSecretCommitment.length === 32 && binding_0.issuerNonce.buffer instanceof ArrayBuffer && binding_0.issuerNonce.BYTES_PER_ELEMENT === 1 && binding_0.issuerNonce.length === 32 && binding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && binding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && binding_0.requestChallengeResponse.length === 32)) {
1902
- __compactRuntime.typeError('assertValidBlindedSecretHolderCredentialBinding',
1903
- 'argument 1',
1904
- 'holder-bindings.compact line 241 char 1',
1905
- 'struct BlindedSecretHolderBinding<blindedHolderSecretCommitment: Bytes<32>, issuerNonce: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1906
- binding_0)
1907
- }
1908
- return _dummyContract._assertValidBlindedSecretHolderCredentialBinding_0(binding_0);
1909
- },
1910
- assertValidBlindedSecretHolderPresentationBinding: (...args_0) => {
1512
+ assertValidExplicitHolderBinding: (...args_0) => {
1911
1513
  if (args_0.length !== 1) {
1912
- throw new __compactRuntime.CompactError(`assertValidBlindedSecretHolderPresentationBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1514
+ throw new __compactRuntime.CompactError(`assertValidExplicitHolderBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1913
1515
  }
1914
1516
  const binding_0 = args_0[0];
1915
- if (!(typeof(binding_0) === 'object' && binding_0.blindedHolderSecretCommitment.buffer instanceof ArrayBuffer && binding_0.blindedHolderSecretCommitment.BYTES_PER_ELEMENT === 1 && binding_0.blindedHolderSecretCommitment.length === 32 && binding_0.issuerNonce.buffer instanceof ArrayBuffer && binding_0.issuerNonce.BYTES_PER_ELEMENT === 1 && binding_0.issuerNonce.length === 32 && binding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && binding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && binding_0.requestChallengeResponse.length === 32)) {
1916
- __compactRuntime.typeError('assertValidBlindedSecretHolderPresentationBinding',
1517
+ if (!(typeof(binding_0) === 'object' && typeof(binding_0.holderVerificationMethodRef) === 'object' && typeof(binding_0.holderVerificationMethodRef.controllerAddress) === 'object' && binding_0.holderVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && binding_0.holderVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && binding_0.holderVerificationMethodRef.controllerAddress.bytes.length === 32 && binding_0.holderVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && binding_0.holderVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && binding_0.holderVerificationMethodRef.methodId.length === 32)) {
1518
+ __compactRuntime.typeError('assertValidExplicitHolderBinding',
1917
1519
  'argument 1',
1918
- 'holder-bindings.compact line 250 char 1',
1919
- 'struct BlindedSecretHolderBinding<blindedHolderSecretCommitment: Bytes<32>, issuerNonce: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1520
+ 'holder-bindings.compact line 2 char 1',
1521
+ 'struct ExplicitHolderBinding<holderVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
1920
1522
  binding_0)
1921
1523
  }
1922
- return _dummyContract._assertValidBlindedSecretHolderPresentationBinding_0(binding_0);
1524
+ return _dummyContract._assertValidExplicitHolderBinding_0(binding_0);
1923
1525
  },
1924
- assertMatchingBlindedSecretHolderBindings: (...args_0) => {
1526
+ assertMatchingExplicitHolderBindings: (...args_0) => {
1925
1527
  if (args_0.length !== 2) {
1926
- throw new __compactRuntime.CompactError(`assertMatchingBlindedSecretHolderBindings: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1528
+ throw new __compactRuntime.CompactError(`assertMatchingExplicitHolderBindings: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1927
1529
  }
1928
1530
  const credentialBinding_0 = args_0[0];
1929
1531
  const presentationBinding_0 = args_0[1];
1930
- if (!(typeof(credentialBinding_0) === 'object' && credentialBinding_0.blindedHolderSecretCommitment.buffer instanceof ArrayBuffer && credentialBinding_0.blindedHolderSecretCommitment.BYTES_PER_ELEMENT === 1 && credentialBinding_0.blindedHolderSecretCommitment.length === 32 && credentialBinding_0.issuerNonce.buffer instanceof ArrayBuffer && credentialBinding_0.issuerNonce.BYTES_PER_ELEMENT === 1 && credentialBinding_0.issuerNonce.length === 32 && credentialBinding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && credentialBinding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && credentialBinding_0.requestChallengeResponse.length === 32)) {
1931
- __compactRuntime.typeError('assertMatchingBlindedSecretHolderBindings',
1532
+ if (!(typeof(credentialBinding_0) === 'object' && typeof(credentialBinding_0.holderVerificationMethodRef) === 'object' && typeof(credentialBinding_0.holderVerificationMethodRef.controllerAddress) === 'object' && credentialBinding_0.holderVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && credentialBinding_0.holderVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && credentialBinding_0.holderVerificationMethodRef.controllerAddress.bytes.length === 32 && credentialBinding_0.holderVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && credentialBinding_0.holderVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && credentialBinding_0.holderVerificationMethodRef.methodId.length === 32)) {
1533
+ __compactRuntime.typeError('assertMatchingExplicitHolderBindings',
1932
1534
  'argument 1',
1933
- 'holder-bindings.compact line 259 char 1',
1934
- 'struct BlindedSecretHolderBinding<blindedHolderSecretCommitment: Bytes<32>, issuerNonce: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1535
+ 'holder-bindings.compact line 8 char 1',
1536
+ 'struct ExplicitHolderBinding<holderVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
1935
1537
  credentialBinding_0)
1936
1538
  }
1937
- if (!(typeof(presentationBinding_0) === 'object' && presentationBinding_0.blindedHolderSecretCommitment.buffer instanceof ArrayBuffer && presentationBinding_0.blindedHolderSecretCommitment.BYTES_PER_ELEMENT === 1 && presentationBinding_0.blindedHolderSecretCommitment.length === 32 && presentationBinding_0.issuerNonce.buffer instanceof ArrayBuffer && presentationBinding_0.issuerNonce.BYTES_PER_ELEMENT === 1 && presentationBinding_0.issuerNonce.length === 32 && presentationBinding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && presentationBinding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && presentationBinding_0.requestChallengeResponse.length === 32)) {
1938
- __compactRuntime.typeError('assertMatchingBlindedSecretHolderBindings',
1539
+ if (!(typeof(presentationBinding_0) === 'object' && typeof(presentationBinding_0.holderVerificationMethodRef) === 'object' && typeof(presentationBinding_0.holderVerificationMethodRef.controllerAddress) === 'object' && presentationBinding_0.holderVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && presentationBinding_0.holderVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && presentationBinding_0.holderVerificationMethodRef.controllerAddress.bytes.length === 32 && presentationBinding_0.holderVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && presentationBinding_0.holderVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && presentationBinding_0.holderVerificationMethodRef.methodId.length === 32)) {
1540
+ __compactRuntime.typeError('assertMatchingExplicitHolderBindings',
1939
1541
  'argument 2',
1940
- 'holder-bindings.compact line 259 char 1',
1941
- 'struct BlindedSecretHolderBinding<blindedHolderSecretCommitment: Bytes<32>, issuerNonce: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1542
+ 'holder-bindings.compact line 8 char 1',
1543
+ 'struct ExplicitHolderBinding<holderVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
1942
1544
  presentationBinding_0)
1943
1545
  }
1944
- return _dummyContract._assertMatchingBlindedSecretHolderBindings_0(credentialBinding_0,
1945
- presentationBinding_0);
1946
- },
1947
- assertSecretHolderBindingWitness: (...args_0) => {
1948
- if (args_0.length !== 4) {
1949
- throw new __compactRuntime.CompactError(`assertSecretHolderBindingWitness: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
1950
- }
1951
- const binding_0 = args_0[0];
1952
- const verifierChallengeHash_0 = args_0[1];
1953
- const holderSecret_0 = args_0[2];
1954
- const opening_0 = args_0[3];
1955
- if (!(typeof(binding_0) === 'object' && binding_0.holderSecretCommitment.buffer instanceof ArrayBuffer && binding_0.holderSecretCommitment.BYTES_PER_ELEMENT === 1 && binding_0.holderSecretCommitment.length === 32 && binding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && binding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && binding_0.requestChallengeResponse.length === 32)) {
1956
- __compactRuntime.typeError('assertSecretHolderBindingWitness',
1957
- 'argument 1',
1958
- 'holder-bindings.compact line 279 char 1',
1959
- 'struct SecretHolderBinding<holderSecretCommitment: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1960
- binding_0)
1961
- }
1962
- if (!(verifierChallengeHash_0.buffer instanceof ArrayBuffer && verifierChallengeHash_0.BYTES_PER_ELEMENT === 1 && verifierChallengeHash_0.length === 32)) {
1963
- __compactRuntime.typeError('assertSecretHolderBindingWitness',
1964
- 'argument 2',
1965
- 'holder-bindings.compact line 279 char 1',
1966
- 'Bytes<32>',
1967
- verifierChallengeHash_0)
1968
- }
1969
- if (!(holderSecret_0.buffer instanceof ArrayBuffer && holderSecret_0.BYTES_PER_ELEMENT === 1 && holderSecret_0.length === 32)) {
1970
- __compactRuntime.typeError('assertSecretHolderBindingWitness',
1971
- 'argument 3',
1972
- 'holder-bindings.compact line 279 char 1',
1973
- 'Bytes<32>',
1974
- holderSecret_0)
1975
- }
1976
- if (!(opening_0.buffer instanceof ArrayBuffer && opening_0.BYTES_PER_ELEMENT === 1 && opening_0.length === 32)) {
1977
- __compactRuntime.typeError('assertSecretHolderBindingWitness',
1978
- 'argument 4',
1979
- 'holder-bindings.compact line 279 char 1',
1980
- 'Bytes<32>',
1981
- opening_0)
1982
- }
1983
- return _dummyContract._assertSecretHolderBindingWitness_0(binding_0,
1984
- verifierChallengeHash_0,
1985
- holderSecret_0,
1986
- opening_0);
1546
+ return _dummyContract._assertMatchingExplicitHolderBindings_0(credentialBinding_0,
1547
+ presentationBinding_0);
1987
1548
  },
1988
- assertBlindedSecretHolderBindingWitness: (...args_0) => {
1989
- if (args_0.length !== 5) {
1990
- throw new __compactRuntime.CompactError(`assertBlindedSecretHolderBindingWitness: expected 5 arguments (as invoked from Typescript), received ${args_0.length}`);
1549
+ assertProofMatchesExplicitHolderBinding: (...args_0) => {
1550
+ if (args_0.length !== 2) {
1551
+ throw new __compactRuntime.CompactError(`assertProofMatchesExplicitHolderBinding: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1991
1552
  }
1992
1553
  const binding_0 = args_0[0];
1993
- const verifierChallengeHash_0 = args_0[1];
1994
- const holderSecret_0 = args_0[2];
1995
- const opening_0 = args_0[3];
1996
- const blindingFactor_0 = args_0[4];
1997
- if (!(typeof(binding_0) === 'object' && binding_0.blindedHolderSecretCommitment.buffer instanceof ArrayBuffer && binding_0.blindedHolderSecretCommitment.BYTES_PER_ELEMENT === 1 && binding_0.blindedHolderSecretCommitment.length === 32 && binding_0.issuerNonce.buffer instanceof ArrayBuffer && binding_0.issuerNonce.BYTES_PER_ELEMENT === 1 && binding_0.issuerNonce.length === 32 && binding_0.requestChallengeResponse.buffer instanceof ArrayBuffer && binding_0.requestChallengeResponse.BYTES_PER_ELEMENT === 1 && binding_0.requestChallengeResponse.length === 32)) {
1998
- __compactRuntime.typeError('assertBlindedSecretHolderBindingWitness',
1554
+ const presentationProof_0 = args_0[1];
1555
+ if (!(typeof(binding_0) === 'object' && typeof(binding_0.holderVerificationMethodRef) === 'object' && typeof(binding_0.holderVerificationMethodRef.controllerAddress) === 'object' && binding_0.holderVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && binding_0.holderVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && binding_0.holderVerificationMethodRef.controllerAddress.bytes.length === 32 && binding_0.holderVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && binding_0.holderVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && binding_0.holderVerificationMethodRef.methodId.length === 32)) {
1556
+ __compactRuntime.typeError('assertProofMatchesExplicitHolderBinding',
1999
1557
  'argument 1',
2000
- 'holder-bindings.compact line 296 char 1',
2001
- 'struct BlindedSecretHolderBinding<blindedHolderSecretCommitment: Bytes<32>, issuerNonce: Bytes<32>, requestChallengeResponse: Bytes<32>>',
1558
+ 'holder-bindings.compact line 26 char 1',
1559
+ 'struct ExplicitHolderBinding<holderVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
2002
1560
  binding_0)
2003
1561
  }
2004
- if (!(verifierChallengeHash_0.buffer instanceof ArrayBuffer && verifierChallengeHash_0.BYTES_PER_ELEMENT === 1 && verifierChallengeHash_0.length === 32)) {
2005
- __compactRuntime.typeError('assertBlindedSecretHolderBindingWitness',
2006
- 'argument 2',
2007
- 'holder-bindings.compact line 296 char 1',
2008
- 'Bytes<32>',
2009
- verifierChallengeHash_0)
2010
- }
2011
- if (!(holderSecret_0.buffer instanceof ArrayBuffer && holderSecret_0.BYTES_PER_ELEMENT === 1 && holderSecret_0.length === 32)) {
2012
- __compactRuntime.typeError('assertBlindedSecretHolderBindingWitness',
2013
- 'argument 3',
2014
- 'holder-bindings.compact line 296 char 1',
2015
- 'Bytes<32>',
2016
- holderSecret_0)
2017
- }
2018
- if (!(opening_0.buffer instanceof ArrayBuffer && opening_0.BYTES_PER_ELEMENT === 1 && opening_0.length === 32)) {
2019
- __compactRuntime.typeError('assertBlindedSecretHolderBindingWitness',
2020
- 'argument 4',
2021
- 'holder-bindings.compact line 296 char 1',
2022
- 'Bytes<32>',
2023
- opening_0)
2024
- }
2025
- if (!(blindingFactor_0.buffer instanceof ArrayBuffer && blindingFactor_0.BYTES_PER_ELEMENT === 1 && blindingFactor_0.length === 32)) {
2026
- __compactRuntime.typeError('assertBlindedSecretHolderBindingWitness',
2027
- 'argument 5',
2028
- 'holder-bindings.compact line 296 char 1',
2029
- 'Bytes<32>',
2030
- blindingFactor_0)
2031
- }
2032
- return _dummyContract._assertBlindedSecretHolderBindingWitness_0(binding_0,
2033
- verifierChallengeHash_0,
2034
- holderSecret_0,
2035
- opening_0,
2036
- blindingFactor_0);
2037
- },
2038
- protocolFeaturesAsSchemaCapabilities: (...args_0) => {
2039
- if (args_0.length !== 1) {
2040
- throw new __compactRuntime.CompactError(`protocolFeaturesAsSchemaCapabilities: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2041
- }
2042
- const features_0 = args_0[0];
2043
- if (!(typeof(features_0) === 'object' && typeof(features_0.supportsSelectiveDisclosure) === 'boolean' && typeof(features_0.supportsPredicateProofs) === 'boolean' && typeof(features_0.supportsVerifierScopedPseudonym) === 'boolean' && typeof(features_0.supportsSameHolderProof) === 'boolean')) {
2044
- __compactRuntime.typeError('protocolFeaturesAsSchemaCapabilities',
2045
- 'argument 1',
2046
- 'protocols.compact line 20 char 1',
2047
- 'struct CredentialProtocolFeatures<supportsSelectiveDisclosure: Boolean, supportsPredicateProofs: Boolean, supportsVerifierScopedPseudonym: Boolean, supportsSameHolderProof: Boolean>',
2048
- features_0)
2049
- }
2050
- return _dummyContract._protocolFeaturesAsSchemaCapabilities_0(features_0);
2051
- },
2052
- assertProtocolFeaturesMatchSchemaCapabilities: (...args_0) => {
2053
- if (args_0.length !== 2) {
2054
- throw new __compactRuntime.CompactError(`assertProtocolFeaturesMatchSchemaCapabilities: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
2055
- }
2056
- const features_0 = args_0[0];
2057
- const capabilities_0 = args_0[1];
2058
- if (!(typeof(features_0) === 'object' && typeof(features_0.supportsSelectiveDisclosure) === 'boolean' && typeof(features_0.supportsPredicateProofs) === 'boolean' && typeof(features_0.supportsVerifierScopedPseudonym) === 'boolean' && typeof(features_0.supportsSameHolderProof) === 'boolean')) {
2059
- __compactRuntime.typeError('assertProtocolFeaturesMatchSchemaCapabilities',
2060
- 'argument 1',
2061
- 'protocols.compact line 31 char 1',
2062
- 'struct CredentialProtocolFeatures<supportsSelectiveDisclosure: Boolean, supportsPredicateProofs: Boolean, supportsVerifierScopedPseudonym: Boolean, supportsSameHolderProof: Boolean>',
2063
- features_0)
2064
- }
2065
- if (!(typeof(capabilities_0) === 'object' && typeof(capabilities_0.supportsSelectiveDisclosure) === 'boolean' && typeof(capabilities_0.supportsPredicateProofs) === 'boolean' && typeof(capabilities_0.supportsVerifierScopedPseudonym) === 'boolean' && typeof(capabilities_0.supportsSameHolderProof) === 'boolean')) {
2066
- __compactRuntime.typeError('assertProtocolFeaturesMatchSchemaCapabilities',
2067
- 'argument 2',
2068
- 'protocols.compact line 31 char 1',
2069
- 'struct SchemaCapabilities<supportsSelectiveDisclosure: Boolean, supportsPredicateProofs: Boolean, supportsVerifierScopedPseudonym: Boolean, supportsSameHolderProof: Boolean>',
2070
- capabilities_0)
2071
- }
2072
- return _dummyContract._assertProtocolFeaturesMatchSchemaCapabilities_0(features_0,
2073
- capabilities_0);
2074
- },
2075
- noProtocolResponseReference: (...args_0) => {
2076
- if (args_0.length !== 0) {
2077
- throw new __compactRuntime.CompactError(`noProtocolResponseReference: expected 0 arguments (as invoked from Typescript), received ${args_0.length}`);
2078
- }
2079
- return _dummyContract._noProtocolResponseReference_0();
2080
- },
2081
- assertValidVerificationMethodRef: (...args_0) => {
2082
- if (args_0.length !== 1) {
2083
- throw new __compactRuntime.CompactError(`assertValidVerificationMethodRef: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2084
- }
2085
- const verificationMethodRef_0 = args_0[0];
2086
- if (!(typeof(verificationMethodRef_0) === 'object' && typeof(verificationMethodRef_0.didContractAddress) === 'object' && verificationMethodRef_0.didContractAddress.bytes.buffer instanceof ArrayBuffer && verificationMethodRef_0.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && verificationMethodRef_0.didContractAddress.bytes.length === 32 && verificationMethodRef_0.methodId.buffer instanceof ArrayBuffer && verificationMethodRef_0.methodId.BYTES_PER_ELEMENT === 1 && verificationMethodRef_0.methodId.length === 32)) {
2087
- __compactRuntime.typeError('assertValidVerificationMethodRef',
2088
- 'argument 1',
2089
- 'protocols.compact line 56 char 1',
2090
- 'struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>',
2091
- verificationMethodRef_0)
2092
- }
2093
- return _dummyContract._assertValidVerificationMethodRef_0(verificationMethodRef_0);
2094
- },
2095
- assertMatchingSchemaRefs: (...args_0) => {
2096
- if (args_0.length !== 2) {
2097
- throw new __compactRuntime.CompactError(`assertMatchingSchemaRefs: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
2098
- }
2099
- const expected_0 = args_0[0];
2100
- const actual_0 = args_0[1];
2101
- if (!(typeof(expected_0) === 'object' && expected_0.packageId.buffer instanceof ArrayBuffer && expected_0.packageId.BYTES_PER_ELEMENT === 1 && expected_0.packageId.length === 32 && expected_0.schemaId.buffer instanceof ArrayBuffer && expected_0.schemaId.BYTES_PER_ELEMENT === 1 && expected_0.schemaId.length === 32 && typeof(expected_0.majorVersion) === 'bigint' && expected_0.majorVersion >= 0n && expected_0.majorVersion <= 65535n && typeof(expected_0.minorVersion) === 'bigint' && expected_0.minorVersion >= 0n && expected_0.minorVersion <= 65535n)) {
2102
- __compactRuntime.typeError('assertMatchingSchemaRefs',
2103
- 'argument 1',
2104
- 'protocols.compact line 65 char 1',
2105
- 'struct SchemaRef<packageId: Bytes<32>, schemaId: Bytes<32>, majorVersion: Uint<0..65536>, minorVersion: Uint<0..65536>>',
2106
- expected_0)
2107
- }
2108
- if (!(typeof(actual_0) === 'object' && actual_0.packageId.buffer instanceof ArrayBuffer && actual_0.packageId.BYTES_PER_ELEMENT === 1 && actual_0.packageId.length === 32 && actual_0.schemaId.buffer instanceof ArrayBuffer && actual_0.schemaId.BYTES_PER_ELEMENT === 1 && actual_0.schemaId.length === 32 && typeof(actual_0.majorVersion) === 'bigint' && actual_0.majorVersion >= 0n && actual_0.majorVersion <= 65535n && typeof(actual_0.minorVersion) === 'bigint' && actual_0.minorVersion >= 0n && actual_0.minorVersion <= 65535n)) {
2109
- __compactRuntime.typeError('assertMatchingSchemaRefs',
2110
- 'argument 2',
2111
- 'protocols.compact line 65 char 1',
2112
- 'struct SchemaRef<packageId: Bytes<32>, schemaId: Bytes<32>, majorVersion: Uint<0..65536>, minorVersion: Uint<0..65536>>',
2113
- actual_0)
2114
- }
2115
- return _dummyContract._assertMatchingSchemaRefs_0(expected_0, actual_0);
2116
- },
2117
- assertValidProtocolMessageEnvelope: (...args_0) => {
2118
- if (args_0.length !== 1) {
2119
- throw new __compactRuntime.CompactError(`assertValidProtocolMessageEnvelope: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2120
- }
2121
- const envelope_0 = args_0[0];
2122
- if (!(typeof(envelope_0) === 'object' && typeof(envelope_0.version) === 'bigint' && envelope_0.version >= 0n && envelope_0.version <= 65535n && envelope_0.messageId.buffer instanceof ArrayBuffer && envelope_0.messageId.BYTES_PER_ELEMENT === 1 && envelope_0.messageId.length === 32 && envelope_0.threadId.buffer instanceof ArrayBuffer && envelope_0.threadId.BYTES_PER_ELEMENT === 1 && envelope_0.threadId.length === 32 && typeof(envelope_0.initialMessage) === 'boolean' && envelope_0.respondsToMessageId.buffer instanceof ArrayBuffer && envelope_0.respondsToMessageId.BYTES_PER_ELEMENT === 1 && envelope_0.respondsToMessageId.length === 32 && typeof(envelope_0.createdAt) === 'bigint' && envelope_0.createdAt >= 0n && envelope_0.createdAt <= 18446744073709551615n && typeof(envelope_0.hasExpiresAt) === 'boolean' && typeof(envelope_0.expiresAt) === 'bigint' && envelope_0.expiresAt >= 0n && envelope_0.expiresAt <= 18446744073709551615n)) {
2123
- __compactRuntime.typeError('assertValidProtocolMessageEnvelope',
2124
- 'argument 1',
2125
- 'protocols.compact line 80 char 1',
2126
- 'struct ProtocolMessageEnvelope<version: Uint<0..65536>, messageId: Bytes<32>, threadId: Bytes<32>, initialMessage: Boolean, respondsToMessageId: Bytes<32>, createdAt: Uint<0..18446744073709551616>, hasExpiresAt: Boolean, expiresAt: Uint<0..18446744073709551616>>',
2127
- envelope_0)
2128
- }
2129
- return _dummyContract._assertValidProtocolMessageEnvelope_0(envelope_0);
2130
- },
2131
- assertProtocolResponseEnvelope: (...args_0) => {
2132
- if (args_0.length !== 2) {
2133
- throw new __compactRuntime.CompactError(`assertProtocolResponseEnvelope: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
2134
- }
2135
- const requestEnvelope_0 = args_0[0];
2136
- const responseEnvelope_0 = args_0[1];
2137
- if (!(typeof(requestEnvelope_0) === 'object' && typeof(requestEnvelope_0.version) === 'bigint' && requestEnvelope_0.version >= 0n && requestEnvelope_0.version <= 65535n && requestEnvelope_0.messageId.buffer instanceof ArrayBuffer && requestEnvelope_0.messageId.BYTES_PER_ELEMENT === 1 && requestEnvelope_0.messageId.length === 32 && requestEnvelope_0.threadId.buffer instanceof ArrayBuffer && requestEnvelope_0.threadId.BYTES_PER_ELEMENT === 1 && requestEnvelope_0.threadId.length === 32 && typeof(requestEnvelope_0.initialMessage) === 'boolean' && requestEnvelope_0.respondsToMessageId.buffer instanceof ArrayBuffer && requestEnvelope_0.respondsToMessageId.BYTES_PER_ELEMENT === 1 && requestEnvelope_0.respondsToMessageId.length === 32 && typeof(requestEnvelope_0.createdAt) === 'bigint' && requestEnvelope_0.createdAt >= 0n && requestEnvelope_0.createdAt <= 18446744073709551615n && typeof(requestEnvelope_0.hasExpiresAt) === 'boolean' && typeof(requestEnvelope_0.expiresAt) === 'bigint' && requestEnvelope_0.expiresAt >= 0n && requestEnvelope_0.expiresAt <= 18446744073709551615n)) {
2138
- __compactRuntime.typeError('assertProtocolResponseEnvelope',
2139
- 'argument 1',
2140
- 'protocols.compact line 106 char 1',
2141
- 'struct ProtocolMessageEnvelope<version: Uint<0..65536>, messageId: Bytes<32>, threadId: Bytes<32>, initialMessage: Boolean, respondsToMessageId: Bytes<32>, createdAt: Uint<0..18446744073709551616>, hasExpiresAt: Boolean, expiresAt: Uint<0..18446744073709551616>>',
2142
- requestEnvelope_0)
2143
- }
2144
- if (!(typeof(responseEnvelope_0) === 'object' && typeof(responseEnvelope_0.version) === 'bigint' && responseEnvelope_0.version >= 0n && responseEnvelope_0.version <= 65535n && responseEnvelope_0.messageId.buffer instanceof ArrayBuffer && responseEnvelope_0.messageId.BYTES_PER_ELEMENT === 1 && responseEnvelope_0.messageId.length === 32 && responseEnvelope_0.threadId.buffer instanceof ArrayBuffer && responseEnvelope_0.threadId.BYTES_PER_ELEMENT === 1 && responseEnvelope_0.threadId.length === 32 && typeof(responseEnvelope_0.initialMessage) === 'boolean' && responseEnvelope_0.respondsToMessageId.buffer instanceof ArrayBuffer && responseEnvelope_0.respondsToMessageId.BYTES_PER_ELEMENT === 1 && responseEnvelope_0.respondsToMessageId.length === 32 && typeof(responseEnvelope_0.createdAt) === 'bigint' && responseEnvelope_0.createdAt >= 0n && responseEnvelope_0.createdAt <= 18446744073709551615n && typeof(responseEnvelope_0.hasExpiresAt) === 'boolean' && typeof(responseEnvelope_0.expiresAt) === 'bigint' && responseEnvelope_0.expiresAt >= 0n && responseEnvelope_0.expiresAt <= 18446744073709551615n)) {
2145
- __compactRuntime.typeError('assertProtocolResponseEnvelope',
1562
+ if (!(typeof(presentationProof_0) === 'object' && typeof(presentationProof_0.signerVerificationMethodRef) === 'object' && typeof(presentationProof_0.signerVerificationMethodRef.controllerAddress) === 'object' && presentationProof_0.signerVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && presentationProof_0.signerVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && presentationProof_0.signerVerificationMethodRef.controllerAddress.bytes.length === 32 && presentationProof_0.signerVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && presentationProof_0.signerVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && presentationProof_0.signerVerificationMethodRef.methodId.length === 32 && typeof(presentationProof_0.createdAt) === 'bigint' && presentationProof_0.createdAt >= 0n && presentationProof_0.createdAt <= 18446744073709551615n && presentationProof_0.challengeHash.buffer instanceof ArrayBuffer && presentationProof_0.challengeHash.BYTES_PER_ELEMENT === 1 && presentationProof_0.challengeHash.length === 32 && true && typeof(presentationProof_0.signature) === 'object' && true && typeof(presentationProof_0.signature.s) === 'bigint' && presentationProof_0.signature.s >= 0 && presentationProof_0.signature.s <= __compactRuntime.MAX_FIELD)) {
1563
+ __compactRuntime.typeError('assertProofMatchesExplicitHolderBinding',
2146
1564
  'argument 2',
2147
- 'protocols.compact line 106 char 1',
2148
- 'struct ProtocolMessageEnvelope<version: Uint<0..65536>, messageId: Bytes<32>, threadId: Bytes<32>, initialMessage: Boolean, respondsToMessageId: Bytes<32>, createdAt: Uint<0..18446744073709551616>, hasExpiresAt: Boolean, expiresAt: Uint<0..18446744073709551616>>',
2149
- responseEnvelope_0)
1565
+ 'holder-bindings.compact line 26 char 1',
1566
+ 'struct Proof<signerVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>, createdAt: Uint<0..18446744073709551616>, challengeHash: Bytes<32>, publicKey: Opaque<"JubjubPoint">, signature: struct Signature<r: Opaque<"JubjubPoint">, s: Field>>',
1567
+ presentationProof_0)
2150
1568
  }
2151
- return _dummyContract._assertProtocolResponseEnvelope_0(requestEnvelope_0,
2152
- responseEnvelope_0);
1569
+ return _dummyContract._assertProofMatchesExplicitHolderBinding_0(binding_0,
1570
+ presentationProof_0);
2153
1571
  },
2154
1572
  assertValidStatusRegistryRef: (...args_0) => {
2155
1573
  if (args_0.length !== 1) {
2156
1574
  throw new __compactRuntime.CompactError(`assertValidStatusRegistryRef: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2157
1575
  }
2158
1576
  const registryRef_0 = args_0[0];
2159
- if (!(typeof(registryRef_0) === 'object' && registryRef_0.registryId.buffer instanceof ArrayBuffer && registryRef_0.registryId.BYTES_PER_ELEMENT === 1 && registryRef_0.registryId.length === 32 && typeof(registryRef_0.authorityVerificationMethodRef) === 'object' && typeof(registryRef_0.authorityVerificationMethodRef.didContractAddress) === 'object' && registryRef_0.authorityVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && registryRef_0.authorityVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && registryRef_0.authorityVerificationMethodRef.didContractAddress.bytes.length === 32 && registryRef_0.authorityVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && registryRef_0.authorityVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && registryRef_0.authorityVerificationMethodRef.methodId.length === 32)) {
1577
+ if (!(typeof(registryRef_0) === 'object' && registryRef_0.registryId.buffer instanceof ArrayBuffer && registryRef_0.registryId.BYTES_PER_ELEMENT === 1 && registryRef_0.registryId.length === 32 && typeof(registryRef_0.authorityVerificationMethodRef) === 'object' && typeof(registryRef_0.authorityVerificationMethodRef.controllerAddress) === 'object' && registryRef_0.authorityVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && registryRef_0.authorityVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && registryRef_0.authorityVerificationMethodRef.controllerAddress.bytes.length === 32 && registryRef_0.authorityVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && registryRef_0.authorityVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && registryRef_0.authorityVerificationMethodRef.methodId.length === 32)) {
2160
1578
  __compactRuntime.typeError('assertValidStatusRegistryRef',
2161
1579
  'argument 1',
2162
- 'status-bindings.compact line 24 char 1',
2163
- 'struct StatusRegistryRef<registryId: Bytes<32>, authorityVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
1580
+ 'status-bindings.compact line 16 char 1',
1581
+ 'struct StatusRegistryRef<registryId: Bytes<32>, authorityVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>',
2164
1582
  registryRef_0)
2165
1583
  }
2166
1584
  return _dummyContract._assertValidStatusRegistryRef_0(registryRef_0);
2167
1585
  },
2168
- assertValidNoStatusBinding: (...args_0) => {
2169
- if (args_0.length !== 1) {
2170
- throw new __compactRuntime.CompactError(`assertValidNoStatusBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2171
- }
2172
- const binding_0 = args_0[0];
2173
- if (!(typeof(binding_0) === 'object')) {
2174
- __compactRuntime.typeError('assertValidNoStatusBinding',
2175
- 'argument 1',
2176
- 'status-bindings.compact line 34 char 1',
2177
- 'struct NoStatusBinding<>',
2178
- binding_0)
2179
- }
2180
- return _dummyContract._assertValidNoStatusBinding_0(binding_0);
2181
- },
2182
1586
  assertValidRegistryBoundStatusBinding: (...args_0) => {
2183
1587
  if (args_0.length !== 1) {
2184
1588
  throw new __compactRuntime.CompactError(`assertValidRegistryBoundStatusBinding: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2185
1589
  }
2186
1590
  const binding_0 = args_0[0];
2187
- if (!(typeof(binding_0) === 'object' && typeof(binding_0.statusType) === 'number' && binding_0.statusType >= 0 && binding_0.statusType <= 0 && typeof(binding_0.registryRef) === 'object' && binding_0.registryRef.registryId.buffer instanceof ArrayBuffer && binding_0.registryRef.registryId.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.registryId.length === 32 && typeof(binding_0.registryRef.authorityVerificationMethodRef) === 'object' && typeof(binding_0.registryRef.authorityVerificationMethodRef.didContractAddress) === 'object' && binding_0.registryRef.authorityVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && binding_0.registryRef.authorityVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.authorityVerificationMethodRef.didContractAddress.bytes.length === 32 && binding_0.registryRef.authorityVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && binding_0.registryRef.authorityVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.authorityVerificationMethodRef.methodId.length === 32 && binding_0.statusHandleCommitment.buffer instanceof ArrayBuffer && binding_0.statusHandleCommitment.BYTES_PER_ELEMENT === 1 && binding_0.statusHandleCommitment.length === 32)) {
1591
+ if (!(typeof(binding_0) === 'object' && typeof(binding_0.registryRef) === 'object' && binding_0.registryRef.registryId.buffer instanceof ArrayBuffer && binding_0.registryRef.registryId.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.registryId.length === 32 && typeof(binding_0.registryRef.authorityVerificationMethodRef) === 'object' && typeof(binding_0.registryRef.authorityVerificationMethodRef.controllerAddress) === 'object' && binding_0.registryRef.authorityVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && binding_0.registryRef.authorityVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.authorityVerificationMethodRef.controllerAddress.bytes.length === 32 && binding_0.registryRef.authorityVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && binding_0.registryRef.authorityVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.authorityVerificationMethodRef.methodId.length === 32 && binding_0.statusHandleCommitment.buffer instanceof ArrayBuffer && binding_0.statusHandleCommitment.BYTES_PER_ELEMENT === 1 && binding_0.statusHandleCommitment.length === 32)) {
2188
1592
  __compactRuntime.typeError('assertValidRegistryBoundStatusBinding',
2189
1593
  'argument 1',
2190
- 'status-bindings.compact line 41 char 1',
2191
- 'struct RegistryBoundStatusBinding<statusType: Enum<StatusType, revocationRegistry>, registryRef: struct StatusRegistryRef<registryId: Bytes<32>, authorityVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>, statusHandleCommitment: Bytes<32>>',
1594
+ 'status-bindings.compact line 26 char 1',
1595
+ 'struct RegistryBoundStatusBinding<registryRef: struct StatusRegistryRef<registryId: Bytes<32>, authorityVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>, statusHandleCommitment: Bytes<32>>',
2192
1596
  binding_0)
2193
1597
  }
2194
1598
  return _dummyContract._assertValidRegistryBoundStatusBinding_0(binding_0);
@@ -2198,11 +1602,11 @@ export const pureCircuits = {
2198
1602
  throw new __compactRuntime.CompactError(`registryBoundStatusBindingRoot: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2199
1603
  }
2200
1604
  const binding_0 = args_0[0];
2201
- if (!(typeof(binding_0) === 'object' && typeof(binding_0.statusType) === 'number' && binding_0.statusType >= 0 && binding_0.statusType <= 0 && typeof(binding_0.registryRef) === 'object' && binding_0.registryRef.registryId.buffer instanceof ArrayBuffer && binding_0.registryRef.registryId.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.registryId.length === 32 && typeof(binding_0.registryRef.authorityVerificationMethodRef) === 'object' && typeof(binding_0.registryRef.authorityVerificationMethodRef.didContractAddress) === 'object' && binding_0.registryRef.authorityVerificationMethodRef.didContractAddress.bytes.buffer instanceof ArrayBuffer && binding_0.registryRef.authorityVerificationMethodRef.didContractAddress.bytes.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.authorityVerificationMethodRef.didContractAddress.bytes.length === 32 && binding_0.registryRef.authorityVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && binding_0.registryRef.authorityVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.authorityVerificationMethodRef.methodId.length === 32 && binding_0.statusHandleCommitment.buffer instanceof ArrayBuffer && binding_0.statusHandleCommitment.BYTES_PER_ELEMENT === 1 && binding_0.statusHandleCommitment.length === 32)) {
1605
+ if (!(typeof(binding_0) === 'object' && typeof(binding_0.registryRef) === 'object' && binding_0.registryRef.registryId.buffer instanceof ArrayBuffer && binding_0.registryRef.registryId.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.registryId.length === 32 && typeof(binding_0.registryRef.authorityVerificationMethodRef) === 'object' && typeof(binding_0.registryRef.authorityVerificationMethodRef.controllerAddress) === 'object' && binding_0.registryRef.authorityVerificationMethodRef.controllerAddress.bytes.buffer instanceof ArrayBuffer && binding_0.registryRef.authorityVerificationMethodRef.controllerAddress.bytes.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.authorityVerificationMethodRef.controllerAddress.bytes.length === 32 && binding_0.registryRef.authorityVerificationMethodRef.methodId.buffer instanceof ArrayBuffer && binding_0.registryRef.authorityVerificationMethodRef.methodId.BYTES_PER_ELEMENT === 1 && binding_0.registryRef.authorityVerificationMethodRef.methodId.length === 32 && binding_0.statusHandleCommitment.buffer instanceof ArrayBuffer && binding_0.statusHandleCommitment.BYTES_PER_ELEMENT === 1 && binding_0.statusHandleCommitment.length === 32)) {
2202
1606
  __compactRuntime.typeError('registryBoundStatusBindingRoot',
2203
1607
  'argument 1',
2204
- 'status-bindings.compact line 55 char 1',
2205
- 'struct RegistryBoundStatusBinding<statusType: Enum<StatusType, revocationRegistry>, registryRef: struct StatusRegistryRef<registryId: Bytes<32>, authorityVerificationMethodRef: struct VerificationMethodRef<didContractAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>, statusHandleCommitment: Bytes<32>>',
1608
+ 'status-bindings.compact line 36 char 1',
1609
+ 'struct RegistryBoundStatusBinding<registryRef: struct StatusRegistryRef<registryId: Bytes<32>, authorityVerificationMethodRef: struct VerificationMethodRef<controllerAddress: struct ContractAddress<bytes: Bytes<32>>, methodId: Bytes<32>>>, statusHandleCommitment: Bytes<32>>',
2206
1610
  binding_0)
2207
1611
  }
2208
1612
  return _dummyContract._registryBoundStatusBindingRoot_0(binding_0);