@aztec/protocol-contracts 0.72.1 → 0.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/AuthRegistry.json +303 -303
- package/artifacts/ContractClassRegisterer.json +323 -323
- package/artifacts/ContractInstanceDeployer.json +116 -116
- package/artifacts/FeeJuice.json +443 -443
- package/artifacts/MultiCallEntrypoint.json +24 -24
- package/artifacts/Router.json +1571 -1571
- package/dest/build_protocol_contract_tree.d.ts +1 -1
- package/dest/build_protocol_contract_tree.d.ts.map +1 -1
- package/dest/build_protocol_contract_tree.js +3 -3
- package/dest/bundle/index.js +2 -2
- package/dest/class-registerer/contract_class_registered_event.d.ts +1 -1
- package/dest/class-registerer/contract_class_registered_event.d.ts.map +1 -1
- package/dest/class-registerer/contract_class_registered_event.js +4 -4
- package/dest/make_protocol_contract.js +2 -2
- package/dest/protocol_contract_data.js +7 -7
- package/dest/protocol_contract_tree.d.ts +1 -1
- package/dest/protocol_contract_tree.d.ts.map +1 -1
- package/dest/protocol_contract_tree.js +5 -5
- package/package.json +4 -4
- package/src/build_protocol_contract_tree.ts +3 -3
- package/src/bundle/index.ts +1 -1
- package/src/class-registerer/contract_class_registered_event.ts +3 -3
- package/src/make_protocol_contract.ts +1 -1
- package/src/protocol_contract_data.ts +7 -7
- package/src/protocol_contract_tree.ts +4 -4
package/artifacts/Router.json
CHANGED
|
@@ -1,495 +1,186 @@
|
|
|
1
1
|
{
|
|
2
2
|
"transpiled": true,
|
|
3
|
-
"noir_version": "1.0.0-beta.1+
|
|
3
|
+
"noir_version": "1.0.0-beta.1+c4e38215cedb5afb",
|
|
4
4
|
"name": "Router",
|
|
5
5
|
"functions": [
|
|
6
6
|
{
|
|
7
|
-
"name": "
|
|
8
|
-
"is_unconstrained":
|
|
9
|
-
"custom_attributes": [
|
|
10
|
-
"private"
|
|
11
|
-
],
|
|
7
|
+
"name": "sync_notes",
|
|
8
|
+
"is_unconstrained": true,
|
|
9
|
+
"custom_attributes": [],
|
|
12
10
|
"abi": {
|
|
13
11
|
"error_types": {
|
|
14
12
|
"17843811134343075018": {
|
|
15
13
|
"error_kind": "string",
|
|
16
14
|
"string": "Stack too deep"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"parameters": [],
|
|
18
|
+
"return_type": null
|
|
19
|
+
},
|
|
20
|
+
"bytecode": "H4sIAAAAAAAA/7WTyw7CIBBFqcUo0sTEx39MU0y7dOHafyCtLHVRN+766dZkJkyI0QVwEzJMgMNcHoXwKjBKESGCHDEqjAs2Xs7tjDnEqVbBvin5HRijvvhLWH+jkFnk4QPxM50/rJBzmTyfe6F913PTrF8J/z5y+af7y+l//8OzRq9bzCvh/8P4uvfXx/M2ij/SbJGc0ptoOwAqvkT+EvmhJBvn8w+Yb4Svj6KMqNO1tnaNdfZkh8H0dhfwP+KH/QbzqHp4zgQAAA==",
|
|
21
|
+
"debug_symbols": "bY9dCoQwDITvkuc+NHUV9CqySNUohdJKrQuLePdNF5Huz0uYCV+GzA4j9dvcGTf5FZp2B+sHHY137PZDQB+MtWbu8jXINLB48+uiXbJr1CFCU5SFAHIjqwr5fjKWoKnUIX5QlCjVCbNW9YXjDf/zNV68QvnB3w+2Dx2M7i2dz0+bG7Iu8bnQV60l+IHGLVAqmHXj2WIplORYjn4B",
|
|
22
|
+
"brillig_names": [
|
|
23
|
+
"sync_notes"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "compute_note_hash_and_optionally_a_nullifier",
|
|
28
|
+
"is_unconstrained": true,
|
|
29
|
+
"custom_attributes": [],
|
|
30
|
+
"abi": {
|
|
31
|
+
"error_types": {
|
|
32
|
+
"16541607464495309456": {
|
|
33
|
+
"error_kind": "fmtstring",
|
|
34
|
+
"item_types": [],
|
|
35
|
+
"length": 16
|
|
17
36
|
},
|
|
18
|
-
"
|
|
37
|
+
"17843811134343075018": {
|
|
19
38
|
"error_kind": "string",
|
|
20
|
-
"string": "
|
|
39
|
+
"string": "Stack too deep"
|
|
21
40
|
}
|
|
22
41
|
},
|
|
23
42
|
"parameters": [
|
|
24
43
|
{
|
|
25
|
-
"name": "
|
|
44
|
+
"name": "contract_address",
|
|
26
45
|
"type": {
|
|
27
46
|
"fields": [
|
|
28
47
|
{
|
|
29
|
-
"name": "
|
|
48
|
+
"name": "inner",
|
|
30
49
|
"type": {
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
50
|
+
"kind": "field"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"kind": "struct",
|
|
55
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
56
|
+
},
|
|
57
|
+
"visibility": "private"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "nonce",
|
|
61
|
+
"type": {
|
|
62
|
+
"kind": "field"
|
|
63
|
+
},
|
|
64
|
+
"visibility": "private"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "storage_slot",
|
|
68
|
+
"type": {
|
|
69
|
+
"kind": "field"
|
|
70
|
+
},
|
|
71
|
+
"visibility": "private"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "note_type_id",
|
|
75
|
+
"type": {
|
|
76
|
+
"kind": "field"
|
|
77
|
+
},
|
|
78
|
+
"visibility": "private"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "compute_nullifier",
|
|
82
|
+
"type": {
|
|
83
|
+
"kind": "boolean"
|
|
84
|
+
},
|
|
85
|
+
"visibility": "private"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "packed_note_content",
|
|
89
|
+
"type": {
|
|
90
|
+
"kind": "array",
|
|
91
|
+
"length": 0,
|
|
92
|
+
"type": {
|
|
93
|
+
"kind": "field"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"visibility": "private"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"return_type": {
|
|
100
|
+
"abi_type": {
|
|
101
|
+
"kind": "array",
|
|
102
|
+
"length": 4,
|
|
103
|
+
"type": {
|
|
104
|
+
"kind": "field"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"visibility": "public"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"bytecode": "H4sIAAAAAAAA/9VZy67aQAwdSEJIuAEKn3Cl7tomXJ47Fn3c30AFPqHrrLppP7qMGCcH46siYVfFEpoknhyfOXZmJqHjztY//TrhOA5tz10b9dmGtrzPKkWs0pJn50F4dh+EZ/QgPGNFnh2Bp2/peUvc+ZlL3fl5bC7iTT7BEdzk/gYAwX6HNgttF/yKCakyYZBa+Otyvs/cpSnzf8kCZmqDvyD8vg1+Sbw/1y0+joXiRqF9rVstX+Eeb0U4xuIlXPJ1wfeF+SLwfWU+rOFvzId1T5xIN1qYlOtqY50XGlsKY+u80TrXaofXSOvcmdZ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mv2xoz3WsyNGqXitrt8p5UCy5iRteUh50B8=",
|
|
112
|
+
"brillig_names": [
|
|
113
|
+
"compute_note_hash_and_optionally_a_nullifier"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "process_log",
|
|
118
|
+
"is_unconstrained": true,
|
|
119
|
+
"custom_attributes": [],
|
|
120
|
+
"abi": {
|
|
121
|
+
"error_types": {
|
|
122
|
+
"16541607464495309456": {
|
|
123
|
+
"error_kind": "fmtstring",
|
|
124
|
+
"item_types": [],
|
|
125
|
+
"length": 16
|
|
126
|
+
},
|
|
127
|
+
"17843811134343075018": {
|
|
128
|
+
"error_kind": "string",
|
|
129
|
+
"string": "Stack too deep"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"parameters": [
|
|
133
|
+
{
|
|
134
|
+
"name": "log_plaintext",
|
|
135
|
+
"type": {
|
|
136
|
+
"fields": [
|
|
137
|
+
{
|
|
138
|
+
"name": "storage",
|
|
139
|
+
"type": {
|
|
140
|
+
"kind": "array",
|
|
141
|
+
"length": 18,
|
|
142
|
+
"type": {
|
|
143
|
+
"kind": "field"
|
|
144
|
+
}
|
|
88
145
|
}
|
|
89
146
|
},
|
|
90
147
|
{
|
|
91
|
-
"name": "
|
|
148
|
+
"name": "len",
|
|
92
149
|
"type": {
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"type": {
|
|
124
|
-
"kind": "field"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"name": "blobs_hash",
|
|
129
|
-
"type": {
|
|
130
|
-
"kind": "field"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "in_hash",
|
|
135
|
-
"type": {
|
|
136
|
-
"kind": "field"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"name": "out_hash",
|
|
141
|
-
"type": {
|
|
142
|
-
"kind": "field"
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
"kind": "struct",
|
|
147
|
-
"path": "aztec::protocol_types::content_commitment::ContentCommitment"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "state",
|
|
152
|
-
"type": {
|
|
153
|
-
"fields": [
|
|
154
|
-
{
|
|
155
|
-
"name": "l1_to_l2_message_tree",
|
|
156
|
-
"type": {
|
|
157
|
-
"fields": [
|
|
158
|
-
{
|
|
159
|
-
"name": "root",
|
|
160
|
-
"type": {
|
|
161
|
-
"kind": "field"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"name": "next_available_leaf_index",
|
|
166
|
-
"type": {
|
|
167
|
-
"kind": "integer",
|
|
168
|
-
"sign": "unsigned",
|
|
169
|
-
"width": 32
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"kind": "struct",
|
|
174
|
-
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"name": "partial",
|
|
179
|
-
"type": {
|
|
180
|
-
"fields": [
|
|
181
|
-
{
|
|
182
|
-
"name": "note_hash_tree",
|
|
183
|
-
"type": {
|
|
184
|
-
"fields": [
|
|
185
|
-
{
|
|
186
|
-
"name": "root",
|
|
187
|
-
"type": {
|
|
188
|
-
"kind": "field"
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"name": "next_available_leaf_index",
|
|
193
|
-
"type": {
|
|
194
|
-
"kind": "integer",
|
|
195
|
-
"sign": "unsigned",
|
|
196
|
-
"width": 32
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
],
|
|
200
|
-
"kind": "struct",
|
|
201
|
-
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"name": "nullifier_tree",
|
|
206
|
-
"type": {
|
|
207
|
-
"fields": [
|
|
208
|
-
{
|
|
209
|
-
"name": "root",
|
|
210
|
-
"type": {
|
|
211
|
-
"kind": "field"
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "next_available_leaf_index",
|
|
216
|
-
"type": {
|
|
217
|
-
"kind": "integer",
|
|
218
|
-
"sign": "unsigned",
|
|
219
|
-
"width": 32
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
],
|
|
223
|
-
"kind": "struct",
|
|
224
|
-
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "public_data_tree",
|
|
229
|
-
"type": {
|
|
230
|
-
"fields": [
|
|
231
|
-
{
|
|
232
|
-
"name": "root",
|
|
233
|
-
"type": {
|
|
234
|
-
"kind": "field"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"name": "next_available_leaf_index",
|
|
239
|
-
"type": {
|
|
240
|
-
"kind": "integer",
|
|
241
|
-
"sign": "unsigned",
|
|
242
|
-
"width": 32
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
],
|
|
246
|
-
"kind": "struct",
|
|
247
|
-
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
],
|
|
251
|
-
"kind": "struct",
|
|
252
|
-
"path": "aztec::protocol_types::partial_state_reference::PartialStateReference"
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
],
|
|
256
|
-
"kind": "struct",
|
|
257
|
-
"path": "aztec::protocol_types::state_reference::StateReference"
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"name": "global_variables",
|
|
262
|
-
"type": {
|
|
263
|
-
"fields": [
|
|
264
|
-
{
|
|
265
|
-
"name": "chain_id",
|
|
266
|
-
"type": {
|
|
267
|
-
"kind": "field"
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"name": "version",
|
|
272
|
-
"type": {
|
|
273
|
-
"kind": "field"
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"name": "block_number",
|
|
278
|
-
"type": {
|
|
279
|
-
"kind": "field"
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"name": "slot_number",
|
|
284
|
-
"type": {
|
|
285
|
-
"kind": "field"
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"name": "timestamp",
|
|
290
|
-
"type": {
|
|
291
|
-
"kind": "integer",
|
|
292
|
-
"sign": "unsigned",
|
|
293
|
-
"width": 64
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"name": "coinbase",
|
|
298
|
-
"type": {
|
|
299
|
-
"fields": [
|
|
300
|
-
{
|
|
301
|
-
"name": "inner",
|
|
302
|
-
"type": {
|
|
303
|
-
"kind": "field"
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
"kind": "struct",
|
|
308
|
-
"path": "aztec::protocol_types::address::eth_address::EthAddress"
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"name": "fee_recipient",
|
|
313
|
-
"type": {
|
|
314
|
-
"fields": [
|
|
315
|
-
{
|
|
316
|
-
"name": "inner",
|
|
317
|
-
"type": {
|
|
318
|
-
"kind": "field"
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
],
|
|
322
|
-
"kind": "struct",
|
|
323
|
-
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"name": "gas_fees",
|
|
328
|
-
"type": {
|
|
329
|
-
"fields": [
|
|
330
|
-
{
|
|
331
|
-
"name": "fee_per_da_gas",
|
|
332
|
-
"type": {
|
|
333
|
-
"kind": "field"
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
"name": "fee_per_l2_gas",
|
|
338
|
-
"type": {
|
|
339
|
-
"kind": "field"
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
],
|
|
343
|
-
"kind": "struct",
|
|
344
|
-
"path": "aztec::protocol_types::abis::gas_fees::GasFees"
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
],
|
|
348
|
-
"kind": "struct",
|
|
349
|
-
"path": "aztec::protocol_types::abis::global_variables::GlobalVariables"
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"name": "total_fees",
|
|
354
|
-
"type": {
|
|
355
|
-
"kind": "field"
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"name": "total_mana_used",
|
|
360
|
-
"type": {
|
|
361
|
-
"kind": "field"
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
],
|
|
365
|
-
"kind": "struct",
|
|
366
|
-
"path": "aztec::protocol_types::block_header::BlockHeader"
|
|
150
|
+
"kind": "integer",
|
|
151
|
+
"sign": "unsigned",
|
|
152
|
+
"width": 32
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"kind": "struct",
|
|
157
|
+
"path": "std::collections::bounded_vec::BoundedVec"
|
|
158
|
+
},
|
|
159
|
+
"visibility": "private"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "tx_hash",
|
|
163
|
+
"type": {
|
|
164
|
+
"kind": "field"
|
|
165
|
+
},
|
|
166
|
+
"visibility": "private"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "unique_note_hashes_in_tx",
|
|
170
|
+
"type": {
|
|
171
|
+
"fields": [
|
|
172
|
+
{
|
|
173
|
+
"name": "storage",
|
|
174
|
+
"type": {
|
|
175
|
+
"kind": "array",
|
|
176
|
+
"length": 64,
|
|
177
|
+
"type": {
|
|
178
|
+
"kind": "field"
|
|
179
|
+
}
|
|
367
180
|
}
|
|
368
181
|
},
|
|
369
182
|
{
|
|
370
|
-
"name": "
|
|
371
|
-
"type": {
|
|
372
|
-
"fields": [
|
|
373
|
-
{
|
|
374
|
-
"name": "chain_id",
|
|
375
|
-
"type": {
|
|
376
|
-
"kind": "field"
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"name": "version",
|
|
381
|
-
"type": {
|
|
382
|
-
"kind": "field"
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"name": "gas_settings",
|
|
387
|
-
"type": {
|
|
388
|
-
"fields": [
|
|
389
|
-
{
|
|
390
|
-
"name": "gas_limits",
|
|
391
|
-
"type": {
|
|
392
|
-
"fields": [
|
|
393
|
-
{
|
|
394
|
-
"name": "da_gas",
|
|
395
|
-
"type": {
|
|
396
|
-
"kind": "integer",
|
|
397
|
-
"sign": "unsigned",
|
|
398
|
-
"width": 32
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"name": "l2_gas",
|
|
403
|
-
"type": {
|
|
404
|
-
"kind": "integer",
|
|
405
|
-
"sign": "unsigned",
|
|
406
|
-
"width": 32
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
],
|
|
410
|
-
"kind": "struct",
|
|
411
|
-
"path": "aztec::protocol_types::abis::gas::Gas"
|
|
412
|
-
}
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
"name": "teardown_gas_limits",
|
|
416
|
-
"type": {
|
|
417
|
-
"fields": [
|
|
418
|
-
{
|
|
419
|
-
"name": "da_gas",
|
|
420
|
-
"type": {
|
|
421
|
-
"kind": "integer",
|
|
422
|
-
"sign": "unsigned",
|
|
423
|
-
"width": 32
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"name": "l2_gas",
|
|
428
|
-
"type": {
|
|
429
|
-
"kind": "integer",
|
|
430
|
-
"sign": "unsigned",
|
|
431
|
-
"width": 32
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
],
|
|
435
|
-
"kind": "struct",
|
|
436
|
-
"path": "aztec::protocol_types::abis::gas::Gas"
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"name": "max_fees_per_gas",
|
|
441
|
-
"type": {
|
|
442
|
-
"fields": [
|
|
443
|
-
{
|
|
444
|
-
"name": "fee_per_da_gas",
|
|
445
|
-
"type": {
|
|
446
|
-
"kind": "field"
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
"name": "fee_per_l2_gas",
|
|
451
|
-
"type": {
|
|
452
|
-
"kind": "field"
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
],
|
|
456
|
-
"kind": "struct",
|
|
457
|
-
"path": "aztec::protocol_types::abis::gas_fees::GasFees"
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"name": "max_priority_fees_per_gas",
|
|
462
|
-
"type": {
|
|
463
|
-
"fields": [
|
|
464
|
-
{
|
|
465
|
-
"name": "fee_per_da_gas",
|
|
466
|
-
"type": {
|
|
467
|
-
"kind": "field"
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"name": "fee_per_l2_gas",
|
|
472
|
-
"type": {
|
|
473
|
-
"kind": "field"
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
],
|
|
477
|
-
"kind": "struct",
|
|
478
|
-
"path": "aztec::protocol_types::abis::gas_fees::GasFees"
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
],
|
|
482
|
-
"kind": "struct",
|
|
483
|
-
"path": "aztec::protocol_types::abis::gas_settings::GasSettings"
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
],
|
|
487
|
-
"kind": "struct",
|
|
488
|
-
"path": "aztec::protocol_types::transaction::tx_context::TxContext"
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
"name": "start_side_effect_counter",
|
|
183
|
+
"name": "len",
|
|
493
184
|
"type": {
|
|
494
185
|
"kind": "integer",
|
|
495
186
|
"sign": "unsigned",
|
|
@@ -498,10 +189,135 @@
|
|
|
498
189
|
}
|
|
499
190
|
],
|
|
500
191
|
"kind": "struct",
|
|
501
|
-
"path": "
|
|
192
|
+
"path": "std::collections::bounded_vec::BoundedVec"
|
|
193
|
+
},
|
|
194
|
+
"visibility": "private"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "first_nullifier_in_tx",
|
|
198
|
+
"type": {
|
|
199
|
+
"kind": "field"
|
|
200
|
+
},
|
|
201
|
+
"visibility": "private"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "recipient",
|
|
205
|
+
"type": {
|
|
206
|
+
"fields": [
|
|
207
|
+
{
|
|
208
|
+
"name": "inner",
|
|
209
|
+
"type": {
|
|
210
|
+
"kind": "field"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"kind": "struct",
|
|
215
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
216
|
+
},
|
|
217
|
+
"visibility": "private"
|
|
218
|
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TWJRpv0pSKbUrKflmxayX7lI9sNxdE0n8P2yRvPYH3v+X6GLTn4tS1s0/nIH9IGJ9W5RPlv3T+6vCVLlSzOx+0UzfdY2dG6hCOxytfN97I5TqnfyO8rDvtTlv0xbsc52y+po3zqKI+2dsl8njU72tA3+U20+d7Fvmq+Z9vamh1XP+lPf6vm6gs98n8R/bNB9NeH+ufC8A/jqlIY/w/1z4fh74v+chj9TdFfCaO/IfoXguhfGcYJ+s927DhhSZ33GNduOU4Q+0WLNVScsGTx2P7RcQJkyw7WikNm9wHLDjvLDjsuXfMedS141FXcoXUsedRV8agr9ajL53Wc86jLp7/KHnXNeNTls9379Jdcx7DjVVnmitOiAPqLYfQP+37po/W7ma6T2E+s8l8tP88F8fNoHEr6M+0LVyzl0/ZWn9div+TgEe6iQ7adP0D70mj3O+1GZxDSV5srnaxg6RdW+5x+L9L9iy7veva74j6Pvs5cYxBl5VdssZLNW7JEyYRRj0G44mKf/Fvxv7Zfccjs/nmr13IxGm9r+n6cjUb3c5z7r3urvfHHLuuMRn8SjY8xRpb9xCr/3Xy3+7rt3iP9Vq/ar/X6vUbv8+f6p96ipV/7EH76DXVGL3ipUwAA",
|
|
223
|
+
"debug_symbols": "tZZBCoMwEEXvknUWzli19SqlSNQogRAlaqGId28i0kq7/puQCZM3ZPHIX0Wr66WvjOuGSZT3VdihUbMZXKjWTYraG2tNX52PRRIXSni/MI3KxXqalZ9FmWapFNq1YZdTAHTGalHmvMm/1oKPzqL4NGa8PWRgp0D2BcjOgOwcyC6A7CuQfcOxKQGyCcgGeklALwnoJQG9JKCXBPSSgF4S0EsGeslALxnoJQO9ZJSXW6ieyhtVW33EjW5xzSl9zK9R/wSR0Q+NbhevYyT5ppH4/gvLjPdfIRTEuaSUwpAw6A0=",
|
|
224
|
+
"brillig_names": [
|
|
225
|
+
"process_log"
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "_check_timestamp",
|
|
230
|
+
"is_unconstrained": true,
|
|
231
|
+
"custom_attributes": [
|
|
232
|
+
"public",
|
|
233
|
+
"internal",
|
|
234
|
+
"view"
|
|
235
|
+
],
|
|
236
|
+
"abi": {
|
|
237
|
+
"error_types": {
|
|
238
|
+
"11405868724477732285": {
|
|
239
|
+
"error_kind": "string",
|
|
240
|
+
"string": "Function _check_timestamp can only be called internally"
|
|
241
|
+
},
|
|
242
|
+
"13418685691864489983": {
|
|
243
|
+
"error_kind": "string",
|
|
244
|
+
"string": "Function _check_timestamp can only be called statically"
|
|
245
|
+
},
|
|
246
|
+
"1433889167918961673": {
|
|
247
|
+
"error_kind": "fmtstring",
|
|
248
|
+
"item_types": [],
|
|
249
|
+
"length": 17
|
|
250
|
+
},
|
|
251
|
+
"17843811134343075018": {
|
|
252
|
+
"error_kind": "string",
|
|
253
|
+
"string": "Stack too deep"
|
|
254
|
+
},
|
|
255
|
+
"8443716675528357851": {
|
|
256
|
+
"error_kind": "string",
|
|
257
|
+
"string": "Timestamp mismatch."
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"parameters": [
|
|
261
|
+
{
|
|
262
|
+
"name": "operation",
|
|
263
|
+
"type": {
|
|
264
|
+
"kind": "integer",
|
|
265
|
+
"sign": "unsigned",
|
|
266
|
+
"width": 8
|
|
502
267
|
},
|
|
503
268
|
"visibility": "private"
|
|
504
269
|
},
|
|
270
|
+
{
|
|
271
|
+
"name": "value",
|
|
272
|
+
"type": {
|
|
273
|
+
"kind": "integer",
|
|
274
|
+
"sign": "unsigned",
|
|
275
|
+
"width": 64
|
|
276
|
+
},
|
|
277
|
+
"visibility": "private"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"return_type": null
|
|
281
|
+
},
|
|
282
|
+
"bytecode": "JgACBAEnAAABBIBLJgAABAMmAgMEAiYCBAQAHxgABAADgEkdAIBJgEkCHQCASoBKBS0IgEkAAS0IgEoAAiQAAABZJAAAAIQnAgABBIBLJgICBAA6DQABAAInAIBDAgAEJwCARAIABicAgEUC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mfHMl9328f66X1Xtwc0j2cz2xk7myzYpSmGW6tyCgtO1t62s2h2bT61BrVB/gc=",
|
|
284
|
+
"brillig_names": [
|
|
285
|
+
"_check_timestamp"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "_check_block_number",
|
|
290
|
+
"is_unconstrained": true,
|
|
291
|
+
"custom_attributes": [
|
|
292
|
+
"public",
|
|
293
|
+
"internal",
|
|
294
|
+
"view"
|
|
295
|
+
],
|
|
296
|
+
"abi": {
|
|
297
|
+
"error_types": {
|
|
298
|
+
"10421965853029650238": {
|
|
299
|
+
"error_kind": "string",
|
|
300
|
+
"string": "Function _check_block_number can only be called statically"
|
|
301
|
+
},
|
|
302
|
+
"1433889167918961673": {
|
|
303
|
+
"error_kind": "fmtstring",
|
|
304
|
+
"item_types": [],
|
|
305
|
+
"length": 17
|
|
306
|
+
},
|
|
307
|
+
"17843811134343075018": {
|
|
308
|
+
"error_kind": "string",
|
|
309
|
+
"string": "Stack too deep"
|
|
310
|
+
},
|
|
311
|
+
"2242946026394210301": {
|
|
312
|
+
"error_kind": "string",
|
|
313
|
+
"string": "Block number mismatch."
|
|
314
|
+
},
|
|
315
|
+
"8209322232883590150": {
|
|
316
|
+
"error_kind": "string",
|
|
317
|
+
"string": "Function _check_block_number can only be called internally"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"parameters": [
|
|
505
321
|
{
|
|
506
322
|
"name": "operation",
|
|
507
323
|
"type": {
|
|
@@ -519,317 +335,306 @@
|
|
|
519
335
|
"visibility": "private"
|
|
520
336
|
}
|
|
521
337
|
],
|
|
522
|
-
"return_type":
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
],
|
|
555
|
-
"kind": "struct",
|
|
556
|
-
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"name": "function_selector",
|
|
561
|
-
"type": {
|
|
562
|
-
"fields": [
|
|
563
|
-
{
|
|
564
|
-
"name": "inner",
|
|
565
|
-
"type": {
|
|
566
|
-
"kind": "integer",
|
|
567
|
-
"sign": "unsigned",
|
|
568
|
-
"width": 32
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
],
|
|
572
|
-
"kind": "struct",
|
|
573
|
-
"path": "aztec::protocol_types::abis::function_selector::FunctionSelector"
|
|
574
|
-
}
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
"name": "is_static_call",
|
|
578
|
-
"type": {
|
|
579
|
-
"kind": "boolean"
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
],
|
|
583
|
-
"kind": "struct",
|
|
584
|
-
"path": "aztec::protocol_types::abis::call_context::CallContext"
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
"name": "args_hash",
|
|
589
|
-
"type": {
|
|
590
|
-
"kind": "field"
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"name": "returns_hash",
|
|
595
|
-
"type": {
|
|
596
|
-
"kind": "field"
|
|
597
|
-
}
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
"name": "min_revertible_side_effect_counter",
|
|
601
|
-
"type": {
|
|
602
|
-
"kind": "integer",
|
|
603
|
-
"sign": "unsigned",
|
|
604
|
-
"width": 32
|
|
605
|
-
}
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"name": "is_fee_payer",
|
|
609
|
-
"type": {
|
|
610
|
-
"kind": "boolean"
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
"name": "max_block_number",
|
|
615
|
-
"type": {
|
|
616
|
-
"fields": [
|
|
617
|
-
{
|
|
618
|
-
"name": "_opt",
|
|
619
|
-
"type": {
|
|
620
|
-
"fields": [
|
|
621
|
-
{
|
|
622
|
-
"name": "_is_some",
|
|
623
|
-
"type": {
|
|
624
|
-
"kind": "boolean"
|
|
625
|
-
}
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"name": "_value",
|
|
629
|
-
"type": {
|
|
630
|
-
"kind": "integer",
|
|
631
|
-
"sign": "unsigned",
|
|
632
|
-
"width": 32
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
],
|
|
636
|
-
"kind": "struct",
|
|
637
|
-
"path": "std::option::Option"
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
],
|
|
641
|
-
"kind": "struct",
|
|
642
|
-
"path": "aztec::protocol_types::abis::max_block_number::MaxBlockNumber"
|
|
643
|
-
}
|
|
644
|
-
},
|
|
645
|
-
{
|
|
646
|
-
"name": "note_hash_read_requests",
|
|
647
|
-
"type": {
|
|
648
|
-
"kind": "array",
|
|
649
|
-
"length": 16,
|
|
338
|
+
"return_type": null
|
|
339
|
+
},
|
|
340
|
+
"bytecode": "JgACBAEnAAABBIBLJgAABAMmAgMEAiYCBAQAHxgABAADgEkdAIBJgEkCLQiASQABLQiASgACJAAAAFIkAAAAfScCAAEEgEsmAgIEADoNAAEAAicAgEMCAAQnAIBEAgAGJwCARQIAAScAgEYCAAInAIBHAgAFJwCASAIAAyUkAAADQR4CAAQBHgIABQAKOAQFBiMCAAYAAACeJAAAA2oeAgAECSYCBQABCjgEBQYjAgAGAAAAuiQAAAN8HgIABAUKOAQCBQw4BAIGCygAAYBFAAImAgQBASMCAAIAAAMqIgAAAOMLKAABgEYABxYM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yfh3yujeNd9Vo/b9+fZou35bp6+LOr5suX6Wa2XDRvu89J9byazeez96fjf1eu/UPBfXVYf0wX7ft6M11tqgcS8ZOqXry2j+qbId5m87p6kOax1ziKp33j5jF1jTWcaWxB88gWTI8bP04aOjycToya6USW3+g47uh4OqUTb3XnqxPf0YnDPZ1ssFuSXHZLkg/X3UquGzk541O35B4NYnd00nuQjO7pJOc7hdB14nDdYjbNFrMl+mVCSrA8IYXTqcXpggbPBw3xOp2QMkB01jUltW8AGQwQvWSA4H8AnJlRwWKeUdEdygGlcwM7FzvqdDT0uZED+6wzcEzXGxM57QSSS3ZMpLHFu+G+x9j5ftR077v3OhiAyeVpFrQHcKmy3gCgnf0aXA+A/XAFmgHE9QEuhf4GgENsRfoAKWItCm64Rao5XOZCD4ASGODSgjgeAIMBGK2A0QoErUDQChStQNEKDK3A0AoSWkECK2h2A2gAuAJwuY4U0QBoBR6twKMVhIAGUDBA9GgAAQMwoQHQpQK96EdBB03QQVN00NTAAIYOmqFLRUIHLYFLBaN3FYzeVTB6V8HoXQUTOGjsAxoAHDQOHg2ADlokNAA6aOijBGZ00BhdKgQdNEGXCkUHTdGlwoYHzWI+NzX9eax5hkz+nKKHQ2j230ykFCapGE9SKZ6Ii8UwSaUwoVAMEyuFiS/GkxF2WSMxGeG7yFhMuBQmXIwnXIwnUsq6I1JMdrSYeqLF1FgrxhMrxpPki2FSSnbUj/DzJ3bD9+9E6Agn59LxbybTKYDd/AWp7XTzwv/42bz9na5m0+d5vb8V+bZdvBxdktz8+6hP7kt+rJYv9et2Vbc3Jw+XJttsktKEjBoy1C5zxGlCEtvX1jASm5C6BrVB/g8=",
|
|
342
|
+
"brillig_names": [
|
|
343
|
+
"_check_block_number"
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "check_block_number",
|
|
348
|
+
"is_unconstrained": false,
|
|
349
|
+
"custom_attributes": [
|
|
350
|
+
"private"
|
|
351
|
+
],
|
|
352
|
+
"abi": {
|
|
353
|
+
"error_types": {
|
|
354
|
+
"17843811134343075018": {
|
|
355
|
+
"error_kind": "string",
|
|
356
|
+
"string": "Stack too deep"
|
|
357
|
+
},
|
|
358
|
+
"5019202896831570965": {
|
|
359
|
+
"error_kind": "string",
|
|
360
|
+
"string": "attempt to add with overflow"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"parameters": [
|
|
364
|
+
{
|
|
365
|
+
"name": "inputs",
|
|
366
|
+
"type": {
|
|
367
|
+
"fields": [
|
|
368
|
+
{
|
|
369
|
+
"name": "call_context",
|
|
650
370
|
"type": {
|
|
651
371
|
"fields": [
|
|
652
372
|
{
|
|
653
|
-
"name": "
|
|
373
|
+
"name": "msg_sender",
|
|
654
374
|
"type": {
|
|
655
|
-
"
|
|
375
|
+
"fields": [
|
|
376
|
+
{
|
|
377
|
+
"name": "inner",
|
|
378
|
+
"type": {
|
|
379
|
+
"kind": "field"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"kind": "struct",
|
|
384
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
656
385
|
}
|
|
657
386
|
},
|
|
658
387
|
{
|
|
659
|
-
"name": "
|
|
388
|
+
"name": "contract_address",
|
|
660
389
|
"type": {
|
|
661
|
-
"
|
|
662
|
-
|
|
663
|
-
|
|
390
|
+
"fields": [
|
|
391
|
+
{
|
|
392
|
+
"name": "inner",
|
|
393
|
+
"type": {
|
|
394
|
+
"kind": "field"
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"kind": "struct",
|
|
399
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
664
400
|
}
|
|
665
|
-
}
|
|
666
|
-
],
|
|
667
|
-
"kind": "struct",
|
|
668
|
-
"path": "aztec::protocol_types::abis::read_request::ReadRequest"
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
"name": "nullifier_read_requests",
|
|
674
|
-
"type": {
|
|
675
|
-
"kind": "array",
|
|
676
|
-
"length": 16,
|
|
677
|
-
"type": {
|
|
678
|
-
"fields": [
|
|
401
|
+
},
|
|
679
402
|
{
|
|
680
|
-
"name": "
|
|
403
|
+
"name": "function_selector",
|
|
681
404
|
"type": {
|
|
682
|
-
"
|
|
405
|
+
"fields": [
|
|
406
|
+
{
|
|
407
|
+
"name": "inner",
|
|
408
|
+
"type": {
|
|
409
|
+
"kind": "integer",
|
|
410
|
+
"sign": "unsigned",
|
|
411
|
+
"width": 32
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"kind": "struct",
|
|
416
|
+
"path": "aztec::protocol_types::abis::function_selector::FunctionSelector"
|
|
683
417
|
}
|
|
684
418
|
},
|
|
685
419
|
{
|
|
686
|
-
"name": "
|
|
420
|
+
"name": "is_static_call",
|
|
687
421
|
"type": {
|
|
688
|
-
"kind": "
|
|
689
|
-
"sign": "unsigned",
|
|
690
|
-
"width": 32
|
|
422
|
+
"kind": "boolean"
|
|
691
423
|
}
|
|
692
424
|
}
|
|
693
425
|
],
|
|
694
426
|
"kind": "struct",
|
|
695
|
-
"path": "aztec::protocol_types::abis::
|
|
427
|
+
"path": "aztec::protocol_types::abis::call_context::CallContext"
|
|
696
428
|
}
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
"name": "key_validation_requests_and_generators",
|
|
701
|
-
"type": {
|
|
702
|
-
"kind": "array",
|
|
703
|
-
"length": 16,
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"name": "historical_header",
|
|
704
432
|
"type": {
|
|
705
433
|
"fields": [
|
|
706
434
|
{
|
|
707
|
-
"name": "
|
|
435
|
+
"name": "last_archive",
|
|
708
436
|
"type": {
|
|
709
437
|
"fields": [
|
|
710
438
|
{
|
|
711
|
-
"name": "
|
|
439
|
+
"name": "root",
|
|
712
440
|
"type": {
|
|
713
|
-
"
|
|
714
|
-
{
|
|
715
|
-
"name": "x",
|
|
716
|
-
"type": {
|
|
717
|
-
"kind": "field"
|
|
718
|
-
}
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
"name": "y",
|
|
722
|
-
"type": {
|
|
723
|
-
"kind": "field"
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
"name": "is_infinite",
|
|
728
|
-
"type": {
|
|
729
|
-
"kind": "boolean"
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
],
|
|
733
|
-
"kind": "struct",
|
|
734
|
-
"path": "std::embedded_curve_ops::EmbeddedCurvePoint"
|
|
441
|
+
"kind": "field"
|
|
735
442
|
}
|
|
736
443
|
},
|
|
737
444
|
{
|
|
738
|
-
"name": "
|
|
445
|
+
"name": "next_available_leaf_index",
|
|
739
446
|
"type": {
|
|
740
|
-
"kind": "
|
|
447
|
+
"kind": "integer",
|
|
448
|
+
"sign": "unsigned",
|
|
449
|
+
"width": 32
|
|
741
450
|
}
|
|
742
451
|
}
|
|
743
452
|
],
|
|
744
453
|
"kind": "struct",
|
|
745
|
-
"path": "aztec::protocol_types::abis::
|
|
454
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
746
455
|
}
|
|
747
456
|
},
|
|
748
457
|
{
|
|
749
|
-
"name": "
|
|
458
|
+
"name": "content_commitment",
|
|
750
459
|
"type": {
|
|
751
|
-
"
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
"
|
|
778
|
-
"
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
],
|
|
782
|
-
"kind": "struct",
|
|
783
|
-
"path": "aztec::protocol_types::abis::note_hash::NoteHash"
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
"name": "nullifiers",
|
|
789
|
-
"type": {
|
|
790
|
-
"kind": "array",
|
|
791
|
-
"length": 16,
|
|
792
|
-
"type": {
|
|
793
|
-
"fields": [
|
|
794
|
-
{
|
|
795
|
-
"name": "value",
|
|
796
|
-
"type": {
|
|
797
|
-
"kind": "field"
|
|
460
|
+
"fields": [
|
|
461
|
+
{
|
|
462
|
+
"name": "num_txs",
|
|
463
|
+
"type": {
|
|
464
|
+
"kind": "field"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "blobs_hash",
|
|
469
|
+
"type": {
|
|
470
|
+
"kind": "field"
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "in_hash",
|
|
475
|
+
"type": {
|
|
476
|
+
"kind": "field"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "out_hash",
|
|
481
|
+
"type": {
|
|
482
|
+
"kind": "field"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"kind": "struct",
|
|
487
|
+
"path": "aztec::protocol_types::content_commitment::ContentCommitment"
|
|
798
488
|
}
|
|
799
489
|
},
|
|
800
490
|
{
|
|
801
|
-
"name": "
|
|
491
|
+
"name": "state",
|
|
802
492
|
"type": {
|
|
803
|
-
"
|
|
804
|
-
|
|
805
|
-
|
|
493
|
+
"fields": [
|
|
494
|
+
{
|
|
495
|
+
"name": "l1_to_l2_message_tree",
|
|
496
|
+
"type": {
|
|
497
|
+
"fields": [
|
|
498
|
+
{
|
|
499
|
+
"name": "root",
|
|
500
|
+
"type": {
|
|
501
|
+
"kind": "field"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "next_available_leaf_index",
|
|
506
|
+
"type": {
|
|
507
|
+
"kind": "integer",
|
|
508
|
+
"sign": "unsigned",
|
|
509
|
+
"width": 32
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
"kind": "struct",
|
|
514
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "partial",
|
|
519
|
+
"type": {
|
|
520
|
+
"fields": [
|
|
521
|
+
{
|
|
522
|
+
"name": "note_hash_tree",
|
|
523
|
+
"type": {
|
|
524
|
+
"fields": [
|
|
525
|
+
{
|
|
526
|
+
"name": "root",
|
|
527
|
+
"type": {
|
|
528
|
+
"kind": "field"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"name": "next_available_leaf_index",
|
|
533
|
+
"type": {
|
|
534
|
+
"kind": "integer",
|
|
535
|
+
"sign": "unsigned",
|
|
536
|
+
"width": 32
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
"kind": "struct",
|
|
541
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "nullifier_tree",
|
|
546
|
+
"type": {
|
|
547
|
+
"fields": [
|
|
548
|
+
{
|
|
549
|
+
"name": "root",
|
|
550
|
+
"type": {
|
|
551
|
+
"kind": "field"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"name": "next_available_leaf_index",
|
|
556
|
+
"type": {
|
|
557
|
+
"kind": "integer",
|
|
558
|
+
"sign": "unsigned",
|
|
559
|
+
"width": 32
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"kind": "struct",
|
|
564
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "public_data_tree",
|
|
569
|
+
"type": {
|
|
570
|
+
"fields": [
|
|
571
|
+
{
|
|
572
|
+
"name": "root",
|
|
573
|
+
"type": {
|
|
574
|
+
"kind": "field"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "next_available_leaf_index",
|
|
579
|
+
"type": {
|
|
580
|
+
"kind": "integer",
|
|
581
|
+
"sign": "unsigned",
|
|
582
|
+
"width": 32
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"kind": "struct",
|
|
587
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
],
|
|
591
|
+
"kind": "struct",
|
|
592
|
+
"path": "aztec::protocol_types::partial_state_reference::PartialStateReference"
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"kind": "struct",
|
|
597
|
+
"path": "aztec::protocol_types::state_reference::StateReference"
|
|
806
598
|
}
|
|
807
599
|
},
|
|
808
600
|
{
|
|
809
|
-
"name": "
|
|
810
|
-
"type": {
|
|
811
|
-
"kind": "field"
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
],
|
|
815
|
-
"kind": "struct",
|
|
816
|
-
"path": "aztec::protocol_types::abis::nullifier::Nullifier"
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
"name": "private_call_requests",
|
|
822
|
-
"type": {
|
|
823
|
-
"kind": "array",
|
|
824
|
-
"length": 5,
|
|
825
|
-
"type": {
|
|
826
|
-
"fields": [
|
|
827
|
-
{
|
|
828
|
-
"name": "call_context",
|
|
601
|
+
"name": "global_variables",
|
|
829
602
|
"type": {
|
|
830
603
|
"fields": [
|
|
831
604
|
{
|
|
832
|
-
"name": "
|
|
605
|
+
"name": "chain_id",
|
|
606
|
+
"type": {
|
|
607
|
+
"kind": "field"
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"name": "version",
|
|
612
|
+
"type": {
|
|
613
|
+
"kind": "field"
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"name": "block_number",
|
|
618
|
+
"type": {
|
|
619
|
+
"kind": "field"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "slot_number",
|
|
624
|
+
"type": {
|
|
625
|
+
"kind": "field"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"name": "timestamp",
|
|
630
|
+
"type": {
|
|
631
|
+
"kind": "integer",
|
|
632
|
+
"sign": "unsigned",
|
|
633
|
+
"width": 64
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "coinbase",
|
|
833
638
|
"type": {
|
|
834
639
|
"fields": [
|
|
835
640
|
{
|
|
@@ -840,11 +645,11 @@
|
|
|
840
645
|
}
|
|
841
646
|
],
|
|
842
647
|
"kind": "struct",
|
|
843
|
-
"path": "aztec::protocol_types::address::
|
|
648
|
+
"path": "aztec::protocol_types::address::eth_address::EthAddress"
|
|
844
649
|
}
|
|
845
650
|
},
|
|
846
651
|
{
|
|
847
|
-
"name": "
|
|
652
|
+
"name": "fee_recipient",
|
|
848
653
|
"type": {
|
|
849
654
|
"fields": [
|
|
850
655
|
{
|
|
@@ -859,158 +664,206 @@
|
|
|
859
664
|
}
|
|
860
665
|
},
|
|
861
666
|
{
|
|
862
|
-
"name": "
|
|
667
|
+
"name": "gas_fees",
|
|
863
668
|
"type": {
|
|
864
669
|
"fields": [
|
|
865
670
|
{
|
|
866
|
-
"name": "
|
|
671
|
+
"name": "fee_per_da_gas",
|
|
867
672
|
"type": {
|
|
868
|
-
"kind": "
|
|
869
|
-
|
|
870
|
-
|
|
673
|
+
"kind": "field"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"name": "fee_per_l2_gas",
|
|
678
|
+
"type": {
|
|
679
|
+
"kind": "field"
|
|
871
680
|
}
|
|
872
681
|
}
|
|
873
682
|
],
|
|
874
683
|
"kind": "struct",
|
|
875
|
-
"path": "aztec::protocol_types::abis::
|
|
876
|
-
}
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
"name": "is_static_call",
|
|
880
|
-
"type": {
|
|
881
|
-
"kind": "boolean"
|
|
684
|
+
"path": "aztec::protocol_types::abis::gas_fees::GasFees"
|
|
882
685
|
}
|
|
883
686
|
}
|
|
884
687
|
],
|
|
885
688
|
"kind": "struct",
|
|
886
|
-
"path": "aztec::protocol_types::abis::
|
|
689
|
+
"path": "aztec::protocol_types::abis::global_variables::GlobalVariables"
|
|
887
690
|
}
|
|
888
691
|
},
|
|
889
692
|
{
|
|
890
|
-
"name": "
|
|
693
|
+
"name": "total_fees",
|
|
891
694
|
"type": {
|
|
892
695
|
"kind": "field"
|
|
893
696
|
}
|
|
894
697
|
},
|
|
895
698
|
{
|
|
896
|
-
"name": "
|
|
699
|
+
"name": "total_mana_used",
|
|
897
700
|
"type": {
|
|
898
701
|
"kind": "field"
|
|
899
702
|
}
|
|
900
|
-
}
|
|
703
|
+
}
|
|
704
|
+
],
|
|
705
|
+
"kind": "struct",
|
|
706
|
+
"path": "aztec::protocol_types::block_header::BlockHeader"
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "tx_context",
|
|
711
|
+
"type": {
|
|
712
|
+
"fields": [
|
|
901
713
|
{
|
|
902
|
-
"name": "
|
|
714
|
+
"name": "chain_id",
|
|
903
715
|
"type": {
|
|
904
|
-
"kind": "
|
|
905
|
-
"sign": "unsigned",
|
|
906
|
-
"width": 32
|
|
716
|
+
"kind": "field"
|
|
907
717
|
}
|
|
908
718
|
},
|
|
909
719
|
{
|
|
910
|
-
"name": "
|
|
720
|
+
"name": "version",
|
|
911
721
|
"type": {
|
|
912
|
-
"kind": "
|
|
913
|
-
"sign": "unsigned",
|
|
914
|
-
"width": 32
|
|
722
|
+
"kind": "field"
|
|
915
723
|
}
|
|
916
|
-
}
|
|
917
|
-
],
|
|
918
|
-
"kind": "struct",
|
|
919
|
-
"path": "aztec::protocol_types::abis::private_call_request::PrivateCallRequest"
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
"name": "public_call_requests",
|
|
925
|
-
"type": {
|
|
926
|
-
"kind": "array",
|
|
927
|
-
"length": 16,
|
|
928
|
-
"type": {
|
|
929
|
-
"fields": [
|
|
724
|
+
},
|
|
930
725
|
{
|
|
931
|
-
"name": "
|
|
726
|
+
"name": "gas_settings",
|
|
932
727
|
"type": {
|
|
933
728
|
"fields": [
|
|
934
729
|
{
|
|
935
|
-
"name": "
|
|
730
|
+
"name": "gas_limits",
|
|
936
731
|
"type": {
|
|
937
732
|
"fields": [
|
|
938
733
|
{
|
|
939
|
-
"name": "
|
|
734
|
+
"name": "da_gas",
|
|
940
735
|
"type": {
|
|
941
|
-
"kind": "
|
|
736
|
+
"kind": "integer",
|
|
737
|
+
"sign": "unsigned",
|
|
738
|
+
"width": 32
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "l2_gas",
|
|
743
|
+
"type": {
|
|
744
|
+
"kind": "integer",
|
|
745
|
+
"sign": "unsigned",
|
|
746
|
+
"width": 32
|
|
942
747
|
}
|
|
943
748
|
}
|
|
944
749
|
],
|
|
945
750
|
"kind": "struct",
|
|
946
|
-
"path": "aztec::protocol_types::
|
|
751
|
+
"path": "aztec::protocol_types::abis::gas::Gas"
|
|
947
752
|
}
|
|
948
753
|
},
|
|
949
754
|
{
|
|
950
|
-
"name": "
|
|
755
|
+
"name": "teardown_gas_limits",
|
|
951
756
|
"type": {
|
|
952
757
|
"fields": [
|
|
953
758
|
{
|
|
954
|
-
"name": "
|
|
759
|
+
"name": "da_gas",
|
|
955
760
|
"type": {
|
|
956
|
-
"kind": "
|
|
761
|
+
"kind": "integer",
|
|
762
|
+
"sign": "unsigned",
|
|
763
|
+
"width": 32
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"name": "l2_gas",
|
|
768
|
+
"type": {
|
|
769
|
+
"kind": "integer",
|
|
770
|
+
"sign": "unsigned",
|
|
771
|
+
"width": 32
|
|
957
772
|
}
|
|
958
773
|
}
|
|
959
774
|
],
|
|
960
775
|
"kind": "struct",
|
|
961
|
-
"path": "aztec::protocol_types::
|
|
776
|
+
"path": "aztec::protocol_types::abis::gas::Gas"
|
|
962
777
|
}
|
|
963
778
|
},
|
|
964
779
|
{
|
|
965
|
-
"name": "
|
|
780
|
+
"name": "max_fees_per_gas",
|
|
966
781
|
"type": {
|
|
967
782
|
"fields": [
|
|
968
783
|
{
|
|
969
|
-
"name": "
|
|
784
|
+
"name": "fee_per_da_gas",
|
|
970
785
|
"type": {
|
|
971
|
-
"kind": "
|
|
972
|
-
|
|
973
|
-
|
|
786
|
+
"kind": "field"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "fee_per_l2_gas",
|
|
791
|
+
"type": {
|
|
792
|
+
"kind": "field"
|
|
974
793
|
}
|
|
975
794
|
}
|
|
976
795
|
],
|
|
977
796
|
"kind": "struct",
|
|
978
|
-
"path": "aztec::protocol_types::abis::
|
|
979
|
-
}
|
|
980
|
-
},
|
|
981
|
-
{
|
|
982
|
-
"name": "is_static_call",
|
|
983
|
-
"type": {
|
|
984
|
-
"kind": "boolean"
|
|
797
|
+
"path": "aztec::protocol_types::abis::gas_fees::GasFees"
|
|
985
798
|
}
|
|
986
799
|
},
|
|
987
800
|
{
|
|
988
|
-
"name": "
|
|
801
|
+
"name": "max_priority_fees_per_gas",
|
|
989
802
|
"type": {
|
|
990
|
-
"
|
|
803
|
+
"fields": [
|
|
804
|
+
{
|
|
805
|
+
"name": "fee_per_da_gas",
|
|
806
|
+
"type": {
|
|
807
|
+
"kind": "field"
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"name": "fee_per_l2_gas",
|
|
812
|
+
"type": {
|
|
813
|
+
"kind": "field"
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
],
|
|
817
|
+
"kind": "struct",
|
|
818
|
+
"path": "aztec::protocol_types::abis::gas_fees::GasFees"
|
|
991
819
|
}
|
|
992
820
|
}
|
|
993
821
|
],
|
|
994
822
|
"kind": "struct",
|
|
995
|
-
"path": "aztec::protocol_types::abis::
|
|
996
|
-
}
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
"name": "counter",
|
|
1000
|
-
"type": {
|
|
1001
|
-
"kind": "integer",
|
|
1002
|
-
"sign": "unsigned",
|
|
1003
|
-
"width": 32
|
|
823
|
+
"path": "aztec::protocol_types::abis::gas_settings::GasSettings"
|
|
1004
824
|
}
|
|
1005
825
|
}
|
|
1006
826
|
],
|
|
1007
827
|
"kind": "struct",
|
|
1008
|
-
"path": "aztec::protocol_types::
|
|
828
|
+
"path": "aztec::protocol_types::transaction::tx_context::TxContext"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"name": "start_side_effect_counter",
|
|
833
|
+
"type": {
|
|
834
|
+
"kind": "integer",
|
|
835
|
+
"sign": "unsigned",
|
|
836
|
+
"width": 32
|
|
1009
837
|
}
|
|
1010
838
|
}
|
|
1011
|
-
|
|
839
|
+
],
|
|
840
|
+
"kind": "struct",
|
|
841
|
+
"path": "aztec::context::inputs::private_context_inputs::PrivateContextInputs"
|
|
842
|
+
},
|
|
843
|
+
"visibility": "private"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"name": "operation",
|
|
847
|
+
"type": {
|
|
848
|
+
"kind": "integer",
|
|
849
|
+
"sign": "unsigned",
|
|
850
|
+
"width": 8
|
|
851
|
+
},
|
|
852
|
+
"visibility": "private"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"name": "value",
|
|
856
|
+
"type": {
|
|
857
|
+
"kind": "field"
|
|
858
|
+
},
|
|
859
|
+
"visibility": "private"
|
|
860
|
+
}
|
|
861
|
+
],
|
|
862
|
+
"return_type": {
|
|
863
|
+
"abi_type": {
|
|
864
|
+
"fields": [
|
|
1012
865
|
{
|
|
1013
|
-
"name": "
|
|
866
|
+
"name": "call_context",
|
|
1014
867
|
"type": {
|
|
1015
868
|
"fields": [
|
|
1016
869
|
{
|
|
@@ -1065,42 +918,79 @@
|
|
|
1065
918
|
"type": {
|
|
1066
919
|
"kind": "boolean"
|
|
1067
920
|
}
|
|
1068
|
-
}
|
|
921
|
+
}
|
|
922
|
+
],
|
|
923
|
+
"kind": "struct",
|
|
924
|
+
"path": "aztec::protocol_types::abis::call_context::CallContext"
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"name": "args_hash",
|
|
929
|
+
"type": {
|
|
930
|
+
"kind": "field"
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"name": "returns_hash",
|
|
935
|
+
"type": {
|
|
936
|
+
"kind": "field"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"name": "min_revertible_side_effect_counter",
|
|
941
|
+
"type": {
|
|
942
|
+
"kind": "integer",
|
|
943
|
+
"sign": "unsigned",
|
|
944
|
+
"width": 32
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "is_fee_payer",
|
|
949
|
+
"type": {
|
|
950
|
+
"kind": "boolean"
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"name": "max_block_number",
|
|
955
|
+
"type": {
|
|
956
|
+
"fields": [
|
|
1069
957
|
{
|
|
1070
|
-
"name": "
|
|
958
|
+
"name": "_opt",
|
|
1071
959
|
"type": {
|
|
1072
|
-
"
|
|
960
|
+
"fields": [
|
|
961
|
+
{
|
|
962
|
+
"name": "_is_some",
|
|
963
|
+
"type": {
|
|
964
|
+
"kind": "boolean"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"name": "_value",
|
|
969
|
+
"type": {
|
|
970
|
+
"kind": "integer",
|
|
971
|
+
"sign": "unsigned",
|
|
972
|
+
"width": 32
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
],
|
|
976
|
+
"kind": "struct",
|
|
977
|
+
"path": "std::option::Option"
|
|
1073
978
|
}
|
|
1074
979
|
}
|
|
1075
980
|
],
|
|
1076
981
|
"kind": "struct",
|
|
1077
|
-
"path": "aztec::protocol_types::abis::
|
|
982
|
+
"path": "aztec::protocol_types::abis::max_block_number::MaxBlockNumber"
|
|
1078
983
|
}
|
|
1079
984
|
},
|
|
1080
985
|
{
|
|
1081
|
-
"name": "
|
|
986
|
+
"name": "note_hash_read_requests",
|
|
1082
987
|
"type": {
|
|
1083
988
|
"kind": "array",
|
|
1084
|
-
"length":
|
|
989
|
+
"length": 16,
|
|
1085
990
|
"type": {
|
|
1086
991
|
"fields": [
|
|
1087
992
|
{
|
|
1088
|
-
"name": "
|
|
1089
|
-
"type": {
|
|
1090
|
-
"fields": [
|
|
1091
|
-
{
|
|
1092
|
-
"name": "inner",
|
|
1093
|
-
"type": {
|
|
1094
|
-
"kind": "field"
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
],
|
|
1098
|
-
"kind": "struct",
|
|
1099
|
-
"path": "aztec::protocol_types::address::eth_address::EthAddress"
|
|
1100
|
-
}
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
"name": "content",
|
|
993
|
+
"name": "value",
|
|
1104
994
|
"type": {
|
|
1105
995
|
"kind": "field"
|
|
1106
996
|
}
|
|
@@ -1115,42 +1005,109 @@
|
|
|
1115
1005
|
}
|
|
1116
1006
|
],
|
|
1117
1007
|
"kind": "struct",
|
|
1118
|
-
"path": "aztec::protocol_types::
|
|
1008
|
+
"path": "aztec::protocol_types::abis::read_request::ReadRequest"
|
|
1119
1009
|
}
|
|
1120
1010
|
}
|
|
1121
1011
|
},
|
|
1122
1012
|
{
|
|
1123
|
-
"name": "
|
|
1013
|
+
"name": "nullifier_read_requests",
|
|
1124
1014
|
"type": {
|
|
1125
1015
|
"kind": "array",
|
|
1126
1016
|
"length": 16,
|
|
1127
1017
|
"type": {
|
|
1128
1018
|
"fields": [
|
|
1129
1019
|
{
|
|
1130
|
-
"name": "
|
|
1020
|
+
"name": "value",
|
|
1131
1021
|
"type": {
|
|
1132
|
-
"
|
|
1133
|
-
|
|
1134
|
-
|
|
1022
|
+
"kind": "field"
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"name": "counter",
|
|
1027
|
+
"type": {
|
|
1028
|
+
"kind": "integer",
|
|
1029
|
+
"sign": "unsigned",
|
|
1030
|
+
"width": 32
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
],
|
|
1034
|
+
"kind": "struct",
|
|
1035
|
+
"path": "aztec::protocol_types::abis::read_request::ReadRequest"
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"name": "key_validation_requests_and_generators",
|
|
1041
|
+
"type": {
|
|
1042
|
+
"kind": "array",
|
|
1043
|
+
"length": 16,
|
|
1044
|
+
"type": {
|
|
1045
|
+
"fields": [
|
|
1046
|
+
{
|
|
1047
|
+
"name": "request",
|
|
1048
|
+
"type": {
|
|
1049
|
+
"fields": [
|
|
1050
|
+
{
|
|
1051
|
+
"name": "pk_m",
|
|
1135
1052
|
"type": {
|
|
1136
|
-
"
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1053
|
+
"fields": [
|
|
1054
|
+
{
|
|
1055
|
+
"name": "x",
|
|
1056
|
+
"type": {
|
|
1057
|
+
"kind": "field"
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "y",
|
|
1062
|
+
"type": {
|
|
1063
|
+
"kind": "field"
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "is_infinite",
|
|
1068
|
+
"type": {
|
|
1069
|
+
"kind": "boolean"
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
],
|
|
1073
|
+
"kind": "struct",
|
|
1074
|
+
"path": "std::embedded_curve_ops::EmbeddedCurvePoint"
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "sk_app",
|
|
1079
|
+
"type": {
|
|
1080
|
+
"kind": "field"
|
|
1141
1081
|
}
|
|
1142
1082
|
}
|
|
1143
1083
|
],
|
|
1144
1084
|
"kind": "struct",
|
|
1145
|
-
"path": "aztec::protocol_types::abis::
|
|
1085
|
+
"path": "aztec::protocol_types::abis::validation_requests::key_validation_request::KeyValidationRequest"
|
|
1146
1086
|
}
|
|
1147
1087
|
},
|
|
1148
1088
|
{
|
|
1149
|
-
"name": "
|
|
1089
|
+
"name": "sk_app_generator",
|
|
1150
1090
|
"type": {
|
|
1151
|
-
"kind": "
|
|
1152
|
-
|
|
1153
|
-
|
|
1091
|
+
"kind": "field"
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
],
|
|
1095
|
+
"kind": "struct",
|
|
1096
|
+
"path": "aztec::protocol_types::abis::validation_requests::key_validation_request_and_generator::KeyValidationRequestAndGenerator"
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"name": "note_hashes",
|
|
1102
|
+
"type": {
|
|
1103
|
+
"kind": "array",
|
|
1104
|
+
"length": 16,
|
|
1105
|
+
"type": {
|
|
1106
|
+
"fields": [
|
|
1107
|
+
{
|
|
1108
|
+
"name": "value",
|
|
1109
|
+
"type": {
|
|
1110
|
+
"kind": "field"
|
|
1154
1111
|
}
|
|
1155
1112
|
},
|
|
1156
1113
|
{
|
|
@@ -1163,15 +1120,15 @@
|
|
|
1163
1120
|
}
|
|
1164
1121
|
],
|
|
1165
1122
|
"kind": "struct",
|
|
1166
|
-
"path": "aztec::protocol_types::abis::
|
|
1123
|
+
"path": "aztec::protocol_types::abis::note_hash::NoteHash"
|
|
1167
1124
|
}
|
|
1168
1125
|
}
|
|
1169
1126
|
},
|
|
1170
1127
|
{
|
|
1171
|
-
"name": "
|
|
1128
|
+
"name": "nullifiers",
|
|
1172
1129
|
"type": {
|
|
1173
1130
|
"kind": "array",
|
|
1174
|
-
"length":
|
|
1131
|
+
"length": 16,
|
|
1175
1132
|
"type": {
|
|
1176
1133
|
"fields": [
|
|
1177
1134
|
{
|
|
@@ -1189,346 +1146,492 @@
|
|
|
1189
1146
|
}
|
|
1190
1147
|
},
|
|
1191
1148
|
{
|
|
1192
|
-
"name": "
|
|
1149
|
+
"name": "note_hash",
|
|
1193
1150
|
"type": {
|
|
1194
1151
|
"kind": "field"
|
|
1195
1152
|
}
|
|
1196
1153
|
}
|
|
1197
1154
|
],
|
|
1198
1155
|
"kind": "struct",
|
|
1199
|
-
"path": "aztec::protocol_types::abis::
|
|
1156
|
+
"path": "aztec::protocol_types::abis::nullifier::Nullifier"
|
|
1200
1157
|
}
|
|
1201
1158
|
}
|
|
1202
1159
|
},
|
|
1203
1160
|
{
|
|
1204
|
-
"name": "
|
|
1205
|
-
"type": {
|
|
1206
|
-
"kind": "integer",
|
|
1207
|
-
"sign": "unsigned",
|
|
1208
|
-
"width": 32
|
|
1209
|
-
}
|
|
1210
|
-
},
|
|
1211
|
-
{
|
|
1212
|
-
"name": "end_side_effect_counter",
|
|
1161
|
+
"name": "private_call_requests",
|
|
1213
1162
|
"type": {
|
|
1214
|
-
"kind": "
|
|
1215
|
-
"
|
|
1216
|
-
"
|
|
1163
|
+
"kind": "array",
|
|
1164
|
+
"length": 5,
|
|
1165
|
+
"type": {
|
|
1166
|
+
"fields": [
|
|
1167
|
+
{
|
|
1168
|
+
"name": "call_context",
|
|
1169
|
+
"type": {
|
|
1170
|
+
"fields": [
|
|
1171
|
+
{
|
|
1172
|
+
"name": "msg_sender",
|
|
1173
|
+
"type": {
|
|
1174
|
+
"fields": [
|
|
1175
|
+
{
|
|
1176
|
+
"name": "inner",
|
|
1177
|
+
"type": {
|
|
1178
|
+
"kind": "field"
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
],
|
|
1182
|
+
"kind": "struct",
|
|
1183
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"name": "contract_address",
|
|
1188
|
+
"type": {
|
|
1189
|
+
"fields": [
|
|
1190
|
+
{
|
|
1191
|
+
"name": "inner",
|
|
1192
|
+
"type": {
|
|
1193
|
+
"kind": "field"
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
],
|
|
1197
|
+
"kind": "struct",
|
|
1198
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"name": "function_selector",
|
|
1203
|
+
"type": {
|
|
1204
|
+
"fields": [
|
|
1205
|
+
{
|
|
1206
|
+
"name": "inner",
|
|
1207
|
+
"type": {
|
|
1208
|
+
"kind": "integer",
|
|
1209
|
+
"sign": "unsigned",
|
|
1210
|
+
"width": 32
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
],
|
|
1214
|
+
"kind": "struct",
|
|
1215
|
+
"path": "aztec::protocol_types::abis::function_selector::FunctionSelector"
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"name": "is_static_call",
|
|
1220
|
+
"type": {
|
|
1221
|
+
"kind": "boolean"
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
],
|
|
1225
|
+
"kind": "struct",
|
|
1226
|
+
"path": "aztec::protocol_types::abis::call_context::CallContext"
|
|
1227
|
+
}
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"name": "args_hash",
|
|
1231
|
+
"type": {
|
|
1232
|
+
"kind": "field"
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"name": "returns_hash",
|
|
1237
|
+
"type": {
|
|
1238
|
+
"kind": "field"
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"name": "start_side_effect_counter",
|
|
1243
|
+
"type": {
|
|
1244
|
+
"kind": "integer",
|
|
1245
|
+
"sign": "unsigned",
|
|
1246
|
+
"width": 32
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"name": "end_side_effect_counter",
|
|
1251
|
+
"type": {
|
|
1252
|
+
"kind": "integer",
|
|
1253
|
+
"sign": "unsigned",
|
|
1254
|
+
"width": 32
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
],
|
|
1258
|
+
"kind": "struct",
|
|
1259
|
+
"path": "aztec::protocol_types::abis::private_call_request::PrivateCallRequest"
|
|
1260
|
+
}
|
|
1217
1261
|
}
|
|
1218
1262
|
},
|
|
1219
1263
|
{
|
|
1220
|
-
"name": "
|
|
1264
|
+
"name": "public_call_requests",
|
|
1221
1265
|
"type": {
|
|
1222
|
-
"
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
+
"kind": "array",
|
|
1267
|
+
"length": 16,
|
|
1268
|
+
"type": {
|
|
1269
|
+
"fields": [
|
|
1270
|
+
{
|
|
1271
|
+
"name": "inner",
|
|
1272
|
+
"type": {
|
|
1273
|
+
"fields": [
|
|
1274
|
+
{
|
|
1275
|
+
"name": "msg_sender",
|
|
1276
|
+
"type": {
|
|
1277
|
+
"fields": [
|
|
1278
|
+
{
|
|
1279
|
+
"name": "inner",
|
|
1280
|
+
"type": {
|
|
1281
|
+
"kind": "field"
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
1285
|
+
"kind": "struct",
|
|
1286
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"name": "contract_address",
|
|
1291
|
+
"type": {
|
|
1292
|
+
"fields": [
|
|
1293
|
+
{
|
|
1294
|
+
"name": "inner",
|
|
1295
|
+
"type": {
|
|
1296
|
+
"kind": "field"
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
],
|
|
1300
|
+
"kind": "struct",
|
|
1301
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"name": "function_selector",
|
|
1306
|
+
"type": {
|
|
1307
|
+
"fields": [
|
|
1308
|
+
{
|
|
1309
|
+
"name": "inner",
|
|
1310
|
+
"type": {
|
|
1311
|
+
"kind": "integer",
|
|
1312
|
+
"sign": "unsigned",
|
|
1313
|
+
"width": 32
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
],
|
|
1317
|
+
"kind": "struct",
|
|
1318
|
+
"path": "aztec::protocol_types::abis::function_selector::FunctionSelector"
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"name": "is_static_call",
|
|
1323
|
+
"type": {
|
|
1324
|
+
"kind": "boolean"
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "args_hash",
|
|
1329
|
+
"type": {
|
|
1330
|
+
"kind": "field"
|
|
1331
|
+
}
|
|
1266
1332
|
}
|
|
1267
|
-
|
|
1333
|
+
],
|
|
1334
|
+
"kind": "struct",
|
|
1335
|
+
"path": "aztec::protocol_types::abis::public_call_request::PublicCallRequest"
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"name": "counter",
|
|
1340
|
+
"type": {
|
|
1341
|
+
"kind": "integer",
|
|
1342
|
+
"sign": "unsigned",
|
|
1343
|
+
"width": 32
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
],
|
|
1347
|
+
"kind": "struct",
|
|
1348
|
+
"path": "aztec::protocol_types::abis::side_effect::counted::Counted"
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"name": "public_teardown_call_request",
|
|
1354
|
+
"type": {
|
|
1355
|
+
"fields": [
|
|
1356
|
+
{
|
|
1357
|
+
"name": "msg_sender",
|
|
1358
|
+
"type": {
|
|
1359
|
+
"fields": [
|
|
1268
1360
|
{
|
|
1269
|
-
"name": "
|
|
1361
|
+
"name": "inner",
|
|
1270
1362
|
"type": {
|
|
1271
1363
|
"kind": "field"
|
|
1272
1364
|
}
|
|
1273
1365
|
}
|
|
1274
1366
|
],
|
|
1275
1367
|
"kind": "struct",
|
|
1276
|
-
"path": "aztec::protocol_types::
|
|
1368
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
1277
1369
|
}
|
|
1278
1370
|
},
|
|
1279
1371
|
{
|
|
1280
|
-
"name": "
|
|
1372
|
+
"name": "contract_address",
|
|
1281
1373
|
"type": {
|
|
1282
1374
|
"fields": [
|
|
1283
1375
|
{
|
|
1284
|
-
"name": "
|
|
1285
|
-
"type": {
|
|
1286
|
-
"fields": [
|
|
1287
|
-
{
|
|
1288
|
-
"name": "root",
|
|
1289
|
-
"type": {
|
|
1290
|
-
"kind": "field"
|
|
1291
|
-
}
|
|
1292
|
-
},
|
|
1293
|
-
{
|
|
1294
|
-
"name": "next_available_leaf_index",
|
|
1295
|
-
"type": {
|
|
1296
|
-
"kind": "integer",
|
|
1297
|
-
"sign": "unsigned",
|
|
1298
|
-
"width": 32
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
],
|
|
1302
|
-
"kind": "struct",
|
|
1303
|
-
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
1304
|
-
}
|
|
1305
|
-
},
|
|
1306
|
-
{
|
|
1307
|
-
"name": "partial",
|
|
1376
|
+
"name": "inner",
|
|
1308
1377
|
"type": {
|
|
1309
|
-
"
|
|
1310
|
-
{
|
|
1311
|
-
"name": "note_hash_tree",
|
|
1312
|
-
"type": {
|
|
1313
|
-
"fields": [
|
|
1314
|
-
{
|
|
1315
|
-
"name": "root",
|
|
1316
|
-
"type": {
|
|
1317
|
-
"kind": "field"
|
|
1318
|
-
}
|
|
1319
|
-
},
|
|
1320
|
-
{
|
|
1321
|
-
"name": "next_available_leaf_index",
|
|
1322
|
-
"type": {
|
|
1323
|
-
"kind": "integer",
|
|
1324
|
-
"sign": "unsigned",
|
|
1325
|
-
"width": 32
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
],
|
|
1329
|
-
"kind": "struct",
|
|
1330
|
-
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
1331
|
-
}
|
|
1332
|
-
},
|
|
1333
|
-
{
|
|
1334
|
-
"name": "nullifier_tree",
|
|
1335
|
-
"type": {
|
|
1336
|
-
"fields": [
|
|
1337
|
-
{
|
|
1338
|
-
"name": "root",
|
|
1339
|
-
"type": {
|
|
1340
|
-
"kind": "field"
|
|
1341
|
-
}
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
"name": "next_available_leaf_index",
|
|
1345
|
-
"type": {
|
|
1346
|
-
"kind": "integer",
|
|
1347
|
-
"sign": "unsigned",
|
|
1348
|
-
"width": 32
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
],
|
|
1352
|
-
"kind": "struct",
|
|
1353
|
-
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
1354
|
-
}
|
|
1355
|
-
},
|
|
1356
|
-
{
|
|
1357
|
-
"name": "public_data_tree",
|
|
1358
|
-
"type": {
|
|
1359
|
-
"fields": [
|
|
1360
|
-
{
|
|
1361
|
-
"name": "root",
|
|
1362
|
-
"type": {
|
|
1363
|
-
"kind": "field"
|
|
1364
|
-
}
|
|
1365
|
-
},
|
|
1366
|
-
{
|
|
1367
|
-
"name": "next_available_leaf_index",
|
|
1368
|
-
"type": {
|
|
1369
|
-
"kind": "integer",
|
|
1370
|
-
"sign": "unsigned",
|
|
1371
|
-
"width": 32
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
],
|
|
1375
|
-
"kind": "struct",
|
|
1376
|
-
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
],
|
|
1380
|
-
"kind": "struct",
|
|
1381
|
-
"path": "aztec::protocol_types::partial_state_reference::PartialStateReference"
|
|
1378
|
+
"kind": "field"
|
|
1382
1379
|
}
|
|
1383
1380
|
}
|
|
1384
1381
|
],
|
|
1385
1382
|
"kind": "struct",
|
|
1386
|
-
"path": "aztec::protocol_types::
|
|
1383
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
1387
1384
|
}
|
|
1388
1385
|
},
|
|
1389
1386
|
{
|
|
1390
|
-
"name": "
|
|
1387
|
+
"name": "function_selector",
|
|
1391
1388
|
"type": {
|
|
1392
1389
|
"fields": [
|
|
1393
1390
|
{
|
|
1394
|
-
"name": "
|
|
1395
|
-
"type": {
|
|
1396
|
-
"kind": "field"
|
|
1397
|
-
}
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
"name": "version",
|
|
1401
|
-
"type": {
|
|
1402
|
-
"kind": "field"
|
|
1403
|
-
}
|
|
1404
|
-
},
|
|
1405
|
-
{
|
|
1406
|
-
"name": "block_number",
|
|
1407
|
-
"type": {
|
|
1408
|
-
"kind": "field"
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
{
|
|
1412
|
-
"name": "slot_number",
|
|
1413
|
-
"type": {
|
|
1414
|
-
"kind": "field"
|
|
1415
|
-
}
|
|
1416
|
-
},
|
|
1417
|
-
{
|
|
1418
|
-
"name": "timestamp",
|
|
1391
|
+
"name": "inner",
|
|
1419
1392
|
"type": {
|
|
1420
1393
|
"kind": "integer",
|
|
1421
1394
|
"sign": "unsigned",
|
|
1422
|
-
"width":
|
|
1423
|
-
}
|
|
1424
|
-
},
|
|
1425
|
-
{
|
|
1426
|
-
"name": "coinbase",
|
|
1427
|
-
"type": {
|
|
1428
|
-
"fields": [
|
|
1429
|
-
{
|
|
1430
|
-
"name": "inner",
|
|
1431
|
-
"type": {
|
|
1432
|
-
"kind": "field"
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1435
|
-
],
|
|
1436
|
-
"kind": "struct",
|
|
1437
|
-
"path": "aztec::protocol_types::address::eth_address::EthAddress"
|
|
1438
|
-
}
|
|
1439
|
-
},
|
|
1440
|
-
{
|
|
1441
|
-
"name": "fee_recipient",
|
|
1442
|
-
"type": {
|
|
1443
|
-
"fields": [
|
|
1444
|
-
{
|
|
1445
|
-
"name": "inner",
|
|
1446
|
-
"type": {
|
|
1447
|
-
"kind": "field"
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
],
|
|
1451
|
-
"kind": "struct",
|
|
1452
|
-
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
1453
|
-
}
|
|
1454
|
-
},
|
|
1455
|
-
{
|
|
1456
|
-
"name": "gas_fees",
|
|
1457
|
-
"type": {
|
|
1458
|
-
"fields": [
|
|
1459
|
-
{
|
|
1460
|
-
"name": "fee_per_da_gas",
|
|
1461
|
-
"type": {
|
|
1462
|
-
"kind": "field"
|
|
1463
|
-
}
|
|
1464
|
-
},
|
|
1465
|
-
{
|
|
1466
|
-
"name": "fee_per_l2_gas",
|
|
1467
|
-
"type": {
|
|
1468
|
-
"kind": "field"
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
],
|
|
1472
|
-
"kind": "struct",
|
|
1473
|
-
"path": "aztec::protocol_types::abis::gas_fees::GasFees"
|
|
1395
|
+
"width": 32
|
|
1474
1396
|
}
|
|
1475
1397
|
}
|
|
1476
1398
|
],
|
|
1477
1399
|
"kind": "struct",
|
|
1478
|
-
"path": "aztec::protocol_types::abis::
|
|
1400
|
+
"path": "aztec::protocol_types::abis::function_selector::FunctionSelector"
|
|
1479
1401
|
}
|
|
1480
1402
|
},
|
|
1481
1403
|
{
|
|
1482
|
-
"name": "
|
|
1404
|
+
"name": "is_static_call",
|
|
1483
1405
|
"type": {
|
|
1484
|
-
"kind": "
|
|
1406
|
+
"kind": "boolean"
|
|
1485
1407
|
}
|
|
1486
1408
|
},
|
|
1487
1409
|
{
|
|
1488
|
-
"name": "
|
|
1410
|
+
"name": "args_hash",
|
|
1489
1411
|
"type": {
|
|
1490
1412
|
"kind": "field"
|
|
1491
1413
|
}
|
|
1492
1414
|
}
|
|
1493
1415
|
],
|
|
1494
1416
|
"kind": "struct",
|
|
1495
|
-
"path": "aztec::protocol_types::
|
|
1417
|
+
"path": "aztec::protocol_types::abis::public_call_request::PublicCallRequest"
|
|
1496
1418
|
}
|
|
1497
1419
|
},
|
|
1498
1420
|
{
|
|
1499
|
-
"name": "
|
|
1421
|
+
"name": "l2_to_l1_msgs",
|
|
1422
|
+
"type": {
|
|
1423
|
+
"kind": "array",
|
|
1424
|
+
"length": 2,
|
|
1425
|
+
"type": {
|
|
1426
|
+
"fields": [
|
|
1427
|
+
{
|
|
1428
|
+
"name": "recipient",
|
|
1429
|
+
"type": {
|
|
1430
|
+
"fields": [
|
|
1431
|
+
{
|
|
1432
|
+
"name": "inner",
|
|
1433
|
+
"type": {
|
|
1434
|
+
"kind": "field"
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
],
|
|
1438
|
+
"kind": "struct",
|
|
1439
|
+
"path": "aztec::protocol_types::address::eth_address::EthAddress"
|
|
1440
|
+
}
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
"name": "content",
|
|
1444
|
+
"type": {
|
|
1445
|
+
"kind": "field"
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "counter",
|
|
1450
|
+
"type": {
|
|
1451
|
+
"kind": "integer",
|
|
1452
|
+
"sign": "unsigned",
|
|
1453
|
+
"width": 32
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
],
|
|
1457
|
+
"kind": "struct",
|
|
1458
|
+
"path": "aztec::protocol_types::messaging::l2_to_l1_message::L2ToL1Message"
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"name": "private_logs",
|
|
1464
|
+
"type": {
|
|
1465
|
+
"kind": "array",
|
|
1466
|
+
"length": 16,
|
|
1467
|
+
"type": {
|
|
1468
|
+
"fields": [
|
|
1469
|
+
{
|
|
1470
|
+
"name": "log",
|
|
1471
|
+
"type": {
|
|
1472
|
+
"fields": [
|
|
1473
|
+
{
|
|
1474
|
+
"name": "fields",
|
|
1475
|
+
"type": {
|
|
1476
|
+
"kind": "array",
|
|
1477
|
+
"length": 18,
|
|
1478
|
+
"type": {
|
|
1479
|
+
"kind": "field"
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"kind": "struct",
|
|
1485
|
+
"path": "aztec::protocol_types::abis::log::Log"
|
|
1486
|
+
}
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"name": "note_hash_counter",
|
|
1490
|
+
"type": {
|
|
1491
|
+
"kind": "integer",
|
|
1492
|
+
"sign": "unsigned",
|
|
1493
|
+
"width": 32
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
"name": "counter",
|
|
1498
|
+
"type": {
|
|
1499
|
+
"kind": "integer",
|
|
1500
|
+
"sign": "unsigned",
|
|
1501
|
+
"width": 32
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
],
|
|
1505
|
+
"kind": "struct",
|
|
1506
|
+
"path": "aztec::protocol_types::abis::private_log::PrivateLogData"
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"name": "contract_class_logs_hashes",
|
|
1512
|
+
"type": {
|
|
1513
|
+
"kind": "array",
|
|
1514
|
+
"length": 1,
|
|
1515
|
+
"type": {
|
|
1516
|
+
"fields": [
|
|
1517
|
+
{
|
|
1518
|
+
"name": "value",
|
|
1519
|
+
"type": {
|
|
1520
|
+
"kind": "field"
|
|
1521
|
+
}
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"name": "counter",
|
|
1525
|
+
"type": {
|
|
1526
|
+
"kind": "integer",
|
|
1527
|
+
"sign": "unsigned",
|
|
1528
|
+
"width": 32
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
"name": "length",
|
|
1533
|
+
"type": {
|
|
1534
|
+
"kind": "field"
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
],
|
|
1538
|
+
"kind": "struct",
|
|
1539
|
+
"path": "aztec::protocol_types::abis::log_hash::LogHash"
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"name": "start_side_effect_counter",
|
|
1545
|
+
"type": {
|
|
1546
|
+
"kind": "integer",
|
|
1547
|
+
"sign": "unsigned",
|
|
1548
|
+
"width": 32
|
|
1549
|
+
}
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"name": "end_side_effect_counter",
|
|
1553
|
+
"type": {
|
|
1554
|
+
"kind": "integer",
|
|
1555
|
+
"sign": "unsigned",
|
|
1556
|
+
"width": 32
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"name": "historical_header",
|
|
1500
1561
|
"type": {
|
|
1501
1562
|
"fields": [
|
|
1502
1563
|
{
|
|
1503
|
-
"name": "
|
|
1564
|
+
"name": "last_archive",
|
|
1504
1565
|
"type": {
|
|
1505
|
-
"
|
|
1566
|
+
"fields": [
|
|
1567
|
+
{
|
|
1568
|
+
"name": "root",
|
|
1569
|
+
"type": {
|
|
1570
|
+
"kind": "field"
|
|
1571
|
+
}
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
"name": "next_available_leaf_index",
|
|
1575
|
+
"type": {
|
|
1576
|
+
"kind": "integer",
|
|
1577
|
+
"sign": "unsigned",
|
|
1578
|
+
"width": 32
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
],
|
|
1582
|
+
"kind": "struct",
|
|
1583
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
1506
1584
|
}
|
|
1507
1585
|
},
|
|
1508
1586
|
{
|
|
1509
|
-
"name": "
|
|
1587
|
+
"name": "content_commitment",
|
|
1510
1588
|
"type": {
|
|
1511
|
-
"
|
|
1589
|
+
"fields": [
|
|
1590
|
+
{
|
|
1591
|
+
"name": "num_txs",
|
|
1592
|
+
"type": {
|
|
1593
|
+
"kind": "field"
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"name": "blobs_hash",
|
|
1598
|
+
"type": {
|
|
1599
|
+
"kind": "field"
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"name": "in_hash",
|
|
1604
|
+
"type": {
|
|
1605
|
+
"kind": "field"
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"name": "out_hash",
|
|
1610
|
+
"type": {
|
|
1611
|
+
"kind": "field"
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
],
|
|
1615
|
+
"kind": "struct",
|
|
1616
|
+
"path": "aztec::protocol_types::content_commitment::ContentCommitment"
|
|
1512
1617
|
}
|
|
1513
1618
|
},
|
|
1514
1619
|
{
|
|
1515
|
-
"name": "
|
|
1620
|
+
"name": "state",
|
|
1516
1621
|
"type": {
|
|
1517
1622
|
"fields": [
|
|
1518
1623
|
{
|
|
1519
|
-
"name": "
|
|
1624
|
+
"name": "l1_to_l2_message_tree",
|
|
1520
1625
|
"type": {
|
|
1521
1626
|
"fields": [
|
|
1522
1627
|
{
|
|
1523
|
-
"name": "
|
|
1628
|
+
"name": "root",
|
|
1524
1629
|
"type": {
|
|
1525
|
-
"kind": "
|
|
1526
|
-
"sign": "unsigned",
|
|
1527
|
-
"width": 32
|
|
1630
|
+
"kind": "field"
|
|
1528
1631
|
}
|
|
1529
1632
|
},
|
|
1530
1633
|
{
|
|
1531
|
-
"name": "
|
|
1634
|
+
"name": "next_available_leaf_index",
|
|
1532
1635
|
"type": {
|
|
1533
1636
|
"kind": "integer",
|
|
1534
1637
|
"sign": "unsigned",
|
|
@@ -1537,57 +1640,160 @@
|
|
|
1537
1640
|
}
|
|
1538
1641
|
],
|
|
1539
1642
|
"kind": "struct",
|
|
1540
|
-
"path": "aztec::protocol_types::abis::
|
|
1643
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
1541
1644
|
}
|
|
1542
1645
|
},
|
|
1543
1646
|
{
|
|
1544
|
-
"name": "
|
|
1647
|
+
"name": "partial",
|
|
1545
1648
|
"type": {
|
|
1546
1649
|
"fields": [
|
|
1547
1650
|
{
|
|
1548
|
-
"name": "
|
|
1549
|
-
"type": {
|
|
1550
|
-
"kind": "integer",
|
|
1551
|
-
"sign": "unsigned",
|
|
1552
|
-
"width": 32
|
|
1553
|
-
}
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
"name": "l2_gas",
|
|
1651
|
+
"name": "note_hash_tree",
|
|
1557
1652
|
"type": {
|
|
1558
|
-
"
|
|
1559
|
-
|
|
1560
|
-
|
|
1653
|
+
"fields": [
|
|
1654
|
+
{
|
|
1655
|
+
"name": "root",
|
|
1656
|
+
"type": {
|
|
1657
|
+
"kind": "field"
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"name": "next_available_leaf_index",
|
|
1662
|
+
"type": {
|
|
1663
|
+
"kind": "integer",
|
|
1664
|
+
"sign": "unsigned",
|
|
1665
|
+
"width": 32
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
],
|
|
1669
|
+
"kind": "struct",
|
|
1670
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"name": "nullifier_tree",
|
|
1675
|
+
"type": {
|
|
1676
|
+
"fields": [
|
|
1677
|
+
{
|
|
1678
|
+
"name": "root",
|
|
1679
|
+
"type": {
|
|
1680
|
+
"kind": "field"
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
"name": "next_available_leaf_index",
|
|
1685
|
+
"type": {
|
|
1686
|
+
"kind": "integer",
|
|
1687
|
+
"sign": "unsigned",
|
|
1688
|
+
"width": 32
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
],
|
|
1692
|
+
"kind": "struct",
|
|
1693
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"name": "public_data_tree",
|
|
1698
|
+
"type": {
|
|
1699
|
+
"fields": [
|
|
1700
|
+
{
|
|
1701
|
+
"name": "root",
|
|
1702
|
+
"type": {
|
|
1703
|
+
"kind": "field"
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"name": "next_available_leaf_index",
|
|
1708
|
+
"type": {
|
|
1709
|
+
"kind": "integer",
|
|
1710
|
+
"sign": "unsigned",
|
|
1711
|
+
"width": 32
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
],
|
|
1715
|
+
"kind": "struct",
|
|
1716
|
+
"path": "aztec::protocol_types::abis::append_only_tree_snapshot::AppendOnlyTreeSnapshot"
|
|
1561
1717
|
}
|
|
1562
1718
|
}
|
|
1563
1719
|
],
|
|
1564
1720
|
"kind": "struct",
|
|
1565
|
-
"path": "aztec::protocol_types::
|
|
1721
|
+
"path": "aztec::protocol_types::partial_state_reference::PartialStateReference"
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
],
|
|
1725
|
+
"kind": "struct",
|
|
1726
|
+
"path": "aztec::protocol_types::state_reference::StateReference"
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
"name": "global_variables",
|
|
1731
|
+
"type": {
|
|
1732
|
+
"fields": [
|
|
1733
|
+
{
|
|
1734
|
+
"name": "chain_id",
|
|
1735
|
+
"type": {
|
|
1736
|
+
"kind": "field"
|
|
1566
1737
|
}
|
|
1567
1738
|
},
|
|
1568
1739
|
{
|
|
1569
|
-
"name": "
|
|
1740
|
+
"name": "version",
|
|
1741
|
+
"type": {
|
|
1742
|
+
"kind": "field"
|
|
1743
|
+
}
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "block_number",
|
|
1747
|
+
"type": {
|
|
1748
|
+
"kind": "field"
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"name": "slot_number",
|
|
1753
|
+
"type": {
|
|
1754
|
+
"kind": "field"
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"name": "timestamp",
|
|
1759
|
+
"type": {
|
|
1760
|
+
"kind": "integer",
|
|
1761
|
+
"sign": "unsigned",
|
|
1762
|
+
"width": 64
|
|
1763
|
+
}
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"name": "coinbase",
|
|
1570
1767
|
"type": {
|
|
1571
1768
|
"fields": [
|
|
1572
1769
|
{
|
|
1573
|
-
"name": "
|
|
1770
|
+
"name": "inner",
|
|
1574
1771
|
"type": {
|
|
1575
1772
|
"kind": "field"
|
|
1576
1773
|
}
|
|
1577
|
-
}
|
|
1774
|
+
}
|
|
1775
|
+
],
|
|
1776
|
+
"kind": "struct",
|
|
1777
|
+
"path": "aztec::protocol_types::address::eth_address::EthAddress"
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
"name": "fee_recipient",
|
|
1782
|
+
"type": {
|
|
1783
|
+
"fields": [
|
|
1578
1784
|
{
|
|
1579
|
-
"name": "
|
|
1785
|
+
"name": "inner",
|
|
1580
1786
|
"type": {
|
|
1581
1787
|
"kind": "field"
|
|
1582
1788
|
}
|
|
1583
1789
|
}
|
|
1584
1790
|
],
|
|
1585
1791
|
"kind": "struct",
|
|
1586
|
-
"path": "aztec::protocol_types::
|
|
1792
|
+
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
1587
1793
|
}
|
|
1588
1794
|
},
|
|
1589
1795
|
{
|
|
1590
|
-
"name": "
|
|
1796
|
+
"name": "gas_fees",
|
|
1591
1797
|
"type": {
|
|
1592
1798
|
"fields": [
|
|
1593
1799
|
{
|
|
@@ -1609,440 +1815,162 @@
|
|
|
1609
1815
|
}
|
|
1610
1816
|
],
|
|
1611
1817
|
"kind": "struct",
|
|
1612
|
-
"path": "aztec::protocol_types::abis::
|
|
1818
|
+
"path": "aztec::protocol_types::abis::global_variables::GlobalVariables"
|
|
1819
|
+
}
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"name": "total_fees",
|
|
1823
|
+
"type": {
|
|
1824
|
+
"kind": "field"
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
"name": "total_mana_used",
|
|
1829
|
+
"type": {
|
|
1830
|
+
"kind": "field"
|
|
1613
1831
|
}
|
|
1614
1832
|
}
|
|
1615
1833
|
],
|
|
1616
1834
|
"kind": "struct",
|
|
1617
|
-
"path": "aztec::protocol_types::
|
|
1835
|
+
"path": "aztec::protocol_types::block_header::BlockHeader"
|
|
1618
1836
|
}
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
1737
|
-
},
|
|
1738
|
-
"visibility": "private"
|
|
1739
|
-
},
|
|
1740
|
-
{
|
|
1741
|
-
"name": "nonce",
|
|
1742
|
-
"type": {
|
|
1743
|
-
"kind": "field"
|
|
1744
|
-
},
|
|
1745
|
-
"visibility": "private"
|
|
1746
|
-
},
|
|
1747
|
-
{
|
|
1748
|
-
"name": "storage_slot",
|
|
1749
|
-
"type": {
|
|
1750
|
-
"kind": "field"
|
|
1751
|
-
},
|
|
1752
|
-
"visibility": "private"
|
|
1753
|
-
},
|
|
1754
|
-
{
|
|
1755
|
-
"name": "note_type_id",
|
|
1756
|
-
"type": {
|
|
1757
|
-
"kind": "field"
|
|
1758
|
-
},
|
|
1759
|
-
"visibility": "private"
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
"name": "compute_nullifier",
|
|
1763
|
-
"type": {
|
|
1764
|
-
"kind": "boolean"
|
|
1765
|
-
},
|
|
1766
|
-
"visibility": "private"
|
|
1767
|
-
},
|
|
1768
|
-
{
|
|
1769
|
-
"name": "serialized_note",
|
|
1770
|
-
"type": {
|
|
1771
|
-
"kind": "array",
|
|
1772
|
-
"length": 0,
|
|
1773
|
-
"type": {
|
|
1774
|
-
"kind": "field"
|
|
1775
|
-
}
|
|
1776
|
-
},
|
|
1777
|
-
"visibility": "private"
|
|
1778
|
-
}
|
|
1779
|
-
],
|
|
1780
|
-
"return_type": {
|
|
1781
|
-
"abi_type": {
|
|
1782
|
-
"kind": "array",
|
|
1783
|
-
"length": 4,
|
|
1784
|
-
"type": {
|
|
1785
|
-
"kind": "field"
|
|
1786
|
-
}
|
|
1787
|
-
},
|
|
1788
|
-
"visibility": "public"
|
|
1789
|
-
}
|
|
1790
|
-
},
|
|
1791
|
-
"bytecode": "H4sIAAAAAAAA/9VZ227aQBBdsI2xiYHCH0TqWyvZhOsbUi/5DpTAF/QD/NCX9qvLih37MExUJGaisFK0Zmd95uyZ2Ys3HXcq/eNfJzzHoe65y0J9tqEubyuVIlZpybNzJzy7d8IzuhOesSLPjsDT1zTfEneac6k7zcemEV/yAY7gJfc/AHD2N9RZqLtgVwxIlQ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y2MpqoC2gS0BdCWQFsBbQ20a6BtgHYDtIG5JGAuCZhLAuaSgLkkYC4JmEt6N5f2t7Ns7wtukHiDxC0QFxUSJyQukLhE4gqJaySOTKhAJlQgEypgCT1K9eVycF309+lr3FL/MIyt37N/msvmPPV+2LI/J7T/4ew80lJxpW73fSlICk7SlEXKQj8=",
|
|
1793
|
-
"brillig_names": [
|
|
1794
|
-
"compute_note_hash_and_optionally_a_nullifier"
|
|
1795
|
-
]
|
|
1796
|
-
},
|
|
1797
|
-
{
|
|
1798
|
-
"name": "_check_timestamp",
|
|
1799
|
-
"is_unconstrained": true,
|
|
1800
|
-
"custom_attributes": [
|
|
1801
|
-
"public",
|
|
1802
|
-
"internal",
|
|
1803
|
-
"view"
|
|
1804
|
-
],
|
|
1805
|
-
"abi": {
|
|
1806
|
-
"error_types": {
|
|
1807
|
-
"11405868724477732285": {
|
|
1808
|
-
"error_kind": "string",
|
|
1809
|
-
"string": "Function _check_timestamp can only be called internally"
|
|
1810
|
-
},
|
|
1811
|
-
"13418685691864489983": {
|
|
1812
|
-
"error_kind": "string",
|
|
1813
|
-
"string": "Function _check_timestamp can only be called statically"
|
|
1814
|
-
},
|
|
1815
|
-
"1433889167918961673": {
|
|
1816
|
-
"error_kind": "fmtstring",
|
|
1817
|
-
"item_types": [],
|
|
1818
|
-
"length": 17
|
|
1819
|
-
},
|
|
1820
|
-
"17843811134343075018": {
|
|
1821
|
-
"error_kind": "string",
|
|
1822
|
-
"string": "Stack too deep"
|
|
1823
|
-
},
|
|
1824
|
-
"8443716675528357851": {
|
|
1825
|
-
"error_kind": "string",
|
|
1826
|
-
"string": "Timestamp mismatch."
|
|
1827
|
-
}
|
|
1828
|
-
},
|
|
1829
|
-
"parameters": [
|
|
1830
|
-
{
|
|
1831
|
-
"name": "operation",
|
|
1832
|
-
"type": {
|
|
1833
|
-
"kind": "integer",
|
|
1834
|
-
"sign": "unsigned",
|
|
1835
|
-
"width": 8
|
|
1836
|
-
},
|
|
1837
|
-
"visibility": "private"
|
|
1838
|
-
},
|
|
1839
|
-
{
|
|
1840
|
-
"name": "value",
|
|
1841
|
-
"type": {
|
|
1842
|
-
"kind": "integer",
|
|
1843
|
-
"sign": "unsigned",
|
|
1844
|
-
"width": 64
|
|
1845
|
-
},
|
|
1846
|
-
"visibility": "private"
|
|
1847
|
-
}
|
|
1848
|
-
],
|
|
1849
|
-
"return_type": null
|
|
1850
|
-
},
|
|
1851
|
-
"bytecode": "JgACBAEnAAABBIBFJgAABAMmAgMEAiYCBAQAHxgABAADgEMdAIBDgEMCHQCARIBEBS0IgEMAAS0IgEQAAiQAAABUJwIAAQSARSYCAgQAOg0AAQACJAAAAy4eAgAEAR4CAAUACjgEBQYjAgAGAAAAdSQAAANXHgIABAkmAgUAAQo4BAUGIwIABgAAAJEkAAADaR4CAAQGHAwEBQAcDAIEAAo4BQQCDDgFBAYmAgQCAQo4AQQFJgIEAQEjAgAFAAADFyIAAADGJgIHAgIKOAEHCBYMAgcjAgAIAAADBSIAAADhJgIJAgMKOAEJCiMCAAoAAALzIgAAAPgmAgoCBAo4AQoLIwIACwAAAtwiAAABDyYCCgIFCjgBCgsWDAYKIwIACwAAAsUiAAABKiYCBwIGCjgBBwsjAgALAAACsyIAAAFBJgIBAmQmAgcCYSYCCgJJJgILAnAmAgwCciYCDQJvJgIOAmkmAg8CdiYCEAJlJgIRAiAmAhICbCYCEwJuJgIUAnQsCAEVJgIWBBIAEAEWASYDFQQBACgVAhYsDBYXLA4KFwAoFwIXLA4TFwAoFwIXLA4PFwAoFwIXLA4HFwAoFwIXLA4SFwAoFwIXLA4OFwAoFwIXLA4BFwAoFwIXLA4RFwAoFwIXLA4NFwAoFwIXLA4LFwAoFwIXLA4QFwAoFwIXLA4MFwAoFwIXLA4HFwAoFwIXLA4UFwAoFwIXLA4OFwAoFwIXLA4NFwAoFwIXLA4TFyYCAQQAJgIHAQAKOAcECiMCAAoAAAKqJgILBBMsCAEMJgINBBMAEAENASwMDA0pAwANBRPmMpnl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J0BozMQdAaCzkDRGSg6A0NnYOgM0OU6RHQGidAAggXIu3o0ADoDh87AMRoAvKtgH9AABgb44c3GhADgUsHohz4z2miCNpqgjSYJDKBooym6VBjaaIYuFehdBaN3FYzeVTB8V5HARhNiNADYaOICGgBsNPEeDQA2mqBfJUgAG02Y0ABoozG6VAjaaIIuFTreaJHLm998lvYNYIBMOcy0w0GA+C8mVgsTq0YTq0aTKLUwmWAHMxUTroZJqoRJPnqvhkmshckE5yJTMdFamIRqNAnVaMK1PHeUq/GOVFNPpJoaq9VootVoYqEaJrV4x2iCnz/cDd+/1WETvDnXjr/G3qW1+OsTpM9Ov52A24/c+jvfLuf3q8X+8u7T2/rh6C7v7t/L4uRa78t287B4fNsu2gu+h7u97Tp0OSkX/W17M7VtKs2cSttsn3ouhvytZNSM/B8=",
|
|
1853
|
-
"brillig_names": [
|
|
1854
|
-
"_check_timestamp"
|
|
1855
|
-
]
|
|
1856
|
-
},
|
|
1857
|
-
{
|
|
1858
|
-
"name": "_check_block_number",
|
|
1859
|
-
"is_unconstrained": true,
|
|
1860
|
-
"custom_attributes": [
|
|
1861
|
-
"public",
|
|
1862
|
-
"internal",
|
|
1863
|
-
"view"
|
|
1864
|
-
],
|
|
1865
|
-
"abi": {
|
|
1866
|
-
"error_types": {
|
|
1867
|
-
"10421965853029650238": {
|
|
1868
|
-
"error_kind": "string",
|
|
1869
|
-
"string": "Function _check_block_number can only be called statically"
|
|
1870
|
-
},
|
|
1871
|
-
"1433889167918961673": {
|
|
1872
|
-
"error_kind": "fmtstring",
|
|
1873
|
-
"item_types": [],
|
|
1874
|
-
"length": 17
|
|
1875
|
-
},
|
|
1876
|
-
"17843811134343075018": {
|
|
1877
|
-
"error_kind": "string",
|
|
1878
|
-
"string": "Stack too deep"
|
|
1879
|
-
},
|
|
1880
|
-
"2242946026394210301": {
|
|
1881
|
-
"error_kind": "string",
|
|
1882
|
-
"string": "Block number mismatch."
|
|
1883
|
-
},
|
|
1884
|
-
"8209322232883590150": {
|
|
1885
|
-
"error_kind": "string",
|
|
1886
|
-
"string": "Function _check_block_number can only be called internally"
|
|
1887
|
-
}
|
|
1888
|
-
},
|
|
1889
|
-
"parameters": [
|
|
1890
|
-
{
|
|
1891
|
-
"name": "operation",
|
|
1892
|
-
"type": {
|
|
1893
|
-
"kind": "integer",
|
|
1894
|
-
"sign": "unsigned",
|
|
1895
|
-
"width": 8
|
|
1896
|
-
},
|
|
1897
|
-
"visibility": "private"
|
|
1898
|
-
},
|
|
1899
|
-
{
|
|
1900
|
-
"name": "value",
|
|
1901
|
-
"type": {
|
|
1902
|
-
"kind": "field"
|
|
1903
|
-
},
|
|
1904
|
-
"visibility": "private"
|
|
1905
|
-
}
|
|
1906
|
-
],
|
|
1907
|
-
"return_type": null
|
|
1908
|
-
},
|
|
1909
|
-
"bytecode": "JgACBAEnAAABBIBFJgAABAMmAgMEAiYCBAQAHxgABAADgEMdAIBDgEMCLQiAQwABLQiARAACJAAAAE0nAgABBIBFJgICBAA6DQABAAIkAAADHR4CAAQBHgIABQAKOAQFBiMCAAYAAABuJAAAA0YeAgAECSYCBQABCjgEBQYjAgAGAAAAiiQAAANYHgIABAUKOAQCBQw4BAIGJgICAgEKOAECBCYCAgEBIwIABAAAAwYiAAAAtSYCBwICCjgBBwgWDAUHIwIACAAAAvQiAAAA0CYCCQIDCjgBCQojAgAKAAAC4iIAAADnJgIKAgQKOAEKCyMCAAsAAALLIgAAAP4mAgoCBQo4AQoLFgwGCiMCAAsAAAK0IgAAARkmAgcCBgo4AQcLIwIACwAAAqIiAAABMCYCAQJvJgIHAmkmAgoCdiYCCwJlJgIMAiAmAg0CbCYCDgJuJgIPAnQmAhACcCYCEQJkJgISAmEmAhMCSSYCFAJyLAgBFSYCFgQSABABFgEmAxUEAQAoFQIWLAwWFywOExcAKBcCFywODhcAKBcCFywOChcAKBcCFywOEhcAKBcCFywODRcAKBcCFywOBxcAKBcCFywOERcAKBcCFywODBcAKBcCFywOARcAKBcCFywOEBcAKBcCF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4jlAwYA0PILYTZ9I7hQQ3PAxkJgB6s4BnsAAGm6REmWA9gAUDBAGD7IkMEBHiCBqtxbRGWCETL4CUCyAHKMBCQzw6Ag8OoKAjiCgIyB0BISOgNERMDoCQUcg6AjQyzUpOoJIaICBAYaOwNARJHQEl44UxgI0P6fQAPCugi+dhYwHEDQAvFQw+qHPAZxoTIQGoBONAxqATjRBLxWCTjRFLxXoXQWjdxWM3lUwelfBhk40Qy8VCZ1oCbxUiHNogKAB4EQT9FGCeHCiSSA0AJxoQgENQCcaezRgeKIZ55Nfiz/PTXvE5NeM8fAiQHYv5ERcMUqK8USL8UStFCUj7GDGUhJLUTLCnmgsJcV4MsIuaxwl6rgYJakUJb4YT3wxnoRSnjtKxeQOlbKeKJeyxioX44kU44loKUq0mNxJI/z84a7781sdcYSTc+30q51dWos3v0FqG9384H/cNqW/09Vs+jyv97dq374WL0eXbNf/PuqT+7Yfq+VL/fq1qtubt4dLt61ir2niY3psr3+2RYmTBt8W/e5bbYrWUBvyfw==",
|
|
1911
|
-
"brillig_names": [
|
|
1912
|
-
"_check_block_number"
|
|
1913
|
-
]
|
|
1914
|
-
},
|
|
1915
|
-
{
|
|
1916
|
-
"name": "sync_notes",
|
|
1917
|
-
"is_unconstrained": true,
|
|
1918
|
-
"custom_attributes": [],
|
|
1919
|
-
"abi": {
|
|
1920
|
-
"error_types": {
|
|
1921
|
-
"17843811134343075018": {
|
|
1922
|
-
"error_kind": "string",
|
|
1923
|
-
"string": "Stack too deep"
|
|
1924
|
-
}
|
|
1925
|
-
},
|
|
1926
|
-
"parameters": [],
|
|
1927
|
-
"return_type": null
|
|
1928
|
-
},
|
|
1929
|
-
"bytecode": "H4sIAAAAAAAA/9VTvQ6CMBBu+YmCMqiJbia+QREMjCbuvkMDMuqAixuPLjXX9FKbMLQ18Uuaa+Hy/ZSDEgUKNSIWkCQHqAnUAL0Px3WGM7NDnmi6LvlrVhaJIZ9D/x9+6sm/gOT3dP9sBjyXQfHjLFJ3Pq4UzYSvzPKb+cy8mci5+kHOEcdM08aghmehoYci3zvYZ4Y+iQVR/3Q0uM9V1YxJvRD4Y/LtHevHWv8WzqnmX9TIwmdX8bwreMdPvG3Lhq81foEA3dM/z8Ie9lOzgDMuiZqN/nVvro/nrScTECRvfuFT84YGAAA=",
|
|
1930
|
-
"debug_symbols": "ndLRCoMgFAbgdznXXXR0ZetVYoSVhSAaZoMRvfssYmujG705+Ivf8eZfoBPNPNRS92aCslpAmZY7abRPy5pAY6VScqjP15BuA3F/P41cb3Fy3DooaUYTELrzpxy976USUOZkfSSAJFjQYHELFlmoIJd/YJoW7DCYIt4+CinbWRbH8jjG4lgRxSheM2T5l92zX7b6+ORW8kaJo279rNtT+9xrFH9FHK1pRTdbsVXy1EY/K2QJIX6tX/0G",
|
|
1931
|
-
"brillig_names": [
|
|
1932
|
-
"sync_notes"
|
|
1933
|
-
]
|
|
1934
|
-
},
|
|
1935
|
-
{
|
|
1936
|
-
"name": "process_log",
|
|
1937
|
-
"is_unconstrained": true,
|
|
1938
|
-
"custom_attributes": [],
|
|
1939
|
-
"abi": {
|
|
1940
|
-
"error_types": {
|
|
1941
|
-
"16541607464495309456": {
|
|
1942
|
-
"error_kind": "fmtstring",
|
|
1943
|
-
"item_types": [],
|
|
1944
|
-
"length": 16
|
|
1945
|
-
},
|
|
1946
|
-
"17843811134343075018": {
|
|
1947
|
-
"error_kind": "string",
|
|
1948
|
-
"string": "Stack too deep"
|
|
1949
|
-
}
|
|
1950
|
-
},
|
|
1951
|
-
"parameters": [
|
|
1952
|
-
{
|
|
1953
|
-
"name": "log_plaintext",
|
|
1954
|
-
"type": {
|
|
1955
|
-
"fields": [
|
|
1956
|
-
{
|
|
1957
|
-
"name": "storage",
|
|
1958
|
-
"type": {
|
|
1959
|
-
"kind": "array",
|
|
1960
|
-
"length": 18,
|
|
1961
|
-
"type": {
|
|
1962
|
-
"kind": "field"
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
},
|
|
1966
|
-
{
|
|
1967
|
-
"name": "len",
|
|
1968
|
-
"type": {
|
|
1969
|
-
"kind": "integer",
|
|
1970
|
-
"sign": "unsigned",
|
|
1971
|
-
"width": 32
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
],
|
|
1975
|
-
"kind": "struct",
|
|
1976
|
-
"path": "std::collections::bounded_vec::BoundedVec"
|
|
1977
|
-
},
|
|
1978
|
-
"visibility": "private"
|
|
1979
|
-
},
|
|
1980
|
-
{
|
|
1981
|
-
"name": "tx_hash",
|
|
1982
|
-
"type": {
|
|
1983
|
-
"kind": "field"
|
|
1984
|
-
},
|
|
1985
|
-
"visibility": "private"
|
|
1986
|
-
},
|
|
1987
|
-
{
|
|
1988
|
-
"name": "unique_note_hashes_in_tx",
|
|
1989
|
-
"type": {
|
|
1990
|
-
"fields": [
|
|
1991
|
-
{
|
|
1992
|
-
"name": "storage",
|
|
1993
|
-
"type": {
|
|
1994
|
-
"kind": "array",
|
|
1995
|
-
"length": 64,
|
|
1996
|
-
"type": {
|
|
1997
|
-
"kind": "field"
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"name": "tx_context",
|
|
1840
|
+
"type": {
|
|
1841
|
+
"fields": [
|
|
1842
|
+
{
|
|
1843
|
+
"name": "chain_id",
|
|
1844
|
+
"type": {
|
|
1845
|
+
"kind": "field"
|
|
1846
|
+
}
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
"name": "version",
|
|
1850
|
+
"type": {
|
|
1851
|
+
"kind": "field"
|
|
1852
|
+
}
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
"name": "gas_settings",
|
|
1856
|
+
"type": {
|
|
1857
|
+
"fields": [
|
|
1858
|
+
{
|
|
1859
|
+
"name": "gas_limits",
|
|
1860
|
+
"type": {
|
|
1861
|
+
"fields": [
|
|
1862
|
+
{
|
|
1863
|
+
"name": "da_gas",
|
|
1864
|
+
"type": {
|
|
1865
|
+
"kind": "integer",
|
|
1866
|
+
"sign": "unsigned",
|
|
1867
|
+
"width": 32
|
|
1868
|
+
}
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
"name": "l2_gas",
|
|
1872
|
+
"type": {
|
|
1873
|
+
"kind": "integer",
|
|
1874
|
+
"sign": "unsigned",
|
|
1875
|
+
"width": 32
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
],
|
|
1879
|
+
"kind": "struct",
|
|
1880
|
+
"path": "aztec::protocol_types::abis::gas::Gas"
|
|
1881
|
+
}
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
"name": "teardown_gas_limits",
|
|
1885
|
+
"type": {
|
|
1886
|
+
"fields": [
|
|
1887
|
+
{
|
|
1888
|
+
"name": "da_gas",
|
|
1889
|
+
"type": {
|
|
1890
|
+
"kind": "integer",
|
|
1891
|
+
"sign": "unsigned",
|
|
1892
|
+
"width": 32
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
"name": "l2_gas",
|
|
1897
|
+
"type": {
|
|
1898
|
+
"kind": "integer",
|
|
1899
|
+
"sign": "unsigned",
|
|
1900
|
+
"width": 32
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
],
|
|
1904
|
+
"kind": "struct",
|
|
1905
|
+
"path": "aztec::protocol_types::abis::gas::Gas"
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
"name": "max_fees_per_gas",
|
|
1910
|
+
"type": {
|
|
1911
|
+
"fields": [
|
|
1912
|
+
{
|
|
1913
|
+
"name": "fee_per_da_gas",
|
|
1914
|
+
"type": {
|
|
1915
|
+
"kind": "field"
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
"name": "fee_per_l2_gas",
|
|
1920
|
+
"type": {
|
|
1921
|
+
"kind": "field"
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
],
|
|
1925
|
+
"kind": "struct",
|
|
1926
|
+
"path": "aztec::protocol_types::abis::gas_fees::GasFees"
|
|
1927
|
+
}
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
"name": "max_priority_fees_per_gas",
|
|
1931
|
+
"type": {
|
|
1932
|
+
"fields": [
|
|
1933
|
+
{
|
|
1934
|
+
"name": "fee_per_da_gas",
|
|
1935
|
+
"type": {
|
|
1936
|
+
"kind": "field"
|
|
1937
|
+
}
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
"name": "fee_per_l2_gas",
|
|
1941
|
+
"type": {
|
|
1942
|
+
"kind": "field"
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
],
|
|
1946
|
+
"kind": "struct",
|
|
1947
|
+
"path": "aztec::protocol_types::abis::gas_fees::GasFees"
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
],
|
|
1951
|
+
"kind": "struct",
|
|
1952
|
+
"path": "aztec::protocol_types::abis::gas_settings::GasSettings"
|
|
1953
|
+
}
|
|
1998
1954
|
}
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
"name": "len",
|
|
2003
|
-
"type": {
|
|
2004
|
-
"kind": "integer",
|
|
2005
|
-
"sign": "unsigned",
|
|
2006
|
-
"width": 32
|
|
2007
|
-
}
|
|
1955
|
+
],
|
|
1956
|
+
"kind": "struct",
|
|
1957
|
+
"path": "aztec::protocol_types::transaction::tx_context::TxContext"
|
|
2008
1958
|
}
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
"visibility": "private"
|
|
2014
|
-
},
|
|
2015
|
-
{
|
|
2016
|
-
"name": "first_nullifier_in_tx",
|
|
2017
|
-
"type": {
|
|
2018
|
-
"kind": "field"
|
|
2019
|
-
},
|
|
2020
|
-
"visibility": "private"
|
|
1959
|
+
}
|
|
1960
|
+
],
|
|
1961
|
+
"kind": "struct",
|
|
1962
|
+
"path": "aztec::protocol_types::abis::private_circuit_public_inputs::PrivateCircuitPublicInputs"
|
|
2021
1963
|
},
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
"type": {
|
|
2025
|
-
"fields": [
|
|
2026
|
-
{
|
|
2027
|
-
"name": "inner",
|
|
2028
|
-
"type": {
|
|
2029
|
-
"kind": "field"
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
],
|
|
2033
|
-
"kind": "struct",
|
|
2034
|
-
"path": "aztec::protocol_types::address::aztec_address::AztecAddress"
|
|
2035
|
-
},
|
|
2036
|
-
"visibility": "private"
|
|
2037
|
-
}
|
|
2038
|
-
],
|
|
2039
|
-
"return_type": null
|
|
1964
|
+
"visibility": "databus"
|
|
1965
|
+
}
|
|
2040
1966
|
},
|
|
2041
|
-
"bytecode": "H4sIAAAAAAAA/
|
|
2042
|
-
"debug_symbols": "
|
|
1967
|
+
"bytecode": "H4sIAAAAAAAA/+XdBXRT99/H8dSA4lYYE2yCQ9IkbYK7uztUUnQwbGPeubs7U+buynxj7r6xDTbcXZ/PdyTjNoSd8/x7s//zPs89533apunN63ebpGly87spnv1L7TSPZ0/q/s9TVFr0o51UP+602Efn5xkJzlchwWmVEpxWJcFp1RKcVkt1jDutXoLz1U9wWoMEpzVMcFqjBKc1VuU8JZeU6MeO0Y9+b04gEMnNjvj8vjxvdjg/FPQGgvk5IV/IFwwFC7NDfn8kFAjlhvPDud6wL+CP+IqCYX+Rd/9SJe3AurylWrILkums+p87/fEnmK26SndYbTvsdWz32OdNHJ9XjZ4n9nPV9HV1VUPVTDtwemxJjdsG3tItvkYubs+sNPdczuusrbe+Yxuleg69uHT52SkJLifF5W3f2L11eZNlbJIEY4nF7Su080pY2it0rSRdoWs5rtCxPzieJF/ZUjzJ/UWWdt254UihT7+ZZG6DamnJ2QZuO7PS/m//rmLOFMc67UFXiSX+hl3aG6Ob8Kae5Gxgt8fs4o3W1wwy5lQXx9wcMuY0F8fc4l8as7d0i6+li9uPcsfe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XVhEf99EzHJukah7AUEX0ImOTNncmaSHMW6Xh62i6bb9HsxezuKtl9VY9N3zjoKoPPafld13tyP1TCKGWiNhai7tZ+WeCrEpmlrMdNuegNG1OUFjGhsBBuTA1syF7CSCI/BoElxzIMoxUa2ueCAOmQCxAld6lx0pVUITiCv0PNCAL+UuaOMfilzR5nyx8qQtAFMgCaCnZ8nMH9NYLMEqrTx2JoeEwASyoBGYpXgnIGr2AkEKTIo6dNB+RvppJohS/04HbCsYnDLrL8KlGtkY23sZHujJ8KzHwD/+wAowcQrKZWFq4ycsRyatm22i6uPTPqBsr8ZQ2Bnxu8dRjzdRU93Kae7mIkuzgKPzFeM460vOb2J/gGYn5z5Xg1NtWxrr6XfPXSrIK0zx49d2Ani74Z+Va8PQ+3LkCqgHLeCgsC/Jf7ysiyYY27nJeRCScfqmD8B",
|
|
2043
1969
|
"brillig_names": [
|
|
2044
|
-
"
|
|
2045
|
-
|
|
1970
|
+
"store_in_execution_cache_oracle_wrapper",
|
|
1971
|
+
"enqueue_public_function_call_internal"
|
|
1972
|
+
],
|
|
1973
|
+
"verification_key": "AAAAAAAQAAAAAAAAAAAAFAAAAAAAAAAQAAAAAAADKLEBAAAAAAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAAAAAAAAAABzK2NvY9tuTVnnt4Jo9EJ3XlNU9FzhpFlgm9/PkRXUdFqA5oJZ0gYycCfDZhPcPBQWUbHSpMlGIzzxqUOGyxPYb4xy/bffIXhU35FXxWJ+rEf2nko/YCtcYXbi1AVF2PwU9zOPcMIfd5VS2jjE8/TwSFvfN14Qbi3haVrMogSiYA/OsRVQNI2491hd4w+dfGdae28CyvNLoYg3saTfKrK4QpOIBkAeX02dBPBHPGHVThW+n+JN5YiR1WhfmKdZeAyc1DC4nZ4P0Yngu2OefuyKN2X2YbTmJoy+tY8kylMWSDj6sId390rdZrwaFPZVxmsJN4l2+J/WDAtbyBt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eDZ4KsambSsy0f72BEbW5wIjWJdjaHOzIXmAlER7DoElx0kE01kZ2ueKAOioB4pE2OlddaRWLE8grel4I0G9n7jhj3s7cccY+7QxJF2ECtAn2eaGB++MGKHMNTPLISvu4PCChjGKQWI04Z3CV5oCAEgpKnsXA82LG/UKW+rEYcKxcxB2z/mlOboitc2mK3a2X+Nry1f/KRwk2HUWpHFzp8cGyr5um3i6ufmAyPIhyUhlid2b8PVvE01P09BQzPcVOTPERBDI/bpxOu+HxLgwHf37y4WfZ1+WyqYKXYfXQrqK1Phy+dnElmr/ru1W1PvRV2IZxB8KsKCgIwiUV7hCWBXPSdv6EXCjpu/rO3w==",
|
|
3672
3600
|
"brillig_names": [
|
|
3673
3601
|
"store_in_execution_cache_oracle_wrapper",
|
|
3674
3602
|
"enqueue_public_function_call_internal"
|
|
3675
3603
|
],
|
|
3676
|
-
"verification_key": "AAAAAAAQAAAAAAAAAAAAFAAAAAAAAAAQAAAAAAADKLEBAAAAAAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAAAAAAAAAAA+Br57uIOtdJnxcGvJbMsL0JgjlPey0S4SunUioKSaBF6ngBiP04+4M9yeoY7XYvTDNmL1Jct9XDGEaPPXjJsguVIpwezHccvXIiY0g9s1gwVevTD61oGnnfZjD8CQtyBzfOOVy5AoCDQKZ+QycSLXH3FsKtlYm+G6pnzXm8G2iAUdyagxbBnr70bGDS1L+4YZzTLH8uwLau0G4j/riA7cRJw+LuOCWxkDQAMKlkOGZ2eKATo6a4+Gb9YDN40YnIh2i83qXimpFuQUAuctyXlYrXKIiLQ/bwJuHB9aQfz9mEYeZlBwrq30Nw7bSNvI9hdGgvvTblI7GRgs3gkRs9EYopzTMkx9aCZnYGhOr1Q9ovAGZPiOoaCpE2JIm+iPWwwhJi4vJqN4eVhxgcsqcBz+js3uDl09YhD8B4pDAWujrFMPGS+pAeiQYWIsgJ63OG66hv3kL8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
},
|
|
3606
|
+
{
|
|
3607
|
+
"name": "public_dispatch",
|
|
3608
|
+
"is_unconstrained": true,
|
|
3609
|
+
"custom_attributes": [
|
|
3610
|
+
"public"
|
|
3611
|
+
],
|
|
3612
|
+
"abi": {
|
|
3613
|
+
"error_types": {
|
|
3614
|
+
"10421965853029650238": {
|
|
3615
|
+
"error_kind": "string",
|
|
3616
|
+
"string": "Function _check_block_number can only be called statically"
|
|
3617
|
+
},
|
|
3618
|
+
"11405868724477732285": {
|
|
3619
|
+
"error_kind": "string",
|
|
3620
|
+
"string": "Function _check_timestamp can only be called internally"
|
|
3621
|
+
},
|
|
3622
|
+
"13418685691864489983": {
|
|
3623
|
+
"error_kind": "string",
|
|
3624
|
+
"string": "Function _check_timestamp can only be called statically"
|
|
3625
|
+
},
|
|
3626
|
+
"1433889167918961673": {
|
|
3627
|
+
"error_kind": "fmtstring",
|
|
3628
|
+
"item_types": [],
|
|
3629
|
+
"length": 17
|
|
3630
|
+
},
|
|
3631
|
+
"16541607464495309456": {
|
|
3632
|
+
"error_kind": "fmtstring",
|
|
3633
|
+
"item_types": [],
|
|
3634
|
+
"length": 16
|
|
3635
|
+
},
|
|
3636
|
+
"16761564377371454734": {
|
|
3637
|
+
"error_kind": "string",
|
|
3638
|
+
"string": "Array index out of bounds"
|
|
3639
|
+
},
|
|
3640
|
+
"17843811134343075018": {
|
|
3641
|
+
"error_kind": "string",
|
|
3642
|
+
"string": "Stack too deep"
|
|
3643
|
+
},
|
|
3644
|
+
"2242946026394210301": {
|
|
3645
|
+
"error_kind": "string",
|
|
3646
|
+
"string": "Block number mismatch."
|
|
3647
|
+
},
|
|
3648
|
+
"5019202896831570965": {
|
|
3649
|
+
"error_kind": "string",
|
|
3650
|
+
"string": "attempt to add with overflow"
|
|
3651
|
+
},
|
|
3652
|
+
"8209322232883590150": {
|
|
3653
|
+
"error_kind": "string",
|
|
3654
|
+
"string": "Function _check_block_number can only be called internally"
|
|
3655
|
+
},
|
|
3656
|
+
"8443716675528357851": {
|
|
3657
|
+
"error_kind": "string",
|
|
3658
|
+
"string": "Timestamp mismatch."
|
|
3659
|
+
}
|
|
3660
|
+
},
|
|
3661
|
+
"parameters": [
|
|
3662
|
+
{
|
|
3663
|
+
"name": "selector",
|
|
3664
|
+
"type": {
|
|
3665
|
+
"kind": "field"
|
|
3666
|
+
},
|
|
3667
|
+
"visibility": "private"
|
|
3668
|
+
}
|
|
3669
|
+
],
|
|
3670
|
+
"return_type": null
|
|
3671
|
+
},
|
|
3672
|
+
"bytecode": "JgACBAEnAAABBIBKJgAABAMmAgIEASYCAwQAHxgAAwACgEktCIBJAAEkAAAARSQAAABwJwIAAQSASiYCAgQAOg0AAQACJwCAQwIABCcAgEQCAAYnAIBFAgABJwCARgIAAicAgEcCAAUnAIBIAgADJSQAAAT0KAIAAgBYryrgCjgBAgMmAgQEACYCBgQDADgEBgUsCAECABABBQEmAwIEAQAoAgIFLA4EBQAoBQIFLA4EBSYCBQQDADgCBQQmAgQEAiYCBQQBJgIGBAAmAgcBASYCCAABIwIAAwAAAOIiAAACQCwIAQMmAgkEAwAQAQkBJgMDBAEAKAMCCR88AAUABAAJLA0DCQAoCQIJLA4JAywIAQkAAAECASwOAwksCAEDAAABAgEsDgYDJgILBAwsCAAMLAwJDSwMAw4AEAALACQAAAUdLAQAACwMDQoAKAoCDAA4DAYNLA0NCxwMCwwCHAwMCgAcDAoLAiYCDAQNLAgADSwMCQ4sDAMPABAADAAkAAAFHSwEAAAsDA4KACgKAgkAOAkGDCwNDAMcDAMKBRwMCgkAHgIAAwEeAgAKAAo4AwoMIwIADAAAAcAkAAAFmB4CAAMJCjgDCAojAgAKAAAB1yQAAAWqHgIAAwYcDAMKACYCDAQNLAgADSwMCg4sDAsPLAwJEAAQAAwAJAAABbwsBAAALAwOAyMCAAMAAAIVJAAACDosDQIDACgDAgMsDgMCACgCAgosDQoJJgILBAIAOAoLAzoNAAMACSIAAAJAKAIAAwB57RaBCjgBAwkjAgAJAAACWyIAAAOd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7QNeqQHVXqO79S++rsQN9pqQzx2iaIKeZwJL6BViZ5IgdpYx/DV//vX26u/14v339eZkvPx4+HfzazPN/37ZHPzzz7enx0/bzj6ft7ido9r8+s5M9pJdviMpufnb6lyHDXSTvvu5ehkQy/KsNUgfJ/wM=",
|
|
3674
|
+
"brillig_names": [
|
|
3675
|
+
"public_dispatch"
|
|
3676
|
+
]
|
|
3677
3677
|
}
|
|
3678
3678
|
],
|
|
3679
3679
|
"outputs": {
|
|
@@ -3697,19 +3697,17 @@
|
|
|
3697
3697
|
{
|
|
3698
3698
|
"name": "value",
|
|
3699
3699
|
"type": {
|
|
3700
|
-
"kind": "
|
|
3701
|
-
"sign": "unsigned",
|
|
3702
|
-
"width": 64
|
|
3700
|
+
"kind": "field"
|
|
3703
3701
|
}
|
|
3704
3702
|
}
|
|
3705
3703
|
],
|
|
3706
3704
|
"kind": "struct",
|
|
3707
|
-
"path": "Router::
|
|
3705
|
+
"path": "Router::check_block_number_parameters"
|
|
3708
3706
|
}
|
|
3709
3707
|
}
|
|
3710
3708
|
],
|
|
3711
3709
|
"kind": "struct",
|
|
3712
|
-
"path": "Router::
|
|
3710
|
+
"path": "Router::check_block_number_abi"
|
|
3713
3711
|
},
|
|
3714
3712
|
{
|
|
3715
3713
|
"fields": [
|
|
@@ -3728,17 +3726,19 @@
|
|
|
3728
3726
|
{
|
|
3729
3727
|
"name": "value",
|
|
3730
3728
|
"type": {
|
|
3731
|
-
"kind": "
|
|
3729
|
+
"kind": "integer",
|
|
3730
|
+
"sign": "unsigned",
|
|
3731
|
+
"width": 64
|
|
3732
3732
|
}
|
|
3733
3733
|
}
|
|
3734
3734
|
],
|
|
3735
3735
|
"kind": "struct",
|
|
3736
|
-
"path": "Router::
|
|
3736
|
+
"path": "Router::check_timestamp_parameters"
|
|
3737
3737
|
}
|
|
3738
3738
|
}
|
|
3739
3739
|
],
|
|
3740
3740
|
"kind": "struct",
|
|
3741
|
-
"path": "Router::
|
|
3741
|
+
"path": "Router::check_timestamp_abi"
|
|
3742
3742
|
},
|
|
3743
3743
|
{
|
|
3744
3744
|
"fields": [
|
|
@@ -3764,12 +3764,12 @@
|
|
|
3764
3764
|
}
|
|
3765
3765
|
],
|
|
3766
3766
|
"kind": "struct",
|
|
3767
|
-
"path": "Router::
|
|
3767
|
+
"path": "Router::_check_timestamp_parameters"
|
|
3768
3768
|
}
|
|
3769
3769
|
}
|
|
3770
3770
|
],
|
|
3771
3771
|
"kind": "struct",
|
|
3772
|
-
"path": "Router::
|
|
3772
|
+
"path": "Router::_check_timestamp_abi"
|
|
3773
3773
|
},
|
|
3774
3774
|
{
|
|
3775
3775
|
"fields": [
|
|
@@ -3804,19 +3804,19 @@
|
|
|
3804
3804
|
}
|
|
3805
3805
|
},
|
|
3806
3806
|
"file_map": {
|
|
3807
|
-
"
|
|
3807
|
+
"128": {
|
|
3808
3808
|
"path": "/build-volume/noir-projects/aztec-nr/aztec/src/oracle/enqueue_public_function_call.nr",
|
|
3809
3809
|
"source": "use dep::protocol_types::{abis::function_selector::FunctionSelector, address::AztecAddress};\n\n#[oracle(enqueuePublicFunctionCall)]\nunconstrained fn enqueue_public_function_call_oracle(\n _contract_address: AztecAddress,\n _function_selector: FunctionSelector,\n _args_hash: Field,\n _side_effect_counter: u32,\n _is_static_call: bool,\n) -> Field {}\n\npub unconstrained fn enqueue_public_function_call_internal(\n contract_address: AztecAddress,\n function_selector: FunctionSelector,\n args_hash: Field,\n side_effect_counter: u32,\n is_static_call: bool,\n) -> Field {\n enqueue_public_function_call_oracle(\n contract_address,\n function_selector,\n args_hash,\n side_effect_counter,\n is_static_call,\n )\n}\n\n#[oracle(setPublicTeardownFunctionCall)]\nunconstrained fn set_public_teardown_function_call_oracle(\n _contract_address: AztecAddress,\n _function_selector: FunctionSelector,\n _args_hash: Field,\n _side_effect_counter: u32,\n _is_static_call: bool,\n) -> Field {}\n\npub unconstrained fn set_public_teardown_function_call_internal(\n contract_address: AztecAddress,\n function_selector: FunctionSelector,\n args_hash: Field,\n side_effect_counter: u32,\n is_static_call: bool,\n) -> Field {\n set_public_teardown_function_call_oracle(\n contract_address,\n function_selector,\n args_hash,\n side_effect_counter,\n is_static_call,\n )\n}\n\npub fn notify_set_min_revertible_side_effect_counter(counter: u32) {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call.\n unsafe { notify_set_min_revertible_side_effect_counter_oracle_wrapper(counter) };\n}\n\npub unconstrained fn notify_set_min_revertible_side_effect_counter_oracle_wrapper(counter: u32) {\n notify_set_min_revertible_side_effect_counter_oracle(counter);\n}\n\n#[oracle(notifySetMinRevertibleSideEffectCounter)]\nunconstrained fn notify_set_min_revertible_side_effect_counter_oracle(_counter: u32) {}\n"
|
|
3810
3810
|
},
|
|
3811
|
-
"
|
|
3811
|
+
"130": {
|
|
3812
3812
|
"path": "/build-volume/noir-projects/aztec-nr/aztec/src/oracle/execution_cache.nr",
|
|
3813
3813
|
"source": "/// Stores values represented as slice in execution cache to be later obtained by its hash.\npub fn store(values: [Field]) {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call. When loading the values, however, the caller must check that the values are indeed the preimage.\n unsafe { store_in_execution_cache_oracle_wrapper(values) };\n}\n\npub unconstrained fn store_in_execution_cache_oracle_wrapper(values: [Field]) {\n let _ = store_in_execution_cache_oracle(values);\n}\n\npub unconstrained fn load<let N: u32>(hash: Field) -> [Field; N] {\n load_from_execution_cache_oracle(hash)\n}\n\n#[oracle(storeInExecutionCache)]\nunconstrained fn store_in_execution_cache_oracle(_values: [Field]) -> Field {}\n\n#[oracle(loadFromExecutionCache)]\nunconstrained fn load_from_execution_cache_oracle<let N: u32>(_hash: Field) -> [Field; N] {}\n"
|
|
3814
3814
|
},
|
|
3815
|
-
"
|
|
3815
|
+
"141": {
|
|
3816
3816
|
"path": "/build-volume/noir-projects/aztec-nr/aztec/src/oracle/notes.nr",
|
|
3817
|
-
"source": "use crate::{note::{note_header::NoteHeader, note_interface::NoteInterface}, utils::array};\n\nuse dep::protocol_types::{\n address::AztecAddress,\n indexed_tagging_secret::{INDEXED_TAGGING_SECRET_LENGTH, IndexedTaggingSecret},\n};\n\n/// Notifies the simulator that a note has been created, so that it can be returned in future read requests in the same\n/// transaction. This note should only be added to the non-volatile database if found in an actual block.\npub fn notify_created_note<let N: u32>(\n storage_slot: Field,\n note_type_id: Field,\n serialized_note: [Field; N],\n note_hash: Field,\n counter: u32,\n) {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call.\n unsafe {\n notify_created_note_oracle_wrapper(\n storage_slot,\n note_type_id,\n serialized_note,\n note_hash,\n counter,\n )\n };\n}\n\n/// Notifies the simulator that a note has been nullified, so that it is no longer returned in future read requests in\n/// the same transaction. This note should only be removed to the non-volatile database if its nullifier is found in an\n/// actual block.\npub fn notify_nullified_note(nullifier: Field, note_hash: Field, counter: u32) {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call.\n unsafe { notify_nullified_note_oracle_wrapper(nullifier, note_hash, counter) };\n}\n\n/// Notifies the simulator that a non-note nullifier has been created, so that it can be used for note nonces.\npub fn notify_created_nullifier(nullifier: Field) {\n // This oracle call returns nothing: we only call it for its side effects. It is therefore always safe to call.\n unsafe { notify_created_nullifier_oracle_wrapper(nullifier) };\n}\n\nunconstrained fn notify_created_note_oracle_wrapper<let N: u32>(\n storage_slot: Field,\n note_type_id: Field,\n serialized_note: [Field; N],\n note_hash: Field,\n counter: u32,\n) {\n let _ = notify_created_note_oracle(\n storage_slot,\n note_type_id,\n serialized_note,\n note_hash,\n counter,\n );\n}\n\n#[oracle(notifyCreatedNote)]\nunconstrained fn notify_created_note_oracle<let N: u32>(\n _storage_slot: Field,\n _note_type_id: Field,\n _serialized_note: [Field; N],\n _note_hash: Field,\n _counter: u32,\n) -> Field {}\n\nunconstrained fn notify_nullified_note_oracle_wrapper(\n nullifier: Field,\n note_hash: Field,\n counter: u32,\n) {\n let _ = notify_nullified_note_oracle(nullifier, note_hash, counter);\n}\n\n#[oracle(notifyNullifiedNote)]\nunconstrained fn notify_nullified_note_oracle(\n _nullifier: Field,\n _note_hash: Field,\n _counter: u32,\n) -> Field {}\n\nunconstrained fn notify_created_nullifier_oracle_wrapper(nullifier: Field) {\n let _ = notify_created_nullifier_oracle(nullifier);\n}\n\n#[oracle(notifyCreatedNullifier)]\nunconstrained fn notify_created_nullifier_oracle(_nullifier: Field) -> Field {}\n\n#[oracle(getNotes)]\nunconstrained fn get_notes_oracle<let N: u32, let S: u32>(\n _storage_slot: Field,\n _num_selects: u8,\n _select_by_indexes: [u8; N],\n _select_by_offsets: [u8; N],\n _select_by_lengths: [u8; N],\n _select_values: [Field; N],\n _select_comparators: [u8; N],\n _sort_by_indexes: [u8; N],\n _sort_by_offsets: [u8; N],\n _sort_by_lengths: [u8; N],\n _sort_order: [u8; N],\n _limit: u32,\n _offset: u32,\n _status: u8,\n _return_size: u32,\n _placeholder_fields: [Field; S],\n) -> [Field; S] {}\n\nunconstrained fn get_notes_oracle_wrapper<let N: u32, let S: u32>(\n storage_slot: Field,\n num_selects: u8,\n select_by_indexes: [u8; N],\n select_by_offsets: [u8; N],\n select_by_lengths: [u8; N],\n select_values: [Field; N],\n select_comparators: [u8; N],\n sort_by_indexes: [u8; N],\n sort_by_offsets: [u8; N],\n sort_by_lengths: [u8; N],\n sort_order: [u8; N],\n limit: u32,\n offset: u32,\n status: u8,\n mut placeholder_fields: [Field; S],\n) -> [Field; S] {\n let return_size = placeholder_fields.len() as u32;\n get_notes_oracle(\n storage_slot,\n num_selects,\n select_by_indexes,\n select_by_offsets,\n select_by_lengths,\n select_values,\n select_comparators,\n sort_by_indexes,\n sort_by_offsets,\n sort_by_lengths,\n sort_order,\n limit,\n offset,\n status,\n return_size,\n placeholder_fields,\n )\n}\n\npub unconstrained fn get_notes<Note, let N: u32, let M: u32, let S: u32, let NS: u32>(\n storage_slot: Field,\n num_selects: u8,\n select_by_indexes: [u8; M],\n select_by_offsets: [u8; M],\n select_by_lengths: [u8; M],\n select_values: [Field; M],\n select_comparators: [u8; M],\n sort_by_indexes: [u8; M],\n sort_by_offsets: [u8; M],\n sort_by_lengths: [u8; M],\n sort_order: [u8; M],\n limit: u32,\n offset: u32,\n status: u8,\n mut placeholder_opt_notes: [Option<Note>; S], // TODO: Remove it and use `limit` to initialize the note array.\n placeholder_fields: [Field; NS], // TODO: Remove it and use `limit` to initialize the note array.\n _placeholder_note_length: [Field; N], // Turbofish hack? Compiler breaks calculating read_offset unless we add this parameter\n) -> [Option<Note>; S]\nwhere\n Note: NoteInterface<N>,\n{\n sync_notes_oracle_wrapper();\n let fields = get_notes_oracle_wrapper(\n storage_slot,\n num_selects,\n select_by_indexes,\n select_by_offsets,\n select_by_lengths,\n select_values,\n select_comparators,\n sort_by_indexes,\n sort_by_offsets,\n sort_by_lengths,\n sort_order,\n limit,\n offset,\n status,\n placeholder_fields,\n );\n let num_notes = fields[0] as u32;\n let contract_address = AztecAddress::from_field(fields[1]);\n for i in 0..placeholder_opt_notes.len() {\n if i < num_notes {\n // lengths named as per typescript.\n let return_header_length: u32 = 2; // num_notes & contract_address.\n let extra_preimage_length: u32 = 2; // nonce & note_hash_counter.\n let read_offset: u32 = return_header_length + i * (N + extra_preimage_length);\n\n let nonce = fields[read_offset];\n let note_hash_counter = fields[read_offset + 1] as u32;\n let note_content = array::subarray(fields, read_offset + 2);\n\n let mut note = Note::deserialize_content(note_content);\n note.set_header(NoteHeader { contract_address, nonce, storage_slot, note_hash_counter });\n\n placeholder_opt_notes[i] = Option::some(note);\n };\n }\n placeholder_opt_notes\n}\n\n/// Returns true if the nullifier exists. Note that a `true` value can be constrained by proving existence of the\n/// nullifier, but a `false` value should not be relied upon since other transactions may emit this nullifier before the\n/// current transaction is included in a block. While this might seem of little use at first, certain design patterns\n/// benefit from this abstraction (see e.g. `PrivateMutable`).\npub unconstrained fn check_nullifier_exists(inner_nullifier: Field) -> bool {\n check_nullifier_exists_oracle(inner_nullifier) == 1\n}\n\n#[oracle(checkNullifierExists)]\nunconstrained fn check_nullifier_exists_oracle(_inner_nullifier: Field) -> Field {}\n\n/// Same as `get_indexed_tagging_secret_as_sender`, except it returns the derived tag, ready to be included in a log.\npub unconstrained fn get_app_tag_as_sender(sender: AztecAddress, recipient: AztecAddress) -> Field {\n get_indexed_tagging_secret_as_sender(sender, recipient).compute_tag(recipient)\n}\n\n/// Returns the tagging secret for a given sender and recipient pair, siloed for the current contract address.\n/// Includes the last known index used to send a note tagged with this secret.\n/// For this to work, PXE must know the ivsk_m of the sender.\n/// For the recipient's side, only the address is needed.\npub unconstrained fn get_indexed_tagging_secret_as_sender(\n sender: AztecAddress,\n recipient: AztecAddress,\n) -> IndexedTaggingSecret {\n let result = get_indexed_tagging_secret_as_sender_oracle(sender, recipient);\n IndexedTaggingSecret::deserialize(result)\n}\n\n#[oracle(getIndexedTaggingSecretAsSender)]\nunconstrained fn get_indexed_tagging_secret_as_sender_oracle(\n _sender: AztecAddress,\n _recipient: AztecAddress,\n) -> [Field; INDEXED_TAGGING_SECRET_LENGTH] {}\n\n/// Notifies the simulator that a tag has been used in a note, and to therefore increment the associated index so that\n/// future notes get a different tag and can be discovered by the recipient.\n/// This change should only be persisted in a non-volatile database if the tagged log is found in an actual block -\n/// otherwise e.g. a reverting transaction can cause the sender to accidentally skip indices and later produce notes\n/// that are not found by the recipient.\npub fn increment_app_tagging_secret_index_as_sender(sender: AztecAddress, recipient: AztecAddress) {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call.\n unsafe {\n increment_app_tagging_secret_index_as_sender_wrapper(sender, recipient);\n }\n}\n\nunconstrained fn increment_app_tagging_secret_index_as_sender_wrapper(\n sender: AztecAddress,\n recipient: AztecAddress,\n) {\n increment_app_tagging_secret_index_as_sender_oracle(sender, recipient);\n}\n\n#[oracle(incrementAppTaggingSecretIndexAsSender)]\nunconstrained fn increment_app_tagging_secret_index_as_sender_oracle(\n _sender: AztecAddress,\n _recipient: AztecAddress,\n) {}\n\n/// Finds new notes that may have been sent to all registered accounts in PXE in the current contract and makes them available\n/// for later querying via the `get_notes` oracle.\npub fn sync_notes() {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call.\n unsafe {\n sync_notes_oracle_wrapper();\n }\n}\n\nunconstrained fn sync_notes_oracle_wrapper() {\n sync_notes_oracle();\n}\n\n#[oracle(syncNotes)]\nunconstrained fn sync_notes_oracle() {}\n"
|
|
3817
|
+
"source": "use crate::{note::{note_header::NoteHeader, note_interface::NoteInterface}, utils::array};\n\nuse dep::protocol_types::{\n address::AztecAddress,\n indexed_tagging_secret::{INDEXED_TAGGING_SECRET_LENGTH, IndexedTaggingSecret},\n};\n\n/// Notifies the simulator that a note has been created, so that it can be returned in future read requests in the same\n/// transaction. This note should only be added to the non-volatile database if found in an actual block.\npub fn notify_created_note<let N: u32>(\n storage_slot: Field,\n note_type_id: Field,\n packed_note_content: [Field; N],\n note_hash: Field,\n counter: u32,\n) {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call.\n unsafe {\n notify_created_note_oracle_wrapper(\n storage_slot,\n note_type_id,\n packed_note_content,\n note_hash,\n counter,\n )\n };\n}\n\n/// Notifies the simulator that a note has been nullified, so that it is no longer returned in future read requests in\n/// the same transaction. This note should only be removed to the non-volatile database if its nullifier is found in an\n/// actual block.\npub fn notify_nullified_note(nullifier: Field, note_hash: Field, counter: u32) {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call.\n unsafe { notify_nullified_note_oracle_wrapper(nullifier, note_hash, counter) };\n}\n\n/// Notifies the simulator that a non-note nullifier has been created, so that it can be used for note nonces.\npub fn notify_created_nullifier(nullifier: Field) {\n // This oracle call returns nothing: we only call it for its side effects. It is therefore always safe to call.\n unsafe { notify_created_nullifier_oracle_wrapper(nullifier) };\n}\n\nunconstrained fn notify_created_note_oracle_wrapper<let N: u32>(\n storage_slot: Field,\n note_type_id: Field,\n packed_note_content: [Field; N],\n note_hash: Field,\n counter: u32,\n) {\n let _ = notify_created_note_oracle(\n storage_slot,\n note_type_id,\n packed_note_content,\n note_hash,\n counter,\n );\n}\n\n#[oracle(notifyCreatedNote)]\nunconstrained fn notify_created_note_oracle<let N: u32>(\n _storage_slot: Field,\n _note_type_id: Field,\n _packed_note_content: [Field; N],\n _note_hash: Field,\n _counter: u32,\n) -> Field {}\n\nunconstrained fn notify_nullified_note_oracle_wrapper(\n nullifier: Field,\n note_hash: Field,\n counter: u32,\n) {\n let _ = notify_nullified_note_oracle(nullifier, note_hash, counter);\n}\n\n#[oracle(notifyNullifiedNote)]\nunconstrained fn notify_nullified_note_oracle(\n _nullifier: Field,\n _note_hash: Field,\n _counter: u32,\n) -> Field {}\n\nunconstrained fn notify_created_nullifier_oracle_wrapper(nullifier: Field) {\n let _ = notify_created_nullifier_oracle(nullifier);\n}\n\n#[oracle(notifyCreatedNullifier)]\nunconstrained fn notify_created_nullifier_oracle(_nullifier: Field) -> Field {}\n\n#[oracle(getNotes)]\nunconstrained fn get_notes_oracle<let N: u32, let S: u32>(\n _storage_slot: Field,\n _num_selects: u8,\n _select_by_indexes: [u8; N],\n _select_by_offsets: [u8; N],\n _select_by_lengths: [u8; N],\n _select_values: [Field; N],\n _select_comparators: [u8; N],\n _sort_by_indexes: [u8; N],\n _sort_by_offsets: [u8; N],\n _sort_by_lengths: [u8; N],\n _sort_order: [u8; N],\n _limit: u32,\n _offset: u32,\n _status: u8,\n _return_size: u32,\n _placeholder_fields: [Field; S],\n) -> [Field; S] {}\n\nunconstrained fn get_notes_oracle_wrapper<let N: u32, let S: u32>(\n storage_slot: Field,\n num_selects: u8,\n select_by_indexes: [u8; N],\n select_by_offsets: [u8; N],\n select_by_lengths: [u8; N],\n select_values: [Field; N],\n select_comparators: [u8; N],\n sort_by_indexes: [u8; N],\n sort_by_offsets: [u8; N],\n sort_by_lengths: [u8; N],\n sort_order: [u8; N],\n limit: u32,\n offset: u32,\n status: u8,\n mut placeholder_fields: [Field; S],\n) -> [Field; S] {\n let return_size = placeholder_fields.len() as u32;\n get_notes_oracle(\n storage_slot,\n num_selects,\n select_by_indexes,\n select_by_offsets,\n select_by_lengths,\n select_values,\n select_comparators,\n sort_by_indexes,\n sort_by_offsets,\n sort_by_lengths,\n sort_order,\n limit,\n offset,\n status,\n return_size,\n placeholder_fields,\n )\n}\n\npub unconstrained fn get_notes<Note, let N: u32, let M: u32, let S: u32, let NS: u32>(\n storage_slot: Field,\n num_selects: u8,\n select_by_indexes: [u8; M],\n select_by_offsets: [u8; M],\n select_by_lengths: [u8; M],\n select_values: [Field; M],\n select_comparators: [u8; M],\n sort_by_indexes: [u8; M],\n sort_by_offsets: [u8; M],\n sort_by_lengths: [u8; M],\n sort_order: [u8; M],\n limit: u32,\n offset: u32,\n status: u8,\n mut placeholder_opt_notes: [Option<Note>; S], // TODO: Remove it and use `limit` to initialize the note array.\n placeholder_fields: [Field; NS], // TODO: Remove it and use `limit` to initialize the note array.\n _placeholder_note_length: [Field; N], // Turbofish hack? Compiler breaks calculating read_offset unless we add this parameter\n) -> [Option<Note>; S]\nwhere\n Note: NoteInterface<N>,\n{\n sync_notes_oracle_wrapper();\n let fields = get_notes_oracle_wrapper(\n storage_slot,\n num_selects,\n select_by_indexes,\n select_by_offsets,\n select_by_lengths,\n select_values,\n select_comparators,\n sort_by_indexes,\n sort_by_offsets,\n sort_by_lengths,\n sort_order,\n limit,\n offset,\n status,\n placeholder_fields,\n );\n let num_notes = fields[0] as u32;\n let contract_address = AztecAddress::from_field(fields[1]);\n for i in 0..placeholder_opt_notes.len() {\n if i < num_notes {\n // lengths named as per typescript.\n let return_header_length: u32 = 2; // num_notes & contract_address.\n let extra_preimage_length: u32 = 2; // nonce & note_hash_counter.\n let read_offset: u32 = return_header_length + i * (N + extra_preimage_length);\n\n let nonce = fields[read_offset];\n let note_hash_counter = fields[read_offset + 1] as u32;\n let note_content = array::subarray(fields, read_offset + 2);\n\n let mut note = Note::unpack_content(note_content);\n note.set_header(NoteHeader { contract_address, nonce, storage_slot, note_hash_counter });\n\n placeholder_opt_notes[i] = Option::some(note);\n };\n }\n placeholder_opt_notes\n}\n\n/// Returns true if the nullifier exists. Note that a `true` value can be constrained by proving existence of the\n/// nullifier, but a `false` value should not be relied upon since other transactions may emit this nullifier before the\n/// current transaction is included in a block. While this might seem of little use at first, certain design patterns\n/// benefit from this abstraction (see e.g. `PrivateMutable`).\npub unconstrained fn check_nullifier_exists(inner_nullifier: Field) -> bool {\n check_nullifier_exists_oracle(inner_nullifier) == 1\n}\n\n#[oracle(checkNullifierExists)]\nunconstrained fn check_nullifier_exists_oracle(_inner_nullifier: Field) -> Field {}\n\n/// Same as `get_indexed_tagging_secret_as_sender`, except it returns the derived tag, ready to be included in a log.\npub unconstrained fn get_app_tag_as_sender(sender: AztecAddress, recipient: AztecAddress) -> Field {\n get_indexed_tagging_secret_as_sender(sender, recipient).compute_tag(recipient)\n}\n\n/// Returns the tagging secret for a given sender and recipient pair, siloed for the current contract address.\n/// Includes the last known index used to send a note tagged with this secret.\n/// For this to work, PXE must know the ivsk_m of the sender.\n/// For the recipient's side, only the address is needed.\npub unconstrained fn get_indexed_tagging_secret_as_sender(\n sender: AztecAddress,\n recipient: AztecAddress,\n) -> IndexedTaggingSecret {\n let result = get_indexed_tagging_secret_as_sender_oracle(sender, recipient);\n IndexedTaggingSecret::deserialize(result)\n}\n\n#[oracle(getIndexedTaggingSecretAsSender)]\nunconstrained fn get_indexed_tagging_secret_as_sender_oracle(\n _sender: AztecAddress,\n _recipient: AztecAddress,\n) -> [Field; INDEXED_TAGGING_SECRET_LENGTH] {}\n\n/// Notifies the simulator that a tag has been used in a note, and to therefore increment the associated index so that\n/// future notes get a different tag and can be discovered by the recipient.\n/// This change should only be persisted in a non-volatile database if the tagged log is found in an actual block -\n/// otherwise e.g. a reverting transaction can cause the sender to accidentally skip indices and later produce notes\n/// that are not found by the recipient.\npub fn increment_app_tagging_secret_index_as_sender(sender: AztecAddress, recipient: AztecAddress) {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call.\n unsafe {\n increment_app_tagging_secret_index_as_sender_wrapper(sender, recipient);\n }\n}\n\nunconstrained fn increment_app_tagging_secret_index_as_sender_wrapper(\n sender: AztecAddress,\n recipient: AztecAddress,\n) {\n increment_app_tagging_secret_index_as_sender_oracle(sender, recipient);\n}\n\n#[oracle(incrementAppTaggingSecretIndexAsSender)]\nunconstrained fn increment_app_tagging_secret_index_as_sender_oracle(\n _sender: AztecAddress,\n _recipient: AztecAddress,\n) {}\n\n/// Finds new notes that may have been sent to all registered accounts in PXE in the current contract and makes them available\n/// for later querying via the `get_notes` oracle.\npub fn sync_notes() {\n /// Safety: This oracle call returns nothing: we only call it for its side effects. It is therefore always safe\n /// to call.\n unsafe {\n sync_notes_oracle_wrapper();\n }\n}\n\nunconstrained fn sync_notes_oracle_wrapper() {\n sync_notes_oracle();\n}\n\n#[oracle(syncNotes)]\nunconstrained fn sync_notes_oracle() {}\n"
|
|
3818
3818
|
},
|
|
3819
|
-
"
|
|
3819
|
+
"178": {
|
|
3820
3820
|
"path": "/build-volume/noir-projects/aztec-nr/aztec/src/utils/comparison.nr",
|
|
3821
3821
|
"source": "struct ComparatorEnum {\n pub EQ: u8,\n pub NEQ: u8,\n pub LT: u8,\n pub LTE: u8,\n pub GT: u8,\n pub GTE: u8,\n}\n\npub global Comparator: ComparatorEnum =\n ComparatorEnum { EQ: 1, NEQ: 2, LT: 3, LTE: 4, GT: 5, GTE: 6 };\n\npub fn compare(lhs: Field, operation: u8, rhs: Field) -> bool {\n // Values are computed ahead of time because circuits evaluate all branches\n let is_equal = lhs == rhs;\n let is_lt = lhs.lt(rhs);\n\n if (operation == Comparator.EQ) {\n is_equal\n } else if (operation == Comparator.NEQ) {\n !is_equal\n } else if (operation == Comparator.LT) {\n is_lt\n } else if (operation == Comparator.LTE) {\n is_lt | is_equal\n } else if (operation == Comparator.GT) {\n !is_lt & !is_equal\n } else if (operation == Comparator.GTE) {\n !is_lt\n } else {\n panic(f\"Invalid operation\")\n }\n}\n\nmod test {\n use super::Comparator;\n use super::compare;\n\n #[test]\n unconstrained fn test_compare() {\n let lhs = 10;\n let rhs = 10;\n assert(compare(lhs, Comparator.EQ, rhs), \"Expected lhs to be equal to rhs\");\n\n let lhs = 10;\n let rhs = 11;\n assert(compare(lhs, Comparator.NEQ, rhs), \"Expected lhs to be not equal to rhs\");\n\n let lhs = 10;\n let rhs = 11;\n assert(compare(lhs, Comparator.LT, rhs), \"Expected lhs to be less than rhs\");\n\n let lhs = 10;\n let rhs = 10;\n assert(compare(lhs, Comparator.LTE, rhs), \"Expected lhs to be less than or equal to rhs\");\n\n let lhs = 11;\n let rhs = 10;\n assert(compare(lhs, Comparator.GT, rhs), \"Expected lhs to be greater than rhs\");\n\n let lhs = 10;\n let rhs = 10;\n assert(\n compare(lhs, Comparator.GTE, rhs),\n \"Expected lhs to be greater than or equal to rhs\",\n );\n\n let lhs = 11;\n let rhs = 10;\n assert(\n compare(lhs, Comparator.GTE, rhs),\n \"Expected lhs to be greater than or equal to rhs\",\n );\n\n let lhs = 10;\n let rhs = 11;\n assert(!compare(lhs, Comparator.EQ, rhs), \"Expected lhs to be not equal to rhs\");\n\n let lhs = 10;\n let rhs = 10;\n assert(!compare(lhs, Comparator.NEQ, rhs), \"Expected lhs to not be not equal to rhs\");\n\n let lhs = 11;\n let rhs = 10;\n assert(!compare(lhs, Comparator.LT, rhs), \"Expected lhs to not be less than rhs\");\n\n let lhs = 11;\n let rhs = 10;\n assert(\n !compare(lhs, Comparator.LTE, rhs),\n \"Expected lhs to not be less than or equal to rhs\",\n );\n\n let lhs = 10;\n let rhs = 10;\n assert(!compare(lhs, Comparator.GT, rhs), \"Expected lhs to not be greater than rhs\");\n\n let lhs = 10;\n let rhs = 11;\n assert(\n !compare(lhs, Comparator.GTE, rhs),\n \"Expected lhs to not be greater than or equal to rhs\",\n );\n\n let lhs = 10;\n let rhs = 11;\n assert(\n !compare(lhs, Comparator.GTE, rhs),\n \"Expected lhs to not be greater than or equal to rhs\",\n );\n }\n}\n"
|
|
3822
3822
|
},
|
|
@@ -3826,21 +3826,21 @@
|
|
|
3826
3826
|
},
|
|
3827
3827
|
"19": {
|
|
3828
3828
|
"path": "std/field/mod.nr",
|
|
3829
|
-
"source": "pub mod bn254;\nuse crate::runtime::is_unconstrained;\nuse bn254::lt as bn254_lt;\n\nimpl Field {\n /// Asserts that `self` can be represented in `bit_size` bits.\n ///\n /// # Failures\n /// Causes a constraint failure for `Field` values exceeding `2^{bit_size}`.\n // docs:start:assert_max_bit_size\n pub fn assert_max_bit_size<let BIT_SIZE: u32>(self) {\n // docs:end:assert_max_bit_size\n assert(BIT_SIZE < modulus_num_bits() as u32);\n self.__assert_max_bit_size(BIT_SIZE);\n }\n\n #[builtin(apply_range_constraint)]\n fn __assert_max_bit_size(self, bit_size: u32) {}\n\n /// Decomposes `self` into its little endian bit decomposition as a `[u1; N]` array.\n /// This slice will be zero padded should not all bits be necessary to represent `self`.\n ///\n /// # Failures\n /// Causes a constraint failure for `Field` values exceeding `2^N` as the resulting slice will not\n /// be able to represent the original `Field`.\n ///\n /// # Safety\n /// Values of `N` equal to or greater than the number of bits necessary to represent the `Field` modulus\n /// (e.g. 254 for the BN254 field) allow for multiple bit decompositions. This is due to how the `Field` will\n /// wrap around due to overflow when verifying the decomposition.\n #[builtin(to_le_bits)]\n // docs:start:to_le_bits\n pub fn to_le_bits<let N: u32>(self: Self) -> [u1; N] {}\n // docs:end:to_le_bits\n\n /// Decomposes `self` into its big endian bit decomposition as a `[u1; N]` array.\n /// This array will be zero padded should not all bits be necessary to represent `self`.\n ///\n /// # Failures\n /// Causes a constraint failure for `Field` values exceeding `2^N` as the resulting slice will not\n /// be able to represent the original `Field`.\n ///\n /// # Safety\n /// Values of `N` equal to or greater than the number of bits necessary to represent the `Field` modulus\n /// (e.g. 254 for the BN254 field) allow for multiple bit decompositions. This is due to how the `Field` will\n /// wrap around due to overflow when verifying the decomposition.\n #[builtin(to_be_bits)]\n // docs:start:to_be_bits\n pub fn to_be_bits<let N: u32>(self: Self) -> [u1; N] {}\n // docs:end:to_be_bits\n\n /// Decomposes `self` into its little endian byte decomposition as a `[u8;N]` array\n /// This array will be zero padded should not all bytes be necessary to represent `self`.\n ///\n /// # Failures\n /// The length N of the array must be big enough to contain all the bytes of the 'self',\n /// and no more than the number of bytes required to represent the field modulus\n ///\n /// # Safety\n /// The result is ensured to be the canonical decomposition of the field element\n // docs:start:to_le_bytes\n pub fn to_le_bytes<let N: u32>(self: Self) -> [u8; N] {\n // docs:end:to_le_bytes\n // Compute the byte decomposition\n let bytes = self.to_le_radix(256);\n\n if !is_unconstrained() {\n // Ensure that the byte decomposition does not overflow the modulus\n let p = modulus_le_bytes();\n assert(bytes.len() <= p.len());\n let mut ok = bytes.len() != p.len();\n for i in 0..N {\n if !ok {\n if (bytes[N - 1 - i] != p[N - 1 - i]) {\n assert(bytes[N - 1 - i] < p[N - 1 - i]);\n ok = true;\n }\n }\n }\n assert(ok);\n }\n bytes\n }\n\n /// Decomposes `self` into its big endian byte decomposition as a `[u8;N]` array of length required to represent the field modulus\n /// This array will be zero padded should not all bytes be necessary to represent `self`.\n ///\n /// # Failures\n /// The length N of the array must be big enough to contain all the bytes of the 'self',\n /// and no more than the number of bytes required to represent the field modulus\n ///\n /// # Safety\n /// The result is ensured to be the canonical decomposition of the field element\n // docs:start:to_be_bytes\n pub fn to_be_bytes<let N: u32>(self: Self) -> [u8; N] {\n // docs:end:to_be_bytes\n // Compute the byte decomposition\n let bytes = self.to_be_radix(256);\n\n if !is_unconstrained() {\n // Ensure that the byte decomposition does not overflow the modulus\n let p = modulus_be_bytes();\n assert(bytes.len() <= p.len());\n let mut ok = bytes.len() != p.len();\n for i in 0..N {\n if !ok {\n if (bytes[i] != p[i]) {\n assert(bytes[i] < p[i]);\n ok = true;\n }\n }\n }\n assert(ok);\n }\n bytes\n }\n\n // docs:start:to_le_radix\n pub fn to_le_radix<let N: u32>(self: Self, radix: u32) -> [u8; N] {\n // Brillig does not need an immediate radix\n if !crate::runtime::is_unconstrained() {\n crate::assert_constant(radix);\n }\n self.__to_le_radix(radix)\n }\n // docs:end:to_le_radix\n\n // docs:start:to_be_radix\n pub fn to_be_radix<let N: u32>(self: Self, radix: u32) -> [u8; N] {\n // Brillig does not need an immediate radix\n if !crate::runtime::is_unconstrained() {\n crate::assert_constant(radix);\n }\n self.__to_be_radix(radix)\n }\n // docs:end:to_be_radix\n\n // `_radix` must be less than 256\n #[builtin(to_le_radix)]\n fn __to_le_radix<let N: u32>(self, radix: u32) -> [u8; N] {}\n\n #[builtin(to_be_radix)]\n fn __to_be_radix<let N: u32>(self, radix: u32) -> [u8; N] {}\n\n // Returns self to the power of the given exponent value.\n // Caution: we assume the exponent fits into 32 bits\n // using a bigger bit size impacts negatively the performance and should be done only if the exponent does not fit in 32 bits\n pub fn pow_32(self, exponent: Field) -> Field {\n let mut r: Field = 1;\n let b: [u1; 32] = exponent.to_le_bits();\n\n for i in 1..33 {\n r *= r;\n r = (b[32 - i] as Field) * (r * self) + (1 - b[32 - i] as Field) * r;\n }\n r\n }\n\n // Parity of (prime) Field element, i.e. sgn0(x mod p) = 0 if x `elem` {0, ..., p-1} is even, otherwise sgn0(x mod p) = 1.\n pub fn sgn0(self) -> u1 {\n self as u1\n }\n\n pub fn lt(self, another: Field) -> bool {\n if crate::compat::is_bn254() {\n bn254_lt(self, another)\n } else {\n lt_fallback(self, another)\n }\n }\n\n /// Convert a little endian byte array to a field element.\n /// If the provided byte array overflows the field modulus then the Field will silently wrap around.\n pub fn from_le_bytes<let N: u32>(bytes: [u8; N]) -> Field {\n let mut v = 1;\n let mut result = 0;\n\n for i in 0..N {\n result += (bytes[i] as Field) * v;\n v = v * 256;\n }\n result\n }\n\n /// Convert a big endian byte array to a field element.\n /// If the provided byte array overflows the field modulus then the Field will silently wrap around.\n pub fn from_be_bytes<let N: u32>(bytes: [u8; N]) -> Field {\n let mut v = 1;\n let mut result = 0;\n\n for i in 0..N {\n result += (bytes[N - 1 - i] as Field) * v;\n v = v * 256;\n }\n result\n }\n}\n\n#[builtin(modulus_num_bits)]\npub comptime fn modulus_num_bits() -> u64 {}\n\n#[builtin(modulus_be_bits)]\npub comptime fn modulus_be_bits() -> [u1] {}\n\n#[builtin(modulus_le_bits)]\npub comptime fn modulus_le_bits() -> [u1] {}\n\n#[builtin(modulus_be_bytes)]\npub comptime fn modulus_be_bytes() -> [u8] {}\n\n#[builtin(modulus_le_bytes)]\npub comptime fn modulus_le_bytes() -> [u8] {}\n\n/// An unconstrained only built in to efficiently compare fields.\n#[builtin(field_less_than)]\nunconstrained fn __field_less_than(x: Field, y: Field) -> bool {}\n\npub(crate) unconstrained fn field_less_than(x: Field, y: Field) -> bool {\n __field_less_than(x, y)\n}\n\n// Convert a 32 byte array to a field element by modding\npub fn bytes32_to_field(bytes32: [u8; 32]) -> Field {\n // Convert it to a field element\n let mut v = 1;\n let mut high = 0 as Field;\n let mut low = 0 as Field;\n\n for i in 0..16 {\n high = high + (bytes32[15 - i] as Field) * v;\n low = low + (bytes32[16 + 15 - i] as Field) * v;\n v = v * 256;\n }\n // Abuse that a % p + b % p = (a + b) % p and that low < p\n low + high * v\n}\n\nfn lt_fallback(x: Field, y: Field) -> bool {\n if is_unconstrained() {\n /// Safety: unconstrained context\n unsafe {\n //@safety : unconstrained context\n field_less_than(x, y)\n }\n } else {\n let x_bytes: [u8; 32] = x.to_le_bytes();\n let y_bytes: [u8; 32] = y.to_le_bytes();\n let mut x_is_lt = false;\n let mut done = false;\n for i in 0..32 {\n if (!done) {\n let x_byte = x_bytes[32 - 1 - i] as u8;\n let y_byte = y_bytes[32 - 1 - i] as u8;\n let bytes_match = x_byte == y_byte;\n if !bytes_match {\n x_is_lt = x_byte < y_byte;\n done = true;\n }\n }\n }\n x_is_lt\n }\n}\n\nmod tests {\n use super::field_less_than;\n\n #[test]\n // docs:start:to_be_bits_example\n fn test_to_be_bits() {\n let field = 2;\n let bits: [u1; 8] = field.to_be_bits();\n assert_eq(bits, [0, 0, 0, 0, 0, 0, 1, 0]);\n }\n // docs:end:to_be_bits_example\n\n #[test]\n // docs:start:to_le_bits_example\n fn test_to_le_bits() {\n let field = 2;\n let bits: [u1; 8] = field.to_le_bits();\n assert_eq(bits, [0, 1, 0, 0, 0, 0, 0, 0]);\n }\n // docs:end:to_le_bits_example\n\n #[test]\n // docs:start:to_be_bytes_example\n fn test_to_be_bytes() {\n let field = 2;\n let bytes: [u8; 8] = field.to_be_bytes();\n assert_eq(bytes, [0, 0, 0, 0, 0, 0, 0, 2]);\n assert_eq(Field::from_be_bytes::<8>(bytes), field);\n }\n // docs:end:to_be_bytes_example\n\n #[test]\n // docs:start:to_le_bytes_example\n fn test_to_le_bytes() {\n let field = 2;\n let bytes: [u8; 8] = field.to_le_bytes();\n assert_eq(bytes, [2, 0, 0, 0, 0, 0, 0, 0]);\n assert_eq(Field::from_le_bytes::<8>(bytes), field);\n }\n // docs:end:to_le_bytes_example\n\n #[test]\n // docs:start:to_be_radix_example\n fn test_to_be_radix() {\n let field = 2;\n let bytes: [u8; 8] = field.to_be_radix(256);\n assert_eq(bytes, [0, 0, 0, 0, 0, 0, 0, 2]);\n assert_eq(Field::from_be_bytes::<8>(bytes), field);\n }\n // docs:end:to_be_radix_example\n\n #[test]\n // docs:start:to_le_radix_example\n fn test_to_le_radix() {\n let field = 2;\n let bytes: [u8; 8] = field.to_le_radix(256);\n assert_eq(bytes, [2, 0, 0, 0, 0, 0, 0, 0]);\n assert_eq(Field::from_le_bytes::<8>(bytes), field);\n }\n // docs:end:to_le_radix_example\n\n #[test]\n unconstrained fn test_field_less_than() {\n assert(field_less_than(0, 1));\n assert(field_less_than(0, 0x100));\n assert(field_less_than(0x100, 0 - 1));\n assert(!field_less_than(0 - 1, 0));\n }\n}\n"
|
|
3829
|
+
"source": "pub mod bn254;\nuse crate::{runtime::is_unconstrained, static_assert};\nuse bn254::lt as bn254_lt;\n\nimpl Field {\n /// Asserts that `self` can be represented in `bit_size` bits.\n ///\n /// # Failures\n /// Causes a constraint failure for `Field` values exceeding `2^{bit_size}`.\n // docs:start:assert_max_bit_size\n pub fn assert_max_bit_size<let BIT_SIZE: u32>(self) {\n // docs:end:assert_max_bit_size\n static_assert(\n BIT_SIZE < modulus_num_bits() as u32,\n \"BIT_SIZE must be less than modulus_num_bits\",\n );\n self.__assert_max_bit_size(BIT_SIZE);\n }\n\n #[builtin(apply_range_constraint)]\n fn __assert_max_bit_size(self, bit_size: u32) {}\n\n /// Decomposes `self` into its little endian bit decomposition as a `[u1; N]` array.\n /// This slice will be zero padded should not all bits be necessary to represent `self`.\n ///\n /// # Failures\n /// Causes a constraint failure for `Field` values exceeding `2^N` as the resulting slice will not\n /// be able to represent the original `Field`.\n ///\n /// # Safety\n /// Values of `N` equal to or greater than the number of bits necessary to represent the `Field` modulus\n /// (e.g. 254 for the BN254 field) allow for multiple bit decompositions. This is due to how the `Field` will\n /// wrap around due to overflow when verifying the decomposition.\n #[builtin(to_le_bits)]\n fn _to_le_bits<let N: u32>(self: Self) -> [u1; N] {}\n\n /// Decomposes `self` into its big endian bit decomposition as a `[u1; N]` array.\n /// This array will be zero padded should not all bits be necessary to represent `self`.\n ///\n /// # Failures\n /// Causes a constraint failure for `Field` values exceeding `2^N` as the resulting slice will not\n /// be able to represent the original `Field`.\n ///\n /// # Safety\n /// Values of `N` equal to or greater than the number of bits necessary to represent the `Field` modulus\n /// (e.g. 254 for the BN254 field) allow for multiple bit decompositions. This is due to how the `Field` will\n /// wrap around due to overflow when verifying the decomposition.\n #[builtin(to_be_bits)]\n fn _to_be_bits<let N: u32>(self: Self) -> [u1; N] {}\n\n /// Decomposes `self` into its little endian bit decomposition as a `[u1; N]` array.\n /// This slice will be zero padded should not all bits be necessary to represent `self`.\n ///\n /// # Failures\n /// Causes a constraint failure for `Field` values exceeding `2^N` as the resulting slice will not\n /// be able to represent the original `Field`.\n ///\n /// # Safety\n /// The bit decomposition returned is canonical and is guaranteed to not overflow the modulus.\n // docs:start:to_le_bits\n pub fn to_le_bits<let N: u32>(self: Self) -> [u1; N] {\n // docs:end:to_le_bits\n let bits = self._to_le_bits();\n\n if !is_unconstrained() {\n // Ensure that the byte decomposition does not overflow the modulus\n let p = modulus_le_bits();\n assert(bits.len() <= p.len());\n let mut ok = bits.len() != p.len();\n for i in 0..N {\n if !ok {\n if (bits[N - 1 - i] != p[N - 1 - i]) {\n assert(p[N - 1 - i] == 1);\n ok = true;\n }\n }\n }\n assert(ok);\n }\n bits\n }\n\n /// Decomposes `self` into its big endian bit decomposition as a `[u1; N]` array.\n /// This array will be zero padded should not all bits be necessary to represent `self`.\n ///\n /// # Failures\n /// Causes a constraint failure for `Field` values exceeding `2^N` as the resulting slice will not\n /// be able to represent the original `Field`.\n ///\n /// # Safety\n /// The bit decomposition returned is canonical and is guaranteed to not overflow the modulus.\n // docs:start:to_be_bits\n pub fn to_be_bits<let N: u32>(self: Self) -> [u1; N] {\n // docs:end:to_be_bits\n let bits = self._to_be_bits();\n\n if !is_unconstrained() {\n // Ensure that the decomposition does not overflow the modulus\n let p = modulus_be_bits();\n assert(bits.len() <= p.len());\n let mut ok = bits.len() != p.len();\n for i in 0..N {\n if !ok {\n if (bits[i] != p[i]) {\n assert(p[i] == 1);\n ok = true;\n }\n }\n }\n assert(ok);\n }\n bits\n }\n\n /// Decomposes `self` into its little endian byte decomposition as a `[u8;N]` array\n /// This array will be zero padded should not all bytes be necessary to represent `self`.\n ///\n /// # Failures\n /// The length N of the array must be big enough to contain all the bytes of the 'self',\n /// and no more than the number of bytes required to represent the field modulus\n ///\n /// # Safety\n /// The result is ensured to be the canonical decomposition of the field element\n // docs:start:to_le_bytes\n pub fn to_le_bytes<let N: u32>(self: Self) -> [u8; N] {\n // docs:end:to_le_bytes\n static_assert(\n N <= modulus_le_bytes().len(),\n \"N must be less than or equal to modulus_le_bytes().len()\",\n );\n // Compute the byte decomposition\n let bytes = self.to_le_radix(256);\n\n if !is_unconstrained() {\n // Ensure that the byte decomposition does not overflow the modulus\n let p = modulus_le_bytes();\n assert(bytes.len() <= p.len());\n let mut ok = bytes.len() != p.len();\n for i in 0..N {\n if !ok {\n if (bytes[N - 1 - i] != p[N - 1 - i]) {\n assert(bytes[N - 1 - i] < p[N - 1 - i]);\n ok = true;\n }\n }\n }\n assert(ok);\n }\n bytes\n }\n\n /// Decomposes `self` into its big endian byte decomposition as a `[u8;N]` array of length required to represent the field modulus\n /// This array will be zero padded should not all bytes be necessary to represent `self`.\n ///\n /// # Failures\n /// The length N of the array must be big enough to contain all the bytes of the 'self',\n /// and no more than the number of bytes required to represent the field modulus\n ///\n /// # Safety\n /// The result is ensured to be the canonical decomposition of the field element\n // docs:start:to_be_bytes\n pub fn to_be_bytes<let N: u32>(self: Self) -> [u8; N] {\n // docs:end:to_be_bytes\n static_assert(\n N <= modulus_le_bytes().len(),\n \"N must be less than or equal to modulus_le_bytes().len()\",\n );\n // Compute the byte decomposition\n let bytes = self.to_be_radix(256);\n\n if !is_unconstrained() {\n // Ensure that the byte decomposition does not overflow the modulus\n let p = modulus_be_bytes();\n assert(bytes.len() <= p.len());\n let mut ok = bytes.len() != p.len();\n for i in 0..N {\n if !ok {\n if (bytes[i] != p[i]) {\n assert(bytes[i] < p[i]);\n ok = true;\n }\n }\n }\n assert(ok);\n }\n bytes\n }\n\n // docs:start:to_le_radix\n pub fn to_le_radix<let N: u32>(self: Self, radix: u32) -> [u8; N] {\n // Brillig does not need an immediate radix\n if !crate::runtime::is_unconstrained() {\n static_assert(1 < radix, \"radix must be greater than 1\");\n static_assert(radix <= 256, \"radix must be less than or equal to 256\");\n static_assert(radix & (radix - 1) == 0, \"radix must be a power of 2\");\n }\n self.__to_le_radix(radix)\n }\n // docs:end:to_le_radix\n\n // docs:start:to_be_radix\n pub fn to_be_radix<let N: u32>(self: Self, radix: u32) -> [u8; N] {\n // Brillig does not need an immediate radix\n if !crate::runtime::is_unconstrained() {\n crate::assert_constant(radix);\n }\n self.__to_be_radix(radix)\n }\n // docs:end:to_be_radix\n\n // `_radix` must be less than 256\n #[builtin(to_le_radix)]\n fn __to_le_radix<let N: u32>(self, radix: u32) -> [u8; N] {}\n\n // `_radix` must be less than 256\n #[builtin(to_be_radix)]\n fn __to_be_radix<let N: u32>(self, radix: u32) -> [u8; N] {}\n\n // Returns self to the power of the given exponent value.\n // Caution: we assume the exponent fits into 32 bits\n // using a bigger bit size impacts negatively the performance and should be done only if the exponent does not fit in 32 bits\n pub fn pow_32(self, exponent: Field) -> Field {\n let mut r: Field = 1;\n let b: [u1; 32] = exponent.to_le_bits();\n\n for i in 1..33 {\n r *= r;\n r = (b[32 - i] as Field) * (r * self) + (1 - b[32 - i] as Field) * r;\n }\n r\n }\n\n // Parity of (prime) Field element, i.e. sgn0(x mod p) = 0 if x `elem` {0, ..., p-1} is even, otherwise sgn0(x mod p) = 1.\n pub fn sgn0(self) -> u1 {\n self as u1\n }\n\n pub fn lt(self, another: Field) -> bool {\n if crate::compat::is_bn254() {\n bn254_lt(self, another)\n } else {\n lt_fallback(self, another)\n }\n }\n\n /// Convert a little endian byte array to a field element.\n /// If the provided byte array overflows the field modulus then the Field will silently wrap around.\n pub fn from_le_bytes<let N: u32>(bytes: [u8; N]) -> Field {\n static_assert(\n N <= modulus_le_bytes().len(),\n \"N must be less than or equal to modulus_le_bytes().len()\",\n );\n let mut v = 1;\n let mut result = 0;\n\n for i in 0..N {\n result += (bytes[i] as Field) * v;\n v = v * 256;\n }\n result\n }\n\n /// Convert a big endian byte array to a field element.\n /// If the provided byte array overflows the field modulus then the Field will silently wrap around.\n pub fn from_be_bytes<let N: u32>(bytes: [u8; N]) -> Field {\n let mut v = 1;\n let mut result = 0;\n\n for i in 0..N {\n result += (bytes[N - 1 - i] as Field) * v;\n v = v * 256;\n }\n result\n }\n}\n\n#[builtin(modulus_num_bits)]\npub comptime fn modulus_num_bits() -> u64 {}\n\n#[builtin(modulus_be_bits)]\npub comptime fn modulus_be_bits() -> [u1] {}\n\n#[builtin(modulus_le_bits)]\npub comptime fn modulus_le_bits() -> [u1] {}\n\n#[builtin(modulus_be_bytes)]\npub comptime fn modulus_be_bytes() -> [u8] {}\n\n#[builtin(modulus_le_bytes)]\npub comptime fn modulus_le_bytes() -> [u8] {}\n\n/// An unconstrained only built in to efficiently compare fields.\n#[builtin(field_less_than)]\nunconstrained fn __field_less_than(x: Field, y: Field) -> bool {}\n\npub(crate) unconstrained fn field_less_than(x: Field, y: Field) -> bool {\n __field_less_than(x, y)\n}\n\n// Convert a 32 byte array to a field element by modding\npub fn bytes32_to_field(bytes32: [u8; 32]) -> Field {\n // Convert it to a field element\n let mut v = 1;\n let mut high = 0 as Field;\n let mut low = 0 as Field;\n\n for i in 0..16 {\n high = high + (bytes32[15 - i] as Field) * v;\n low = low + (bytes32[16 + 15 - i] as Field) * v;\n v = v * 256;\n }\n // Abuse that a % p + b % p = (a + b) % p and that low < p\n low + high * v\n}\n\nfn lt_fallback(x: Field, y: Field) -> bool {\n if is_unconstrained() {\n /// Safety: unconstrained context\n unsafe {\n //@safety : unconstrained context\n field_less_than(x, y)\n }\n } else {\n let x_bytes: [u8; 32] = x.to_le_bytes();\n let y_bytes: [u8; 32] = y.to_le_bytes();\n let mut x_is_lt = false;\n let mut done = false;\n for i in 0..32 {\n if (!done) {\n let x_byte = x_bytes[32 - 1 - i] as u8;\n let y_byte = y_bytes[32 - 1 - i] as u8;\n let bytes_match = x_byte == y_byte;\n if !bytes_match {\n x_is_lt = x_byte < y_byte;\n done = true;\n }\n }\n }\n x_is_lt\n }\n}\n\nmod tests {\n use crate::{panic::panic, runtime};\n use super::field_less_than;\n\n #[test]\n // docs:start:to_be_bits_example\n fn test_to_be_bits() {\n let field = 2;\n let bits: [u1; 8] = field.to_be_bits();\n assert_eq(bits, [0, 0, 0, 0, 0, 0, 1, 0]);\n }\n // docs:end:to_be_bits_example\n\n #[test]\n // docs:start:to_le_bits_example\n fn test_to_le_bits() {\n let field = 2;\n let bits: [u1; 8] = field.to_le_bits();\n assert_eq(bits, [0, 1, 0, 0, 0, 0, 0, 0]);\n }\n // docs:end:to_le_bits_example\n\n #[test]\n // docs:start:to_be_bytes_example\n fn test_to_be_bytes() {\n let field = 2;\n let bytes: [u8; 8] = field.to_be_bytes();\n assert_eq(bytes, [0, 0, 0, 0, 0, 0, 0, 2]);\n assert_eq(Field::from_be_bytes::<8>(bytes), field);\n }\n // docs:end:to_be_bytes_example\n\n #[test]\n // docs:start:to_le_bytes_example\n fn test_to_le_bytes() {\n let field = 2;\n let bytes: [u8; 8] = field.to_le_bytes();\n assert_eq(bytes, [2, 0, 0, 0, 0, 0, 0, 0]);\n assert_eq(Field::from_le_bytes::<8>(bytes), field);\n }\n // docs:end:to_le_bytes_example\n\n #[test]\n // docs:start:to_be_radix_example\n fn test_to_be_radix() {\n let field = 2;\n let bytes: [u8; 8] = field.to_be_radix(256);\n assert_eq(bytes, [0, 0, 0, 0, 0, 0, 0, 2]);\n assert_eq(Field::from_be_bytes::<8>(bytes), field);\n }\n // docs:end:to_be_radix_example\n\n #[test]\n // docs:start:to_le_radix_example\n fn test_to_le_radix() {\n let field = 2;\n let bytes: [u8; 8] = field.to_le_radix(256);\n assert_eq(bytes, [2, 0, 0, 0, 0, 0, 0, 0]);\n assert_eq(Field::from_le_bytes::<8>(bytes), field);\n }\n // docs:end:to_le_radix_example\n\n #[test(should_fail_with = \"radix must be greater than 1\")]\n fn test_to_le_radix_1() {\n // this test should only fail in constrained mode\n if !runtime::is_unconstrained() {\n let field = 2;\n let _: [u8; 8] = field.to_le_radix(1);\n } else {\n panic(f\"radix must be greater than 1\");\n }\n }\n\n // TODO: Update this test to account for the Brillig restriction that the radix must be greater than 2\n // #[test]\n // fn test_to_le_radix_brillig_1() {\n // // this test should only fail in constrained mode\n // if runtime::is_unconstrained() {\n // let field = 1;\n // let out: [u8; 8] = field.to_le_radix(1);\n // crate::println(out);\n // let expected = [0; 8];\n // assert(out == expected, \"unexpected result\");\n // }\n // }\n\n #[test(should_fail_with = \"radix must be a power of 2\")]\n fn test_to_le_radix_3() {\n // this test should only fail in constrained mode\n if !runtime::is_unconstrained() {\n let field = 2;\n let _: [u8; 8] = field.to_le_radix(3);\n } else {\n panic(f\"radix must be a power of 2\");\n }\n }\n\n #[test]\n fn test_to_le_radix_brillig_3() {\n // this test should only fail in constrained mode\n if runtime::is_unconstrained() {\n let field = 1;\n let out: [u8; 8] = field.to_le_radix(3);\n let mut expected = [0; 8];\n expected[0] = 1;\n assert(out == expected, \"unexpected result\");\n }\n }\n\n #[test(should_fail_with = \"radix must be less than or equal to 256\")]\n fn test_to_le_radix_512() {\n // this test should only fail in constrained mode\n if !runtime::is_unconstrained() {\n let field = 2;\n let _: [u8; 8] = field.to_le_radix(512);\n } else {\n panic(f\"radix must be less than or equal to 256\")\n }\n }\n\n // TODO: Update this test to account for the Brillig restriction that the radix must be less than 512\n // #[test]\n // fn test_to_le_radix_brillig_512() {\n // // this test should only fail in constrained mode\n // if runtime::is_unconstrained() {\n // let field = 1;\n // let out: [u8; 8] = field.to_le_radix(512);\n // let mut expected = [0; 8];\n // expected[0] = 1;\n // assert(out == expected, \"unexpected result\");\n // }\n // }\n\n #[test]\n unconstrained fn test_field_less_than() {\n assert(field_less_than(0, 1));\n assert(field_less_than(0, 0x100));\n assert(field_less_than(0x100, 0 - 1));\n assert(!field_less_than(0 - 1, 0));\n }\n}\n"
|
|
3830
3830
|
},
|
|
3831
|
-
"
|
|
3831
|
+
"259": {
|
|
3832
3832
|
"path": "/build-volume/noir-projects/noir-protocol-circuits/crates/types/src/hash.nr",
|
|
3833
|
-
"source": "use crate::{\n abis::{\n contract_class_function_leaf_preimage::ContractClassFunctionLeafPreimage,\n function_selector::FunctionSelector,\n log_hash::{LogHash, ScopedLogHash},\n note_hash::ScopedNoteHash,\n nullifier::ScopedNullifier,\n private_log::{PrivateLog, PrivateLogData},\n side_effect::{OrderedValue, scoped::Scoped},\n },\n address::{AztecAddress, EthAddress},\n constants::{\n FUNCTION_TREE_HEIGHT, GENERATOR_INDEX__NOTE_HASH_NONCE, GENERATOR_INDEX__OUTER_NULLIFIER,\n GENERATOR_INDEX__SILOED_NOTE_HASH, GENERATOR_INDEX__UNIQUE_NOTE_HASH,\n },\n merkle_tree::root::root_from_sibling_path,\n messaging::l2_to_l1_message::{L2ToL1Message, ScopedL2ToL1Message},\n poseidon2::Poseidon2Sponge,\n traits::{FromField, Hash, is_empty, ToField},\n utils::field::field_from_bytes_32_trunc,\n};\nuse super::{constants::TWO_POW_64, utils::{arrays::array_concat, field::field_from_bytes}};\n\npub fn sha256_to_field<let N: u32>(bytes_to_hash: [u8; N]) -> Field {\n let sha256_hashed = std::hash::sha256(bytes_to_hash);\n let hash_in_a_field = field_from_bytes_32_trunc(sha256_hashed);\n\n hash_in_a_field\n}\n\npub fn private_functions_root_from_siblings(\n selector: FunctionSelector,\n vk_hash: Field,\n function_leaf_index: Field,\n function_leaf_sibling_path: [Field; FUNCTION_TREE_HEIGHT],\n) -> Field {\n let function_leaf_preimage = ContractClassFunctionLeafPreimage { selector, vk_hash };\n let function_leaf = function_leaf_preimage.hash();\n root_from_sibling_path(\n function_leaf,\n function_leaf_index,\n function_leaf_sibling_path,\n )\n}\n\npub fn compute_note_hash_nonce(first_nullifier_in_tx: Field, note_index_in_tx: u32) -> Field {\n // Hashing the first nullifier with note index in tx is guaranteed to be unique (because all nullifiers are also\n // unique).\n poseidon2_hash_with_separator(\n [first_nullifier_in_tx, note_index_in_tx as Field],\n GENERATOR_INDEX__NOTE_HASH_NONCE,\n )\n}\n\npub fn compute_unique_note_hash(nonce: Field, siloed_note_hash: Field) -> Field {\n let inputs = [nonce, siloed_note_hash];\n poseidon2_hash_with_separator(inputs, GENERATOR_INDEX__UNIQUE_NOTE_HASH)\n}\n\npub fn compute_siloed_note_hash(app: AztecAddress, note_hash: Field) -> Field {\n poseidon2_hash_with_separator(\n [app.to_field(), note_hash],\n GENERATOR_INDEX__SILOED_NOTE_HASH,\n )\n}\n\n/// Computes unique note hashes from siloed note hashes\npub fn compute_unique_siloed_note_hash(\n siloed_note_hash: Field,\n first_nullifier: Field,\n note_index_in_tx: u32,\n) -> Field {\n if siloed_note_hash == 0 {\n 0\n } else {\n let nonce = compute_note_hash_nonce(first_nullifier, note_index_in_tx);\n compute_unique_note_hash(nonce, siloed_note_hash)\n }\n}\n\n/// Siloing in the context of Aztec refers to the process of hashing a note hash with a contract address (this way\n/// the note hash is scoped to a specific contract). This is used to prevent intermingling of notes between contracts.\npub fn silo_note_hash(note_hash: ScopedNoteHash) -> Field {\n if note_hash.contract_address.is_zero() {\n 0\n } else {\n compute_siloed_note_hash(note_hash.contract_address, note_hash.value())\n }\n}\n\npub fn compute_siloed_nullifier(app: AztecAddress, nullifier: Field) -> Field {\n poseidon2_hash_with_separator(\n [app.to_field(), nullifier],\n GENERATOR_INDEX__OUTER_NULLIFIER,\n )\n}\n\npub fn silo_nullifier(nullifier: ScopedNullifier) -> Field {\n if nullifier.contract_address.is_zero() {\n nullifier.value() // Return value instead of 0 because the first nullifier's contract address is zero.\n } else {\n compute_siloed_nullifier(nullifier.contract_address, nullifier.value())\n }\n}\n\npub fn compute_siloed_private_log_field(contract_address: AztecAddress, field: Field) -> Field {\n poseidon2_hash([contract_address.to_field(), field])\n}\n\npub fn silo_private_log(private_log: Scoped<PrivateLogData>) -> PrivateLog {\n if private_log.contract_address.is_zero() {\n private_log.inner.log\n } else {\n let mut fields = private_log.inner.log.fields;\n fields[0] = compute_siloed_private_log_field(private_log.contract_address, fields[0]);\n PrivateLog { fields }\n }\n}\n\nfn compute_siloed_contract_class_log_hash(address: AztecAddress, log_hash: Field) -> Field {\n accumulate_sha256([address.to_field(), log_hash])\n}\n\npub fn silo_contract_class_log_hash(log_hash: ScopedLogHash) -> Field {\n if log_hash.contract_address.is_zero() {\n 0\n } else {\n compute_siloed_contract_class_log_hash(log_hash.contract_address, log_hash.value())\n }\n}\n\npub fn merkle_hash(left: Field, right: Field) -> Field {\n poseidon2_hash([left, right])\n}\n\npub fn compute_l2_to_l1_hash(\n contract_address: AztecAddress,\n recipient: EthAddress,\n content: Field,\n rollup_version_id: Field,\n chain_id: Field,\n) -> Field {\n let mut bytes: [u8; 160] = std::mem::zeroed();\n\n let inputs =\n [contract_address.to_field(), rollup_version_id, recipient.to_field(), chain_id, content];\n for i in 0..5 {\n // TODO are bytes be in fr.to_buffer() ?\n let item_bytes: [u8; 32] = inputs[i].to_be_bytes();\n for j in 0..32 {\n bytes[32 * i + j] = item_bytes[j];\n }\n }\n\n sha256_to_field(bytes)\n}\n\npub fn silo_l2_to_l1_message(\n msg: ScopedL2ToL1Message,\n rollup_version_id: Field,\n chain_id: Field,\n) -> Field {\n if msg.contract_address.is_zero() {\n 0\n } else {\n compute_l2_to_l1_hash(\n msg.contract_address,\n msg.message.recipient,\n msg.message.content,\n rollup_version_id,\n chain_id,\n )\n }\n}\n\n// Computes sha256 hash of 2 input hashes.\n//\n// NB: This method now takes in two 31 byte fields - it assumes that any input\n// is the result of a sha_to_field hash and => is truncated\n//\n// TODO(Jan and David): This is used for the encrypted_log hashes.\n// Can we check to see if we can just use hash_to_field or pedersen_compress here?\n//\npub fn accumulate_sha256(input: [Field; 2]) -> Field {\n // This is a note about the cpp code, since it takes an array of Fields\n // instead of a U128.\n // 4 Field elements when converted to bytes will usually\n // occupy 4 * 32 = 128 bytes.\n // However, this function is making the assumption that each Field\n // only occupies 128 bits.\n //\n // TODO(David): This does not seem to be getting guaranteed anywhere in the code?\n // Concatentate two fields into 32x2 = 64 bytes\n // accumulate_sha256 assumes that the inputs are pre-truncated 31 byte numbers\n let mut hash_input_flattened = [0; 64];\n for offset in 0..input.len() {\n let input_as_bytes: [u8; 32] = input[offset].to_be_bytes();\n for byte_index in 0..32 {\n hash_input_flattened[offset * 32 + byte_index] = input_as_bytes[byte_index];\n }\n }\n\n sha256_to_field(hash_input_flattened)\n}\n\n// Computes the final logs hash for a tx.\npub fn compute_tx_logs_hash<let N: u32>(logs: [LogHash; N]) -> Field {\n // Convert each field element into a byte array and append the bytes to `hash_input_flattened`\n let mut hash_input_flattened = [0; N * 32];\n for offset in 0..N {\n // TODO: This is not checking that the decomposition is smaller than P\n let input_as_bytes: [u8; 32] = logs[offset].value.to_be_radix(256);\n for byte_index in 0..32 {\n hash_input_flattened[offset * 32 + byte_index] = input_as_bytes[byte_index];\n }\n }\n // Ideally we would push to a slice then hash, but there is no sha_slice\n // Hardcode to 256 bytes for now\n let mut hash = sha256_to_field(hash_input_flattened);\n // Not having a 0 value hash for empty logs causes issues with empty txs\n // used for padding. Returning early is currently unsupported.\n // We always provide sorted logs here, so 0 being empty means all are empty.\n if is_empty(logs[0]) {\n hash = 0;\n }\n hash\n}\n\npub fn verification_key_hash<let N: u32>(key: [Field; N]) -> Field {\n crate::hash::poseidon2_hash(key)\n}\n\n#[inline_always]\npub fn pedersen_hash<let N: u32>(inputs: [Field; N], hash_index: u32) -> Field {\n std::hash::pedersen_hash_with_separator(inputs, hash_index)\n}\n\npub fn poseidon2_hash<let N: u32>(inputs: [Field; N]) -> Field {\n std::hash::poseidon2::Poseidon2::hash(inputs, N)\n}\n\n#[no_predicates]\npub fn poseidon2_hash_with_separator<let N: u32, T>(inputs: [Field; N], separator: T) -> Field\nwhere\n T: ToField,\n{\n let inputs_with_separator = array_concat([separator.to_field()], inputs);\n poseidon2_hash(inputs_with_separator)\n}\n\n// Performs a fixed length hash with a subarray of the given input.\n// Useful for SpongeBlob in which we aborb M things and want to check it vs a hash of M elts of an N-len array.\n// Using stdlib poseidon, this will always absorb an extra 1 as a 'variable' hash, and not match spongeblob.squeeze()\n// or any ts implementation. Also checks that any remaining elts not hashed are empty.\n#[no_predicates]\npub fn poseidon2_hash_subarray<let N: u32>(input: [Field; N], in_len: u32) -> Field {\n let mut sponge = poseidon2_absorb_chunks(input, in_len, false);\n sponge.squeeze()\n}\n\n// NB the below is the same as std::hash::poseidon2::Poseidon2::hash(), but replacing a range check with a bit check,\n// and absorbing in chunks of 3 below.\n#[no_predicates]\npub fn poseidon2_cheaper_variable_hash<let N: u32>(input: [Field; N], in_len: u32) -> Field {\n let mut sponge = poseidon2_absorb_chunks(input, in_len, true);\n // In the case where the hash preimage is variable-length, we append `1` to the end of the input, to distinguish\n // from fixed-length hashes. (the combination of this additional field element + the hash IV ensures\n // fixed-length and variable-length hashes do not collide)\n if in_len != N {\n sponge.absorb(1);\n }\n sponge.squeeze()\n}\n\n// The below fn reduces gates of a conditional poseidon2 hash by approx 3x (thank you ~* Giant Brain Dev @IlyasRidhuan *~ for the idea)\n// Why? Because when we call stdlib poseidon, we call absorb for each item. When absorbing is conditional, it seems the compiler does not know\n// what cache_size will be when calling absorb, so it assigns the permutation gates for /each i/ rather than /every 3rd i/, which is actually required.\n// The below code forces the compiler to:\n// - absorb normally up to 2 times to set cache_size to 1\n// - absorb in chunks of 3 to ensure perm. only happens every 3rd absorb\n// - absorb normally up to 2 times to add any remaining values to the hash\n// In fixed len hashes, the compiler is able to tell that it will only need to perform the permutation every 3 absorbs.\n// NB: it also replaces unnecessary range checks (i < thing) with a bit check (&= i != thing), which alone reduces the gates of a var. hash by half.\n\n#[no_predicates]\nfn poseidon2_absorb_chunks<let N: u32>(\n input: [Field; N],\n in_len: u32,\n variable: bool,\n) -> Poseidon2Sponge {\n let iv: Field = (in_len as Field) * TWO_POW_64;\n let mut sponge = Poseidon2Sponge::new(iv);\n // Even though shift is always 1 here, if we input in_len = 0 we get an underflow\n // since we cannot isolate computation branches. The below is just to avoid that.\n let shift = if in_len == 0 { 0 } else { 1 };\n if in_len != 0 {\n // cache_size = 0, init absorb\n sponge.cache[0] = input[0];\n sponge.cache_size = 1;\n // shift = num elts already added to make cache_size 1 = 1 for a fresh sponge\n // M = max_chunks = (N - 1 - (N - 1) % 3) / 3: (must be written as a fn of N to compile)\n // max_remainder = (N - 1) % 3;\n // max_chunks = (N - 1 - max_remainder) / 3;\n sponge = poseidon2_absorb_chunks_loop::<N, (N - 1 - (N - 1) % 3) / 3>(\n sponge,\n input,\n in_len,\n variable,\n shift,\n );\n }\n sponge\n}\n\n// NB: If it's not required to check that the non-absorbed elts of 'input' are 0s, set skip_0_check=true\n#[no_predicates]\npub fn poseidon2_absorb_chunks_existing_sponge<let N: u32>(\n in_sponge: Poseidon2Sponge,\n input: [Field; N],\n in_len: u32,\n skip_0_check: bool,\n) -> Poseidon2Sponge {\n let mut sponge = in_sponge;\n // 'shift' is to account for already added inputs\n let mut shift = 0;\n // 'stop' is to avoid an underflow when inputting in_len = 0\n let mut stop = false;\n for i in 0..3 {\n if shift == in_len {\n stop = true;\n }\n if (sponge.cache_size != 1) & (!stop) {\n sponge.absorb(input[i]);\n shift += 1;\n }\n }\n sponge = if stop {\n sponge\n } else {\n // max_chunks = (N - (N % 3)) / 3;\n poseidon2_absorb_chunks_loop::<N, (N - (N % 3)) / 3>(\n sponge,\n input,\n in_len,\n skip_0_check,\n shift,\n )\n };\n sponge\n}\n\n// The below is the loop to absorb elts into a poseidon sponge in chunks of 3\n// shift - the num of elts already absorbed to ensure the sponge's cache_size = 1\n// M - the max number of chunks required to absorb N things (must be comptime to compile)\n// NB: The 0 checks ('Found non-zero field...') are messy, but having a separate loop over N to check\n// for 0s costs 3N gates. Current approach is approx 2N gates.\n#[no_predicates]\nfn poseidon2_absorb_chunks_loop<let N: u32, let M: u32>(\n in_sponge: Poseidon2Sponge,\n input: [Field; N],\n in_len: u32,\n variable: bool,\n shift: u32,\n) -> Poseidon2Sponge {\n assert(in_len <= N, \"Given in_len to absorb is larger than the input array len\");\n // When we have an existing sponge, we may have a shift of 0, and the final 'k+2' below = N\n // The below avoids an overflow\n let skip_last = 3 * M == N;\n // Writing in_sponge: &mut does not compile\n let mut sponge = in_sponge;\n let mut should_add = true;\n // The num of things left over after absorbing in 3s\n let remainder = (in_len - shift) % 3;\n // The num of chunks of 3 to absorb (maximum M)\n let chunks = (in_len - shift - remainder) / 3;\n for i in 0..M {\n // Now we loop through cache size = 1 -> 3\n should_add &= i != chunks;\n // This is the index at the start of the chunk (for readability)\n let k = 3 * i + shift;\n if should_add {\n // cache_size = 1, 2 => just assign\n sponge.cache[1] = input[k];\n sponge.cache[2] = input[k + 1];\n // cache_size = 3 => duplex + perm\n for j in 0..3 {\n sponge.state[j] += sponge.cache[j];\n }\n sponge.state = std::hash::poseidon2_permutation(sponge.state, 4);\n sponge.cache[0] = input[k + 2];\n // cache_size is now 1 again, repeat loop\n } else if (!variable) & (i != chunks) {\n // if we are hashing a fixed len array which is a subarray, we check the remaining elts are 0\n // NB: we don't check at i == chunks, because that chunk contains elts to be absorbed or checked below\n let last_0 = if (i == M - 1) & (skip_last) {\n 0\n } else {\n input[k + 2]\n };\n let all_0 = (input[k] == 0) & (input[k + 1] == 0) & (last_0 == 0);\n assert(all_0, \"Found non-zero field after breakpoint\");\n }\n }\n // we have 'remainder' num of items left to absorb\n should_add = true;\n // below is to avoid overflows (i.e. if inlen is close to N)\n let mut should_check = !variable;\n for i in 0..3 {\n should_add &= i != remainder;\n should_check &= in_len - remainder + i != N;\n if should_add {\n // we want to absorb the final 'remainder' items\n sponge.absorb(input[in_len - remainder + i]);\n } else if should_check {\n assert(input[in_len - remainder + i] == 0, \"Found non-zero field after breakpoint\");\n }\n }\n sponge\n}\n\npub fn poseidon2_hash_with_separator_slice<T>(inputs: [Field], separator: T) -> Field\nwhere\n T: ToField,\n{\n let in_len = inputs.len() + 1;\n let iv: Field = (in_len as Field) * TWO_POW_64;\n let mut sponge = Poseidon2Sponge::new(iv);\n sponge.absorb(separator.to_field());\n\n for i in 0..inputs.len() {\n sponge.absorb(inputs[i]);\n }\n\n sponge.squeeze()\n}\n\n#[no_predicates]\npub fn poseidon2_hash_bytes<let N: u32>(inputs: [u8; N]) -> Field {\n let mut fields = [0; (N + 30) / 31];\n let mut field_index = 0;\n let mut current_field = [0; 31];\n for i in 0..inputs.len() {\n let index = i % 31;\n current_field[index] = inputs[i];\n if index == 30 {\n fields[field_index] = field_from_bytes(current_field, false);\n current_field = [0; 31];\n field_index += 1;\n }\n }\n if field_index != fields.len() {\n fields[field_index] = field_from_bytes(current_field, false);\n }\n poseidon2_hash(fields)\n}\n\n#[test]\nfn poseidon_chunks_matches_fixed() {\n let in_len = 501;\n let mut input: [Field; 4096] = [0; 4096];\n let mut fixed_input = [3; 501];\n assert(in_len == fixed_input.len()); // sanity check\n for i in 0..in_len {\n input[i] = 3;\n }\n let sub_chunk_hash = poseidon2_hash_subarray(input, in_len);\n let fixed_len_hash = std::hash::poseidon2::Poseidon2::hash(fixed_input, fixed_input.len());\n assert(sub_chunk_hash == fixed_len_hash);\n}\n\n#[test]\nfn poseidon_chunks_matches_variable() {\n let in_len = 501;\n let mut input: [Field; 4096] = [0; 4096];\n for i in 0..in_len {\n input[i] = 3;\n }\n let variable_chunk_hash = poseidon2_cheaper_variable_hash(input, in_len);\n let variable_len_hash = std::hash::poseidon2::Poseidon2::hash(input, in_len);\n assert(variable_chunk_hash == variable_len_hash);\n}\n\n#[test]\nfn existing_sponge_poseidon_chunks_matches_fixed() {\n let in_len = 501;\n let mut input: [Field; 4096] = [0; 4096];\n let mut fixed_input = [3; 501];\n assert(in_len == fixed_input.len()); // sanity check\n for i in 0..in_len {\n input[i] = 3;\n }\n // absorb 250 of the 501 things\n let empty_sponge = Poseidon2Sponge::new((in_len as Field) * TWO_POW_64);\n let first_sponge = poseidon2_absorb_chunks_existing_sponge(empty_sponge, input, 250, true);\n // now absorb the final 251 (since they are all 3s, im being lazy and not making a new array)\n let mut final_sponge = poseidon2_absorb_chunks_existing_sponge(first_sponge, input, 251, true);\n let fixed_len_hash = Poseidon2Sponge::hash(fixed_input, fixed_input.len());\n assert(final_sponge.squeeze() == fixed_len_hash);\n}\n\n#[test]\nfn poseidon_chunks_empty_inputs() {\n let in_len = 0;\n let mut input: [Field; 4096] = [0; 4096];\n let mut constructed_empty_sponge = poseidon2_absorb_chunks(input, in_len, true);\n let mut first_sponge =\n poseidon2_absorb_chunks_existing_sponge(constructed_empty_sponge, input, in_len, true);\n assert(first_sponge.squeeze() == constructed_empty_sponge.squeeze());\n}\n\n#[test]\nfn smoke_sha256_to_field() {\n let full_buffer = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,\n 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,\n 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,\n 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,\n 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112,\n 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130,\n 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148,\n 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,\n ];\n let result = sha256_to_field(full_buffer);\n\n assert(result == 0x448ebbc9e1a31220a2f3830c18eef61b9bd070e5084b7fa2a359fe729184c7);\n\n // to show correctness of the current ver (truncate one byte) vs old ver (mod full bytes):\n let result_bytes = std::hash::sha256(full_buffer);\n let truncated_field = crate::utils::field::field_from_bytes_32_trunc(result_bytes);\n assert(truncated_field == result);\n let mod_res = result + (result_bytes[31] as Field);\n assert(mod_res == 0x448ebbc9e1a31220a2f3830c18eef61b9bd070e5084b7fa2a359fe729184e0);\n}\n\n#[test]\nfn compute_l2_l1_hash() {\n // All zeroes\n let hash_result =\n compute_l2_to_l1_hash(AztecAddress::from_field(0), EthAddress::zero(), 0, 0, 0);\n assert(hash_result == 0xb393978842a0fa3d3e1470196f098f473f9678e72463cb65ec4ab5581856c2);\n\n // Non-zero case\n let hash_result = compute_l2_to_l1_hash(\n AztecAddress::from_field(1),\n EthAddress::from_field(3),\n 5,\n 2,\n 4,\n );\n assert(hash_result == 0x3f88c1044a05e5340ed20466276500f6d45ca5603913b9091e957161734e16);\n}\n\n#[test]\nfn silo_l2_to_l1_message_matches_typescript() {\n let version = 4;\n let chainId = 5;\n\n let hash = silo_l2_to_l1_message(\n ScopedL2ToL1Message {\n message: L2ToL1Message { recipient: EthAddress::from_field(1), content: 2, counter: 0 },\n contract_address: AztecAddress::from_field(3),\n },\n version,\n chainId,\n );\n\n // The following value was generated by `l2_to_l1_message.test.ts`\n let hash_from_typescript = 0x00c6155d69febb9d5039b374dd4f77bf57b7c881709aa524a18acaa0bd57476a;\n\n assert_eq(hash, hash_from_typescript);\n}\n"
|
|
3833
|
+
"source": "use crate::{\n abis::{\n contract_class_function_leaf_preimage::ContractClassFunctionLeafPreimage,\n function_selector::FunctionSelector,\n log_hash::{LogHash, ScopedLogHash},\n note_hash::ScopedNoteHash,\n nullifier::ScopedNullifier,\n private_log::{PrivateLog, PrivateLogData},\n side_effect::{OrderedValue, scoped::Scoped},\n },\n address::{AztecAddress, EthAddress},\n constants::{\n FUNCTION_TREE_HEIGHT, GENERATOR_INDEX__NOTE_HASH_NONCE, GENERATOR_INDEX__OUTER_NULLIFIER,\n GENERATOR_INDEX__SILOED_NOTE_HASH, GENERATOR_INDEX__UNIQUE_NOTE_HASH,\n },\n merkle_tree::root::root_from_sibling_path,\n messaging::l2_to_l1_message::{L2ToL1Message, ScopedL2ToL1Message},\n poseidon2::Poseidon2Sponge,\n traits::{FromField, Hash, is_empty, ToField},\n utils::field::field_from_bytes_32_trunc,\n};\nuse super::{constants::TWO_POW_64, utils::{arrays::array_concat, field::field_from_bytes}};\n\npub fn sha256_to_field<let N: u32>(bytes_to_hash: [u8; N]) -> Field {\n let sha256_hashed = sha256::digest(bytes_to_hash);\n let hash_in_a_field = field_from_bytes_32_trunc(sha256_hashed);\n\n hash_in_a_field\n}\n\npub fn private_functions_root_from_siblings(\n selector: FunctionSelector,\n vk_hash: Field,\n function_leaf_index: Field,\n function_leaf_sibling_path: [Field; FUNCTION_TREE_HEIGHT],\n) -> Field {\n let function_leaf_preimage = ContractClassFunctionLeafPreimage { selector, vk_hash };\n let function_leaf = function_leaf_preimage.hash();\n root_from_sibling_path(\n function_leaf,\n function_leaf_index,\n function_leaf_sibling_path,\n )\n}\n\npub fn compute_note_hash_nonce(first_nullifier_in_tx: Field, note_index_in_tx: u32) -> Field {\n // Hashing the first nullifier with note index in tx is guaranteed to be unique (because all nullifiers are also\n // unique).\n poseidon2_hash_with_separator(\n [first_nullifier_in_tx, note_index_in_tx as Field],\n GENERATOR_INDEX__NOTE_HASH_NONCE,\n )\n}\n\npub fn compute_unique_note_hash(nonce: Field, siloed_note_hash: Field) -> Field {\n let inputs = [nonce, siloed_note_hash];\n poseidon2_hash_with_separator(inputs, GENERATOR_INDEX__UNIQUE_NOTE_HASH)\n}\n\npub fn compute_siloed_note_hash(app: AztecAddress, note_hash: Field) -> Field {\n poseidon2_hash_with_separator(\n [app.to_field(), note_hash],\n GENERATOR_INDEX__SILOED_NOTE_HASH,\n )\n}\n\n/// Computes unique note hashes from siloed note hashes\npub fn compute_unique_siloed_note_hash(\n siloed_note_hash: Field,\n first_nullifier: Field,\n note_index_in_tx: u32,\n) -> Field {\n if siloed_note_hash == 0 {\n 0\n } else {\n let nonce = compute_note_hash_nonce(first_nullifier, note_index_in_tx);\n compute_unique_note_hash(nonce, siloed_note_hash)\n }\n}\n\n/// Siloing in the context of Aztec refers to the process of hashing a note hash with a contract address (this way\n/// the note hash is scoped to a specific contract). This is used to prevent intermingling of notes between contracts.\npub fn silo_note_hash(note_hash: ScopedNoteHash) -> Field {\n if note_hash.contract_address.is_zero() {\n 0\n } else {\n compute_siloed_note_hash(note_hash.contract_address, note_hash.value())\n }\n}\n\npub fn compute_siloed_nullifier(app: AztecAddress, nullifier: Field) -> Field {\n poseidon2_hash_with_separator(\n [app.to_field(), nullifier],\n GENERATOR_INDEX__OUTER_NULLIFIER,\n )\n}\n\npub fn silo_nullifier(nullifier: ScopedNullifier) -> Field {\n if nullifier.contract_address.is_zero() {\n nullifier.value() // Return value instead of 0 because the first nullifier's contract address is zero.\n } else {\n compute_siloed_nullifier(nullifier.contract_address, nullifier.value())\n }\n}\n\npub fn compute_siloed_private_log_field(contract_address: AztecAddress, field: Field) -> Field {\n poseidon2_hash([contract_address.to_field(), field])\n}\n\npub fn silo_private_log(private_log: Scoped<PrivateLogData>) -> PrivateLog {\n if private_log.contract_address.is_zero() {\n private_log.inner.log\n } else {\n let mut fields = private_log.inner.log.fields;\n fields[0] = compute_siloed_private_log_field(private_log.contract_address, fields[0]);\n PrivateLog { fields }\n }\n}\n\nfn compute_siloed_contract_class_log_hash(address: AztecAddress, log_hash: Field) -> Field {\n accumulate_sha256([address.to_field(), log_hash])\n}\n\npub fn silo_contract_class_log_hash(log_hash: ScopedLogHash) -> Field {\n if log_hash.contract_address.is_zero() {\n 0\n } else {\n compute_siloed_contract_class_log_hash(log_hash.contract_address, log_hash.value())\n }\n}\n\npub fn merkle_hash(left: Field, right: Field) -> Field {\n poseidon2_hash([left, right])\n}\n\npub fn compute_l2_to_l1_hash(\n contract_address: AztecAddress,\n recipient: EthAddress,\n content: Field,\n rollup_version_id: Field,\n chain_id: Field,\n) -> Field {\n let mut bytes: [u8; 160] = std::mem::zeroed();\n\n let inputs =\n [contract_address.to_field(), rollup_version_id, recipient.to_field(), chain_id, content];\n for i in 0..5 {\n // TODO are bytes be in fr.to_buffer() ?\n let item_bytes: [u8; 32] = inputs[i].to_be_bytes();\n for j in 0..32 {\n bytes[32 * i + j] = item_bytes[j];\n }\n }\n\n sha256_to_field(bytes)\n}\n\npub fn silo_l2_to_l1_message(\n msg: ScopedL2ToL1Message,\n rollup_version_id: Field,\n chain_id: Field,\n) -> Field {\n if msg.contract_address.is_zero() {\n 0\n } else {\n compute_l2_to_l1_hash(\n msg.contract_address,\n msg.message.recipient,\n msg.message.content,\n rollup_version_id,\n chain_id,\n )\n }\n}\n\n// Computes sha256 hash of 2 input hashes.\n//\n// NB: This method now takes in two 31 byte fields - it assumes that any input\n// is the result of a sha_to_field hash and => is truncated\n//\n// TODO(Jan and David): This is used for the encrypted_log hashes.\n// Can we check to see if we can just use hash_to_field or pedersen_compress here?\n//\npub fn accumulate_sha256(input: [Field; 2]) -> Field {\n // This is a note about the cpp code, since it takes an array of Fields\n // instead of a U128.\n // 4 Field elements when converted to bytes will usually\n // occupy 4 * 32 = 128 bytes.\n // However, this function is making the assumption that each Field\n // only occupies 128 bits.\n //\n // TODO(David): This does not seem to be getting guaranteed anywhere in the code?\n // Concatentate two fields into 32x2 = 64 bytes\n // accumulate_sha256 assumes that the inputs are pre-truncated 31 byte numbers\n let mut hash_input_flattened = [0; 64];\n for offset in 0..input.len() {\n let input_as_bytes: [u8; 32] = input[offset].to_be_bytes();\n for byte_index in 0..32 {\n hash_input_flattened[offset * 32 + byte_index] = input_as_bytes[byte_index];\n }\n }\n\n sha256_to_field(hash_input_flattened)\n}\n\n// Computes the final logs hash for a tx.\npub fn compute_tx_logs_hash<let N: u32>(logs: [LogHash; N]) -> Field {\n // Convert each field element into a byte array and append the bytes to `hash_input_flattened`\n let mut hash_input_flattened = [0; N * 32];\n for offset in 0..N {\n // TODO: This is not checking that the decomposition is smaller than P\n let input_as_bytes: [u8; 32] = logs[offset].value.to_be_radix(256);\n for byte_index in 0..32 {\n hash_input_flattened[offset * 32 + byte_index] = input_as_bytes[byte_index];\n }\n }\n // Ideally we would push to a slice then hash, but there is no sha_slice\n // Hardcode to 256 bytes for now\n let mut hash = sha256_to_field(hash_input_flattened);\n // Not having a 0 value hash for empty logs causes issues with empty txs\n // used for padding. Returning early is currently unsupported.\n // We always provide sorted logs here, so 0 being empty means all are empty.\n if is_empty(logs[0]) {\n hash = 0;\n }\n hash\n}\n\npub fn verification_key_hash<let N: u32>(key: [Field; N]) -> Field {\n crate::hash::poseidon2_hash(key)\n}\n\n#[inline_always]\npub fn pedersen_hash<let N: u32>(inputs: [Field; N], hash_index: u32) -> Field {\n std::hash::pedersen_hash_with_separator(inputs, hash_index)\n}\n\npub fn poseidon2_hash<let N: u32>(inputs: [Field; N]) -> Field {\n std::hash::poseidon2::Poseidon2::hash(inputs, N)\n}\n\n#[no_predicates]\npub fn poseidon2_hash_with_separator<let N: u32, T>(inputs: [Field; N], separator: T) -> Field\nwhere\n T: ToField,\n{\n let inputs_with_separator = array_concat([separator.to_field()], inputs);\n poseidon2_hash(inputs_with_separator)\n}\n\n// Performs a fixed length hash with a subarray of the given input.\n// Useful for SpongeBlob in which we aborb M things and want to check it vs a hash of M elts of an N-len array.\n// Using stdlib poseidon, this will always absorb an extra 1 as a 'variable' hash, and not match spongeblob.squeeze()\n// or any ts implementation. Also checks that any remaining elts not hashed are empty.\n#[no_predicates]\npub fn poseidon2_hash_subarray<let N: u32>(input: [Field; N], in_len: u32) -> Field {\n let mut sponge = poseidon2_absorb_chunks(input, in_len, false);\n sponge.squeeze()\n}\n\n// NB the below is the same as std::hash::poseidon2::Poseidon2::hash(), but replacing a range check with a bit check,\n// and absorbing in chunks of 3 below.\n#[no_predicates]\npub fn poseidon2_cheaper_variable_hash<let N: u32>(input: [Field; N], in_len: u32) -> Field {\n let mut sponge = poseidon2_absorb_chunks(input, in_len, true);\n // In the case where the hash preimage is variable-length, we append `1` to the end of the input, to distinguish\n // from fixed-length hashes. (the combination of this additional field element + the hash IV ensures\n // fixed-length and variable-length hashes do not collide)\n if in_len != N {\n sponge.absorb(1);\n }\n sponge.squeeze()\n}\n\n// The below fn reduces gates of a conditional poseidon2 hash by approx 3x (thank you ~* Giant Brain Dev @IlyasRidhuan *~ for the idea)\n// Why? Because when we call stdlib poseidon, we call absorb for each item. When absorbing is conditional, it seems the compiler does not know\n// what cache_size will be when calling absorb, so it assigns the permutation gates for /each i/ rather than /every 3rd i/, which is actually required.\n// The below code forces the compiler to:\n// - absorb normally up to 2 times to set cache_size to 1\n// - absorb in chunks of 3 to ensure perm. only happens every 3rd absorb\n// - absorb normally up to 2 times to add any remaining values to the hash\n// In fixed len hashes, the compiler is able to tell that it will only need to perform the permutation every 3 absorbs.\n// NB: it also replaces unnecessary range checks (i < thing) with a bit check (&= i != thing), which alone reduces the gates of a var. hash by half.\n\n#[no_predicates]\nfn poseidon2_absorb_chunks<let N: u32>(\n input: [Field; N],\n in_len: u32,\n variable: bool,\n) -> Poseidon2Sponge {\n let iv: Field = (in_len as Field) * TWO_POW_64;\n let mut sponge = Poseidon2Sponge::new(iv);\n // Even though shift is always 1 here, if we input in_len = 0 we get an underflow\n // since we cannot isolate computation branches. The below is just to avoid that.\n let shift = if in_len == 0 { 0 } else { 1 };\n if in_len != 0 {\n // cache_size = 0, init absorb\n sponge.cache[0] = input[0];\n sponge.cache_size = 1;\n // shift = num elts already added to make cache_size 1 = 1 for a fresh sponge\n // M = max_chunks = (N - 1 - (N - 1) % 3) / 3: (must be written as a fn of N to compile)\n // max_remainder = (N - 1) % 3;\n // max_chunks = (N - 1 - max_remainder) / 3;\n sponge = poseidon2_absorb_chunks_loop::<N, (N - 1 - (N - 1) % 3) / 3>(\n sponge,\n input,\n in_len,\n variable,\n shift,\n );\n }\n sponge\n}\n\n// NB: If it's not required to check that the non-absorbed elts of 'input' are 0s, set skip_0_check=true\n#[no_predicates]\npub fn poseidon2_absorb_chunks_existing_sponge<let N: u32>(\n in_sponge: Poseidon2Sponge,\n input: [Field; N],\n in_len: u32,\n skip_0_check: bool,\n) -> Poseidon2Sponge {\n let mut sponge = in_sponge;\n // 'shift' is to account for already added inputs\n let mut shift = 0;\n // 'stop' is to avoid an underflow when inputting in_len = 0\n let mut stop = false;\n for i in 0..3 {\n if shift == in_len {\n stop = true;\n }\n if (sponge.cache_size != 1) & (!stop) {\n sponge.absorb(input[i]);\n shift += 1;\n }\n }\n sponge = if stop {\n sponge\n } else {\n // max_chunks = (N - (N % 3)) / 3;\n poseidon2_absorb_chunks_loop::<N, (N - (N % 3)) / 3>(\n sponge,\n input,\n in_len,\n skip_0_check,\n shift,\n )\n };\n sponge\n}\n\n// The below is the loop to absorb elts into a poseidon sponge in chunks of 3\n// shift - the num of elts already absorbed to ensure the sponge's cache_size = 1\n// M - the max number of chunks required to absorb N things (must be comptime to compile)\n// NB: The 0 checks ('Found non-zero field...') are messy, but having a separate loop over N to check\n// for 0s costs 3N gates. Current approach is approx 2N gates.\n#[no_predicates]\nfn poseidon2_absorb_chunks_loop<let N: u32, let M: u32>(\n in_sponge: Poseidon2Sponge,\n input: [Field; N],\n in_len: u32,\n variable: bool,\n shift: u32,\n) -> Poseidon2Sponge {\n assert(in_len <= N, \"Given in_len to absorb is larger than the input array len\");\n // When we have an existing sponge, we may have a shift of 0, and the final 'k+2' below = N\n // The below avoids an overflow\n let skip_last = 3 * M == N;\n // Writing in_sponge: &mut does not compile\n let mut sponge = in_sponge;\n let mut should_add = true;\n // The num of things left over after absorbing in 3s\n let remainder = (in_len - shift) % 3;\n // The num of chunks of 3 to absorb (maximum M)\n let chunks = (in_len - shift - remainder) / 3;\n for i in 0..M {\n // Now we loop through cache size = 1 -> 3\n should_add &= i != chunks;\n // This is the index at the start of the chunk (for readability)\n let k = 3 * i + shift;\n if should_add {\n // cache_size = 1, 2 => just assign\n sponge.cache[1] = input[k];\n sponge.cache[2] = input[k + 1];\n // cache_size = 3 => duplex + perm\n for j in 0..3 {\n sponge.state[j] += sponge.cache[j];\n }\n sponge.state = std::hash::poseidon2_permutation(sponge.state, 4);\n sponge.cache[0] = input[k + 2];\n // cache_size is now 1 again, repeat loop\n } else if (!variable) & (i != chunks) {\n // if we are hashing a fixed len array which is a subarray, we check the remaining elts are 0\n // NB: we don't check at i == chunks, because that chunk contains elts to be absorbed or checked below\n let last_0 = if (i == M - 1) & (skip_last) {\n 0\n } else {\n input[k + 2]\n };\n let all_0 = (input[k] == 0) & (input[k + 1] == 0) & (last_0 == 0);\n assert(all_0, \"Found non-zero field after breakpoint\");\n }\n }\n // we have 'remainder' num of items left to absorb\n should_add = true;\n // below is to avoid overflows (i.e. if inlen is close to N)\n let mut should_check = !variable;\n for i in 0..3 {\n should_add &= i != remainder;\n should_check &= in_len - remainder + i != N;\n if should_add {\n // we want to absorb the final 'remainder' items\n sponge.absorb(input[in_len - remainder + i]);\n } else if should_check {\n assert(input[in_len - remainder + i] == 0, \"Found non-zero field after breakpoint\");\n }\n }\n sponge\n}\n\npub fn poseidon2_hash_with_separator_slice<T>(inputs: [Field], separator: T) -> Field\nwhere\n T: ToField,\n{\n let in_len = inputs.len() + 1;\n let iv: Field = (in_len as Field) * TWO_POW_64;\n let mut sponge = Poseidon2Sponge::new(iv);\n sponge.absorb(separator.to_field());\n\n for i in 0..inputs.len() {\n sponge.absorb(inputs[i]);\n }\n\n sponge.squeeze()\n}\n\n#[no_predicates]\npub fn poseidon2_hash_bytes<let N: u32>(inputs: [u8; N]) -> Field {\n let mut fields = [0; (N + 30) / 31];\n let mut field_index = 0;\n let mut current_field = [0; 31];\n for i in 0..inputs.len() {\n let index = i % 31;\n current_field[index] = inputs[i];\n if index == 30 {\n fields[field_index] = field_from_bytes(current_field, false);\n current_field = [0; 31];\n field_index += 1;\n }\n }\n if field_index != fields.len() {\n fields[field_index] = field_from_bytes(current_field, false);\n }\n poseidon2_hash(fields)\n}\n\n#[test]\nfn poseidon_chunks_matches_fixed() {\n let in_len = 501;\n let mut input: [Field; 4096] = [0; 4096];\n let mut fixed_input = [3; 501];\n assert(in_len == fixed_input.len()); // sanity check\n for i in 0..in_len {\n input[i] = 3;\n }\n let sub_chunk_hash = poseidon2_hash_subarray(input, in_len);\n let fixed_len_hash = std::hash::poseidon2::Poseidon2::hash(fixed_input, fixed_input.len());\n assert(sub_chunk_hash == fixed_len_hash);\n}\n\n#[test]\nfn poseidon_chunks_matches_variable() {\n let in_len = 501;\n let mut input: [Field; 4096] = [0; 4096];\n for i in 0..in_len {\n input[i] = 3;\n }\n let variable_chunk_hash = poseidon2_cheaper_variable_hash(input, in_len);\n let variable_len_hash = std::hash::poseidon2::Poseidon2::hash(input, in_len);\n assert(variable_chunk_hash == variable_len_hash);\n}\n\n#[test]\nfn existing_sponge_poseidon_chunks_matches_fixed() {\n let in_len = 501;\n let mut input: [Field; 4096] = [0; 4096];\n let mut fixed_input = [3; 501];\n assert(in_len == fixed_input.len()); // sanity check\n for i in 0..in_len {\n input[i] = 3;\n }\n // absorb 250 of the 501 things\n let empty_sponge = Poseidon2Sponge::new((in_len as Field) * TWO_POW_64);\n let first_sponge = poseidon2_absorb_chunks_existing_sponge(empty_sponge, input, 250, true);\n // now absorb the final 251 (since they are all 3s, im being lazy and not making a new array)\n let mut final_sponge = poseidon2_absorb_chunks_existing_sponge(first_sponge, input, 251, true);\n let fixed_len_hash = Poseidon2Sponge::hash(fixed_input, fixed_input.len());\n assert(final_sponge.squeeze() == fixed_len_hash);\n}\n\n#[test]\nfn poseidon_chunks_empty_inputs() {\n let in_len = 0;\n let mut input: [Field; 4096] = [0; 4096];\n let mut constructed_empty_sponge = poseidon2_absorb_chunks(input, in_len, true);\n let mut first_sponge =\n poseidon2_absorb_chunks_existing_sponge(constructed_empty_sponge, input, in_len, true);\n assert(first_sponge.squeeze() == constructed_empty_sponge.squeeze());\n}\n\n#[test]\nfn smoke_sha256_to_field() {\n let full_buffer = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,\n 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,\n 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,\n 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,\n 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112,\n 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130,\n 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148,\n 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,\n ];\n let result = sha256_to_field(full_buffer);\n\n assert(result == 0x448ebbc9e1a31220a2f3830c18eef61b9bd070e5084b7fa2a359fe729184c7);\n\n // to show correctness of the current ver (truncate one byte) vs old ver (mod full bytes):\n let result_bytes = sha256::digest(full_buffer);\n let truncated_field = crate::utils::field::field_from_bytes_32_trunc(result_bytes);\n assert(truncated_field == result);\n let mod_res = result + (result_bytes[31] as Field);\n assert(mod_res == 0x448ebbc9e1a31220a2f3830c18eef61b9bd070e5084b7fa2a359fe729184e0);\n}\n\n#[test]\nfn compute_l2_l1_hash() {\n // All zeroes\n let hash_result =\n compute_l2_to_l1_hash(AztecAddress::from_field(0), EthAddress::zero(), 0, 0, 0);\n assert(hash_result == 0xb393978842a0fa3d3e1470196f098f473f9678e72463cb65ec4ab5581856c2);\n\n // Non-zero case\n let hash_result = compute_l2_to_l1_hash(\n AztecAddress::from_field(1),\n EthAddress::from_field(3),\n 5,\n 2,\n 4,\n );\n assert(hash_result == 0x3f88c1044a05e5340ed20466276500f6d45ca5603913b9091e957161734e16);\n}\n\n#[test]\nfn silo_l2_to_l1_message_matches_typescript() {\n let version = 4;\n let chainId = 5;\n\n let hash = silo_l2_to_l1_message(\n ScopedL2ToL1Message {\n message: L2ToL1Message { recipient: EthAddress::from_field(1), content: 2, counter: 0 },\n contract_address: AztecAddress::from_field(3),\n },\n version,\n chainId,\n );\n\n // The following value was generated by `l2_to_l1_message.test.ts`\n let hash_from_typescript = 0x00c6155d69febb9d5039b374dd4f77bf57b7c881709aa524a18acaa0bd57476a;\n\n assert_eq(hash, hash_from_typescript);\n}\n"
|
|
3834
3834
|
},
|
|
3835
|
-
"
|
|
3835
|
+
"276": {
|
|
3836
3836
|
"path": "/build-volume/noir-projects/noir-protocol-circuits/crates/types/src/poseidon2.nr",
|
|
3837
3837
|
"source": "use crate::constants::TWO_POW_64;\n\n// NB: This is a clone of noir/noir-repo/noir_stdlib/src/hash/poseidon2.nr\n// It exists as we sometimes need to perform custom absorption, but the stdlib version\n// has a private absorb() method (it's also designed to just be a hasher)\n// Can be removed when standalone noir poseidon lib exists: See noir#6679\n\ncomptime global RATE: u32 = 3;\n\npub struct Poseidon2Sponge {\n pub cache: [Field; 3],\n pub state: [Field; 4],\n pub cache_size: u32,\n pub squeeze_mode: bool, // 0 => absorb, 1 => squeeze\n}\n\nimpl Poseidon2Sponge {\n #[no_predicates]\n pub fn hash<let N: u32>(input: [Field; N], message_size: u32) -> Field {\n Poseidon2Sponge::hash_internal(input, message_size, message_size != N)\n }\n\n pub(crate) fn new(iv: Field) -> Poseidon2Sponge {\n let mut result =\n Poseidon2Sponge { cache: [0; 3], state: [0; 4], cache_size: 0, squeeze_mode: false };\n result.state[RATE] = iv;\n result\n }\n\n fn perform_duplex(&mut self) {\n // add the cache into sponge state\n for i in 0..RATE {\n // We effectively zero-pad the cache by only adding to the state\n // cache that is less than the specified `cache_size`\n if i < self.cache_size {\n self.state[i] += self.cache[i];\n }\n }\n self.state = std::hash::poseidon2_permutation(self.state, 4);\n }\n\n pub fn absorb(&mut self, input: Field) {\n assert(!self.squeeze_mode);\n if self.cache_size == RATE {\n // If we're absorbing, and the cache is full, apply the sponge permutation to compress the cache\n self.perform_duplex();\n self.cache[0] = input;\n self.cache_size = 1;\n } else {\n // If we're absorbing, and the cache is not full, add the input into the cache\n self.cache[self.cache_size] = input;\n self.cache_size += 1;\n }\n }\n\n pub fn squeeze(&mut self) -> Field {\n assert(!self.squeeze_mode);\n // If we're in absorb mode, apply sponge permutation to compress the cache.\n self.perform_duplex();\n self.squeeze_mode = true;\n\n // Pop one item off the top of the permutation and return it.\n self.state[0]\n }\n\n fn hash_internal<let N: u32>(\n input: [Field; N],\n in_len: u32,\n is_variable_length: bool,\n ) -> Field {\n let iv: Field = (in_len as Field) * TWO_POW_64;\n let mut sponge = Poseidon2Sponge::new(iv);\n for i in 0..input.len() {\n if i < in_len {\n sponge.absorb(input[i]);\n }\n }\n\n // In the case where the hash preimage is variable-length, we append `1` to the end of the input, to distinguish\n // from fixed-length hashes. (the combination of this additional field element + the hash IV ensures\n // fixed-length and variable-length hashes do not collide)\n if is_variable_length {\n sponge.absorb(1);\n }\n sponge.squeeze()\n }\n}\n"
|
|
3838
3838
|
},
|
|
3839
|
-
"
|
|
3839
|
+
"306": {
|
|
3840
3840
|
"path": "/build-volume/noir-projects/noir-protocol-circuits/crates/types/src/type_serialization.nr",
|
|
3841
3841
|
"source": "use crate::traits::{Deserialize, Serialize};\n\nglobal BOOL_SERIALIZED_LEN: u32 = 1;\nglobal U8_SERIALIZED_LEN: u32 = 1;\nglobal U16_SERIALIZED_LEN: u32 = 1;\nglobal U32_SERIALIZED_LEN: u32 = 1;\nglobal U64_SERIALIZED_LEN: u32 = 1;\nglobal U128_SERIALIZED_LEN: u32 = 2;\nglobal FIELD_SERIALIZED_LEN: u32 = 1;\nglobal I8_SERIALIZED_LEN: u32 = 1;\nglobal I16_SERIALIZED_LEN: u32 = 1;\nglobal I32_SERIALIZED_LEN: u32 = 1;\nglobal I64_SERIALIZED_LEN: u32 = 1;\n\nimpl Serialize<BOOL_SERIALIZED_LEN> for bool {\n fn serialize(self) -> [Field; BOOL_SERIALIZED_LEN] {\n [self as Field]\n }\n}\n\nimpl Deserialize<BOOL_SERIALIZED_LEN> for bool {\n fn deserialize(fields: [Field; BOOL_SERIALIZED_LEN]) -> bool {\n fields[0] as bool\n }\n}\n\nimpl Serialize<U8_SERIALIZED_LEN> for u8 {\n fn serialize(self) -> [Field; U8_SERIALIZED_LEN] {\n [self as Field]\n }\n}\n\nimpl Deserialize<U8_SERIALIZED_LEN> for u8 {\n fn deserialize(fields: [Field; U8_SERIALIZED_LEN]) -> Self {\n fields[0] as u8\n }\n}\n\nimpl Serialize<U16_SERIALIZED_LEN> for u16 {\n fn serialize(self) -> [Field; U16_SERIALIZED_LEN] {\n [self as Field]\n }\n}\n\nimpl Deserialize<U16_SERIALIZED_LEN> for u16 {\n fn deserialize(fields: [Field; U16_SERIALIZED_LEN]) -> Self {\n fields[0] as u16\n }\n}\n\nimpl Serialize<U32_SERIALIZED_LEN> for u32 {\n fn serialize(self) -> [Field; U32_SERIALIZED_LEN] {\n [self as Field]\n }\n}\n\nimpl Deserialize<U32_SERIALIZED_LEN> for u32 {\n fn deserialize(fields: [Field; U32_SERIALIZED_LEN]) -> Self {\n fields[0] as u32\n }\n}\n\nimpl Serialize<U64_SERIALIZED_LEN> for u64 {\n fn serialize(self) -> [Field; U64_SERIALIZED_LEN] {\n [self as Field]\n }\n}\n\nimpl Deserialize<U64_SERIALIZED_LEN> for u64 {\n fn deserialize(fields: [Field; U64_SERIALIZED_LEN]) -> Self {\n fields[0] as u64\n }\n}\n\nimpl Serialize<U128_SERIALIZED_LEN> for U128 {\n fn serialize(self) -> [Field; U128_SERIALIZED_LEN] {\n // We use little-endian ordering to match the order in which U128 defines its limbs.\n // This is necessary because of how Noir handles serialization:\n // - When calling a contract function from TypeScript, the serialization in encoder.ts gets used and then Noir\n // deserializes using its intrinsic serialization logic (based on the limb order in the struct).\n // - When calling a contract function from another function, the `serialize` method is invoked on the type\n // first.\n // For this reason if we didn't use the ordering of U128 limbs here and in encoder.ts we would get an arguments\n // hash mismatch.\n [self.lo, self.hi]\n }\n}\n\nimpl Deserialize<U128_SERIALIZED_LEN> for U128 {\n fn deserialize(fields: [Field; U128_SERIALIZED_LEN]) -> Self {\n U128::from_u64s_le(fields[0] as u64, fields[1] as u64)\n }\n}\n\nimpl Serialize<FIELD_SERIALIZED_LEN> for Field {\n fn serialize(self) -> [Field; FIELD_SERIALIZED_LEN] {\n [self]\n }\n}\n\nimpl Deserialize<FIELD_SERIALIZED_LEN> for Field {\n fn deserialize(fields: [Field; FIELD_SERIALIZED_LEN]) -> Self {\n fields[0]\n }\n}\n\nimpl Serialize<I8_SERIALIZED_LEN> for i8 {\n fn serialize(self) -> [Field; I8_SERIALIZED_LEN] {\n [self as Field]\n }\n}\n\nimpl Deserialize<I8_SERIALIZED_LEN> for i8 {\n fn deserialize(fields: [Field; I8_SERIALIZED_LEN]) -> Self {\n fields[0] as i8\n }\n}\n\nimpl Serialize<I16_SERIALIZED_LEN> for i16 {\n fn serialize(self) -> [Field; I16_SERIALIZED_LEN] {\n [self as Field]\n }\n}\n\nimpl Deserialize<I16_SERIALIZED_LEN> for i16 {\n fn deserialize(fields: [Field; I16_SERIALIZED_LEN]) -> Self {\n fields[0] as i16\n }\n}\n\nimpl Serialize<I32_SERIALIZED_LEN> for i32 {\n fn serialize(self) -> [Field; I32_SERIALIZED_LEN] {\n [self as Field]\n }\n}\n\nimpl Deserialize<I32_SERIALIZED_LEN> for i32 {\n fn deserialize(fields: [Field; I32_SERIALIZED_LEN]) -> Self {\n fields[0] as i32\n }\n}\n\nimpl Serialize<I64_SERIALIZED_LEN> for i64 {\n fn serialize(self) -> [Field; I64_SERIALIZED_LEN] {\n [self as Field]\n }\n}\n\nimpl Deserialize<I64_SERIALIZED_LEN> for i64 {\n fn deserialize(fields: [Field; I64_SERIALIZED_LEN]) -> Self {\n fields[0] as i64\n }\n}\n\nimpl<T, let N: u32, let M: u32> Serialize<N * M> for [T; N]\nwhere\n T: Serialize<M>,\n{\n fn serialize(self) -> [Field; N * M] {\n let mut result: [Field; N * M] = std::mem::zeroed();\n let mut serialized: [Field; M] = std::mem::zeroed();\n for i in 0..N {\n serialized = self[i].serialize();\n for j in 0..M {\n result[i * M + j] = serialized[j];\n }\n }\n result\n }\n}\n\nimpl<T, let N: u32, let M: u32> Deserialize<N * M> for [T; N]\nwhere\n T: Deserialize<M>,\n{\n fn deserialize(fields: [Field; N * M]) -> Self {\n let mut reader = crate::utils::reader::Reader::new(fields);\n let mut result: [T; N] = std::mem::zeroed();\n reader.read_struct_array::<T, M, N>(Deserialize::deserialize, result)\n }\n}\n\n#[test]\nfn test_u16_serialization() {\n let a: u16 = 10;\n assert_eq(a, u16::deserialize(a.serialize()));\n}\n\n#[test]\nfn test_i8_serialization() {\n let a: i8 = -10;\n assert_eq(a, i8::deserialize(a.serialize()));\n}\n\n#[test]\nfn test_i16_serialization() {\n let a: i16 = -10;\n assert_eq(a, i16::deserialize(a.serialize()));\n}\n\n#[test]\nfn test_i32_serialization() {\n let a: i32 = -10;\n assert_eq(a, i32::deserialize(a.serialize()));\n}\n\n#[test]\nfn test_i64_serialization() {\n let a: i64 = -10;\n assert_eq(a, i64::deserialize(a.serialize()));\n}\n"
|
|
3842
3842
|
},
|
|
3843
|
-
"
|
|
3843
|
+
"325": {
|
|
3844
3844
|
"path": "/build-volume/noir-projects/noir-protocol-circuits/crates/types/src/utils/reader.nr",
|
|
3845
3845
|
"source": "pub struct Reader<let N: u32> {\n data: [Field; N],\n offset: u32,\n}\n\nimpl<let N: u32> Reader<N> {\n pub fn new(data: [Field; N]) -> Self {\n Self { data, offset: 0 }\n }\n\n pub fn read(&mut self) -> Field {\n let result = self.data[self.offset];\n self.offset += 1;\n result\n }\n\n pub fn read_u32(&mut self) -> u32 {\n self.read() as u32\n }\n\n pub fn read_bool(&mut self) -> bool {\n self.read() as bool\n }\n\n pub fn read_array<let K: u32>(&mut self) -> [Field; K] {\n let mut result = [0; K];\n for i in 0..K {\n result[i] = self.data[self.offset + i];\n }\n self.offset += K;\n result\n }\n\n pub fn read_struct<T, let K: u32>(&mut self, deserialise: fn([Field; K]) -> T) -> T {\n let result = deserialise(self.read_array());\n result\n }\n\n pub fn read_struct_array<T, let K: u32, let C: u32>(\n &mut self,\n deserialise: fn([Field; K]) -> T,\n mut result: [T; C],\n ) -> [T; C] {\n for i in 0..C {\n result[i] = self.read_struct(deserialise);\n }\n result\n }\n\n pub fn finish(self) {\n assert(self.offset == self.data.len(), \"Reader did not read all data\");\n }\n}\n"
|
|
3846
3846
|
},
|
|
@@ -3850,7 +3850,7 @@
|
|
|
3850
3850
|
},
|
|
3851
3851
|
"62": {
|
|
3852
3852
|
"path": "/build-volume/noir-projects/noir-contracts/contracts/router_contract/src/main.nr",
|
|
3853
|
-
"source": "mod test;\nmod utils;\n\nuse dep::aztec::macros::aztec;\n\n/// The purpose of this contract is to perform a check in public without revealing what contract enqued the public\n/// call. This is achieved by having a private function on this contract that enques the public call and hence\n/// the `msg_sender` in the public call is the address of this contract.\n#[aztec]\
|
|
3853
|
+
"source": "mod test;\nmod utils;\n\nuse dep::aztec::macros::aztec;\n\n/// The purpose of this contract is to perform a check in public without revealing what contract enqued the public\n/// call. This is achieved by having a private function on this contract that enques the public call and hence\n/// the `msg_sender` in the public call is the address of this contract.\n#[aztec]\npub contract Router {\n use aztec::{macros::functions::{internal, private, public, view}, utils::comparison::compare};\n\n // docs:start:check_timestamp\n /// Asserts that the current timestamp in the enqueued public call satisfies the `operation` with respect\n /// to the `value.\n #[private]\n fn check_timestamp(operation: u8, value: u64) {\n Router::at(context.this_address())._check_timestamp(operation, value).enqueue_view(\n &mut context,\n );\n }\n\n #[public]\n #[internal]\n #[view]\n fn _check_timestamp(operation: u8, value: u64) {\n let lhs_field = context.timestamp() as Field;\n let rhs_field = value as Field;\n assert(compare(lhs_field, operation, rhs_field), \"Timestamp mismatch.\");\n }\n // docs:end:check_timestamp\n\n /// Asserts that the current block number in the enqueued public call satisfies the `operation` with respect\n /// to the `value.\n #[private]\n fn check_block_number(operation: u8, value: Field) {\n Router::at(context.this_address())._check_block_number(operation, value).enqueue_view(\n &mut context,\n );\n }\n\n #[public]\n #[internal]\n #[view]\n fn _check_block_number(operation: u8, value: Field) {\n assert(compare(context.block_number(), operation, value), \"Block number mismatch.\");\n }\n}\n"
|
|
3854
3854
|
},
|
|
3855
3855
|
"65": {
|
|
3856
3856
|
"path": "/build-volume/noir-projects/aztec-nr/aztec/src/context/call_interfaces.nr",
|
|
@@ -3864,7 +3864,7 @@
|
|
|
3864
3864
|
"path": "/build-volume/noir-projects/aztec-nr/aztec/src/context/public_context.nr",
|
|
3865
3865
|
"source": "use crate::context::gas::GasOpts;\nuse crate::hash::{\n compute_l1_to_l2_message_hash, compute_l1_to_l2_message_nullifier, compute_secret_hash,\n};\nuse dep::protocol_types::abis::function_selector::FunctionSelector;\nuse dep::protocol_types::address::{AztecAddress, EthAddress};\nuse dep::protocol_types::constants::MAX_FIELD_VALUE;\nuse dep::protocol_types::traits::{Empty, Packable, Serialize};\n\npub struct PublicContext {\n pub args_hash: Option<Field>,\n pub compute_args_hash: fn() -> Field,\n}\n\nimpl PublicContext {\n pub fn new(compute_args_hash: fn() -> Field) -> Self {\n PublicContext { args_hash: Option::none(), compute_args_hash }\n }\n\n pub fn emit_public_log<T, let N: u32>(_self: &mut Self, log: T)\n where\n T: Serialize<N>,\n {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe { emit_public_log(Serialize::serialize(log).as_slice()) };\n }\n\n pub fn note_hash_exists(_self: Self, note_hash: Field, leaf_index: Field) -> bool {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe { note_hash_exists(note_hash, leaf_index) } == 1\n }\n\n pub fn l1_to_l2_msg_exists(_self: Self, msg_hash: Field, msg_leaf_index: Field) -> bool {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe { l1_to_l2_msg_exists(msg_hash, msg_leaf_index) } == 1\n }\n\n pub fn nullifier_exists(_self: Self, unsiloed_nullifier: Field, address: AztecAddress) -> bool {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe { nullifier_exists(unsiloed_nullifier, address.to_field()) } == 1\n }\n\n pub fn consume_l1_to_l2_message(\n &mut self,\n content: Field,\n secret: Field,\n sender: EthAddress,\n leaf_index: Field,\n ) {\n let secret_hash = compute_secret_hash(secret);\n let message_hash = compute_l1_to_l2_message_hash(\n sender,\n self.chain_id(),\n /*recipient=*/\n self.this_address(),\n self.version(),\n content,\n secret_hash,\n leaf_index,\n );\n let nullifier = compute_l1_to_l2_message_nullifier(message_hash, secret);\n\n assert(\n !self.nullifier_exists(nullifier, self.this_address()),\n \"L1-to-L2 message is already nullified\",\n );\n assert(\n self.l1_to_l2_msg_exists(message_hash, leaf_index),\n \"Tried to consume nonexistent L1-to-L2 message\",\n );\n\n self.push_nullifier(nullifier);\n }\n\n pub fn message_portal(_self: &mut Self, recipient: EthAddress, content: Field) {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe { send_l2_to_l1_msg(recipient, content) };\n }\n\n pub unconstrained fn call_public_function(\n _self: &mut Self,\n contract_address: AztecAddress,\n function_selector: FunctionSelector,\n args: [Field],\n gas_opts: GasOpts,\n ) -> [Field] {\n let args = args.push_front(function_selector.to_field());\n let success = call(gas_for_call(gas_opts), contract_address, args);\n\n let result_data = returndata_copy(0, returndata_size());\n if !success {\n // Rethrow the revert data.\n avm_revert(result_data);\n }\n result_data\n }\n\n pub unconstrained fn static_call_public_function(\n _self: &mut Self,\n contract_address: AztecAddress,\n function_selector: FunctionSelector,\n args: [Field],\n gas_opts: GasOpts,\n ) -> [Field] {\n let args = args.push_front(function_selector.to_field());\n let success = call_static(gas_for_call(gas_opts), contract_address, args);\n\n let result_data = returndata_copy(0, returndata_size());\n if !success {\n // Rethrow the revert data.\n avm_revert(result_data);\n }\n result_data\n }\n\n pub fn push_note_hash(_self: &mut Self, note_hash: Field) {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe { emit_note_hash(note_hash) };\n }\n pub fn push_nullifier(_self: &mut Self, nullifier: Field) {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe { emit_nullifier(nullifier) };\n }\n\n pub fn this_address(_self: Self) -> AztecAddress {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n address()\n }\n }\n pub fn msg_sender(_self: Self) -> AztecAddress {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n sender()\n }\n }\n pub fn selector(_self: Self) -> FunctionSelector {\n // The selector is the first element of the calldata when calling a public function through dispatch.\n /// Safety: AVM opcodes are constrained by the AVM itself\n let raw_selector: [Field; 1] = unsafe { calldata_copy(0, 1) };\n FunctionSelector::from_field(raw_selector[0])\n }\n pub fn get_args_hash(mut self) -> Field {\n if !self.args_hash.is_some() {\n self.args_hash = Option::some((self.compute_args_hash)());\n }\n\n self.args_hash.unwrap_unchecked()\n }\n pub fn transaction_fee(_self: Self) -> Field {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n transaction_fee()\n }\n }\n\n pub fn chain_id(_self: Self) -> Field {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n chain_id()\n }\n }\n pub fn version(_self: Self) -> Field {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n version()\n }\n }\n pub fn block_number(_self: Self) -> Field {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n block_number()\n }\n }\n pub fn timestamp(_self: Self) -> u64 {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n timestamp()\n }\n }\n pub fn fee_per_l2_gas(_self: Self) -> Field {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n fee_per_l2_gas()\n }\n }\n pub fn fee_per_da_gas(_self: Self) -> Field {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n fee_per_da_gas()\n }\n }\n\n pub fn l2_gas_left(_self: Self) -> Field {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n l2_gas_left()\n }\n }\n pub fn da_gas_left(_self: Self) -> Field {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe {\n da_gas_left()\n }\n }\n pub fn is_static_call(_self: Self) -> bool {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe { is_static_call() } == 1\n }\n\n pub fn raw_storage_read<let N: u32>(_self: Self, storage_slot: Field) -> [Field; N] {\n let mut out = [0; N];\n for i in 0..N {\n /// Safety: AVM opcodes are constrained by the AVM itself\n out[i] = unsafe { storage_read(storage_slot + i as Field) };\n }\n out\n }\n\n pub fn storage_read<T, let N: u32>(self, storage_slot: Field) -> T\n where\n T: Packable<N>,\n {\n T::unpack(self.raw_storage_read(storage_slot))\n }\n\n pub fn raw_storage_write<let N: u32>(_self: Self, storage_slot: Field, values: [Field; N]) {\n for i in 0..N {\n /// Safety: AVM opcodes are constrained by the AVM itself\n unsafe { storage_write(storage_slot + i as Field, values[i]) };\n }\n }\n\n pub fn storage_write<T, let N: u32>(self, storage_slot: Field, value: T)\n where\n T: Packable<N>,\n {\n self.raw_storage_write(storage_slot, value.pack());\n }\n}\n\n// Helper functions\nfn gas_for_call(user_gas: GasOpts) -> [Field; 2] {\n // It's ok to use the max possible gas here, because the gas will be\n // capped by the gas left in the (STATIC)CALL instruction.\n [user_gas.l2_gas.unwrap_or(MAX_FIELD_VALUE), user_gas.da_gas.unwrap_or(MAX_FIELD_VALUE)]\n}\n\n// Unconstrained opcode wrappers (do not use directly).\nunconstrained fn address() -> AztecAddress {\n address_opcode()\n}\nunconstrained fn sender() -> AztecAddress {\n sender_opcode()\n}\nunconstrained fn transaction_fee() -> Field {\n transaction_fee_opcode()\n}\nunconstrained fn chain_id() -> Field {\n chain_id_opcode()\n}\nunconstrained fn version() -> Field {\n version_opcode()\n}\nunconstrained fn block_number() -> Field {\n block_number_opcode()\n}\nunconstrained fn timestamp() -> u64 {\n timestamp_opcode()\n}\nunconstrained fn fee_per_l2_gas() -> Field {\n fee_per_l2_gas_opcode()\n}\nunconstrained fn fee_per_da_gas() -> Field {\n fee_per_da_gas_opcode()\n}\nunconstrained fn l2_gas_left() -> Field {\n l2_gas_left_opcode()\n}\nunconstrained fn da_gas_left() -> Field {\n da_gas_left_opcode()\n}\nunconstrained fn is_static_call() -> Field {\n is_static_call_opcode()\n}\nunconstrained fn note_hash_exists(note_hash: Field, leaf_index: Field) -> u1 {\n note_hash_exists_opcode(note_hash, leaf_index)\n}\nunconstrained fn emit_note_hash(note_hash: Field) {\n emit_note_hash_opcode(note_hash)\n}\nunconstrained fn nullifier_exists(nullifier: Field, address: Field) -> u1 {\n nullifier_exists_opcode(nullifier, address)\n}\nunconstrained fn emit_nullifier(nullifier: Field) {\n emit_nullifier_opcode(nullifier)\n}\nunconstrained fn emit_public_log(message: [Field]) {\n emit_public_log_opcode(message)\n}\nunconstrained fn l1_to_l2_msg_exists(msg_hash: Field, msg_leaf_index: Field) -> u1 {\n l1_to_l2_msg_exists_opcode(msg_hash, msg_leaf_index)\n}\nunconstrained fn send_l2_to_l1_msg(recipient: EthAddress, content: Field) {\n send_l2_to_l1_msg_opcode(recipient, content)\n}\nunconstrained fn call(gas: [Field; 2], address: AztecAddress, args: [Field]) -> bool {\n call_opcode(gas, address, args)\n}\nunconstrained fn call_static(gas: [Field; 2], address: AztecAddress, args: [Field]) -> bool {\n call_static_opcode(gas, address, args)\n}\n\npub unconstrained fn calldata_copy<let N: u32>(cdoffset: u32, copy_size: u32) -> [Field; N] {\n calldata_copy_opcode(cdoffset, copy_size)\n}\n\nunconstrained fn returndata_size() -> u32 {\n returndata_size_opcode()\n}\n\nunconstrained fn returndata_copy(rdoffset: u32, copy_size: u32) -> [Field] {\n returndata_copy_opcode(rdoffset, copy_size)\n}\n\npub unconstrained fn avm_return(returndata: [Field]) {\n return_opcode(returndata)\n}\n\n// This opcode reverts using the exact data given. In general it should only be used\n// to do rethrows, where the revert data is the same as the original revert data.\n// For normal reverts, use Noir's `assert` which, on top of reverting, will also add\n// an error selector to the revert data.\nunconstrained fn avm_revert(revertdata: [Field]) {\n revert_opcode(revertdata)\n}\n\nunconstrained fn storage_read(storage_slot: Field) -> Field {\n storage_read_opcode(storage_slot)\n}\n\nunconstrained fn storage_write(storage_slot: Field, value: Field) {\n storage_write_opcode(storage_slot, value);\n}\n\nimpl Empty for PublicContext {\n fn empty() -> Self {\n PublicContext::new(|| 0)\n }\n}\n\n// AVM oracles (opcodes) follow, do not use directly.\n#[oracle(avmOpcodeAddress)]\nunconstrained fn address_opcode() -> AztecAddress {}\n\n#[oracle(avmOpcodeSender)]\nunconstrained fn sender_opcode() -> AztecAddress {}\n\n#[oracle(avmOpcodeTransactionFee)]\nunconstrained fn transaction_fee_opcode() -> Field {}\n\n#[oracle(avmOpcodeChainId)]\nunconstrained fn chain_id_opcode() -> Field {}\n\n#[oracle(avmOpcodeVersion)]\nunconstrained fn version_opcode() -> Field {}\n\n#[oracle(avmOpcodeBlockNumber)]\nunconstrained fn block_number_opcode() -> Field {}\n\n#[oracle(avmOpcodeTimestamp)]\nunconstrained fn timestamp_opcode() -> u64 {}\n\n#[oracle(avmOpcodeFeePerL2Gas)]\nunconstrained fn fee_per_l2_gas_opcode() -> Field {}\n\n#[oracle(avmOpcodeFeePerDaGas)]\nunconstrained fn fee_per_da_gas_opcode() -> Field {}\n\n#[oracle(avmOpcodeL2GasLeft)]\nunconstrained fn l2_gas_left_opcode() -> Field {}\n\n#[oracle(avmOpcodeDaGasLeft)]\nunconstrained fn da_gas_left_opcode() -> Field {}\n\n#[oracle(avmOpcodeIsStaticCall)]\nunconstrained fn is_static_call_opcode() -> Field {}\n\n#[oracle(avmOpcodeNoteHashExists)]\nunconstrained fn note_hash_exists_opcode(note_hash: Field, leaf_index: Field) -> u1 {}\n\n#[oracle(avmOpcodeEmitNoteHash)]\nunconstrained fn emit_note_hash_opcode(note_hash: Field) {}\n\n#[oracle(avmOpcodeNullifierExists)]\nunconstrained fn nullifier_exists_opcode(nullifier: Field, address: Field) -> u1 {}\n\n#[oracle(avmOpcodeEmitNullifier)]\nunconstrained fn emit_nullifier_opcode(nullifier: Field) {}\n\n// TODO(#11124): rename unencrypted to public in avm\n#[oracle(avmOpcodeEmitUnencryptedLog)]\nunconstrained fn emit_public_log_opcode(message: [Field]) {}\n\n#[oracle(avmOpcodeL1ToL2MsgExists)]\nunconstrained fn l1_to_l2_msg_exists_opcode(msg_hash: Field, msg_leaf_index: Field) -> u1 {}\n\n#[oracle(avmOpcodeSendL2ToL1Msg)]\nunconstrained fn send_l2_to_l1_msg_opcode(recipient: EthAddress, content: Field) {}\n\n#[oracle(avmOpcodeCalldataCopy)]\nunconstrained fn calldata_copy_opcode<let N: u32>(cdoffset: u32, copy_size: u32) -> [Field; N] {}\n\n#[oracle(avmOpcodeReturndataSize)]\nunconstrained fn returndata_size_opcode() -> u32 {}\n\n#[oracle(avmOpcodeReturndataCopy)]\nunconstrained fn returndata_copy_opcode(rdoffset: u32, copy_size: u32) -> [Field] {}\n\n#[oracle(avmOpcodeReturn)]\nunconstrained fn return_opcode(returndata: [Field]) {}\n\n// This opcode reverts using the exact data given. In general it should only be used\n// to do rethrows, where the revert data is the same as the original revert data.\n// For normal reverts, use Noir's `assert` which, on top of reverting, will also add\n// an error selector to the revert data.\n#[oracle(avmOpcodeRevert)]\nunconstrained fn revert_opcode(revertdata: [Field]) {}\n\n#[oracle(avmOpcodeCall)]\nunconstrained fn call_opcode(\n gas: [Field; 2], // gas allocation: [l2_gas, da_gas]\n address: AztecAddress,\n args: [Field],\n) -> bool {}\n\n#[oracle(avmOpcodeStaticCall)]\nunconstrained fn call_static_opcode(\n gas: [Field; 2], // gas allocation: [l2_gas, da_gas]\n address: AztecAddress,\n args: [Field],\n) -> bool {}\n\n#[oracle(avmOpcodeStorageRead)]\nunconstrained fn storage_read_opcode(storage_slot: Field) -> Field {}\n\n#[oracle(avmOpcodeStorageWrite)]\nunconstrained fn storage_write_opcode(storage_slot: Field, value: Field) {}\n"
|
|
3866
3866
|
},
|
|
3867
|
-
"
|
|
3867
|
+
"88": {
|
|
3868
3868
|
"path": "/build-volume/noir-projects/aztec-nr/aztec/src/hash.nr",
|
|
3869
3869
|
"source": "use crate::utils::to_bytes::{arr_to_be_bytes_arr, str_to_be_bytes_arr};\nuse dep::protocol_types::{\n address::{AztecAddress, EthAddress},\n constants::{\n GENERATOR_INDEX__FUNCTION_ARGS, GENERATOR_INDEX__MESSAGE_NULLIFIER,\n GENERATOR_INDEX__SECRET_HASH,\n },\n hash::{poseidon2_hash_with_separator, poseidon2_hash_with_separator_slice, sha256_to_field},\n point::Point,\n traits::Hash,\n};\n\npub use dep::protocol_types::hash::{compute_siloed_nullifier, pedersen_hash};\n\npub fn pedersen_commitment<let N: u32>(inputs: [Field; N], hash_index: u32) -> Point {\n std::hash::pedersen_commitment_with_separator(inputs, hash_index)\n}\n\npub fn compute_secret_hash(secret: Field) -> Field {\n poseidon2_hash_with_separator([secret], GENERATOR_INDEX__SECRET_HASH)\n}\n\npub fn compute_l1_to_l2_message_hash(\n sender: EthAddress,\n chain_id: Field,\n recipient: AztecAddress,\n version: Field,\n content: Field,\n secret_hash: Field,\n leaf_index: Field,\n) -> Field {\n let mut hash_bytes = [0 as u8; 224];\n let sender_bytes: [u8; 32] = sender.to_field().to_be_bytes();\n let chain_id_bytes: [u8; 32] = chain_id.to_be_bytes();\n let recipient_bytes: [u8; 32] = recipient.to_field().to_be_bytes();\n let version_bytes: [u8; 32] = version.to_be_bytes();\n let content_bytes: [u8; 32] = content.to_be_bytes();\n let secret_hash_bytes: [u8; 32] = secret_hash.to_be_bytes();\n let leaf_index_bytes: [u8; 32] = leaf_index.to_be_bytes();\n\n for i in 0..32 {\n hash_bytes[i] = sender_bytes[i];\n hash_bytes[i + 32] = chain_id_bytes[i];\n hash_bytes[i + 64] = recipient_bytes[i];\n hash_bytes[i + 96] = version_bytes[i];\n hash_bytes[i + 128] = content_bytes[i];\n hash_bytes[i + 160] = secret_hash_bytes[i];\n hash_bytes[i + 192] = leaf_index_bytes[i];\n }\n\n sha256_to_field(hash_bytes)\n}\n\n// The nullifier of a l1 to l2 message is the hash of the message salted with the secret\npub fn compute_l1_to_l2_message_nullifier(message_hash: Field, secret: Field) -> Field {\n poseidon2_hash_with_separator([message_hash, secret], GENERATOR_INDEX__MESSAGE_NULLIFIER)\n}\n\npub struct ArgsHasher {\n pub fields: [Field],\n}\n\nimpl Hash for ArgsHasher {\n fn hash(self) -> Field {\n hash_args(self.fields)\n }\n}\n\nimpl ArgsHasher {\n pub fn new() -> Self {\n Self { fields: [] }\n }\n\n pub fn add(&mut self, field: Field) {\n self.fields = self.fields.push_back(field);\n }\n\n pub fn add_multiple<let N: u32>(&mut self, fields: [Field; N]) {\n for i in 0..N {\n self.fields = self.fields.push_back(fields[i]);\n }\n }\n}\n\npub fn hash_args_array<let N: u32>(args: [Field; N]) -> Field {\n if args.len() == 0 {\n 0\n } else {\n poseidon2_hash_with_separator(args, GENERATOR_INDEX__FUNCTION_ARGS)\n }\n}\n\npub fn hash_args(args: [Field]) -> Field {\n if args.len() == 0 {\n 0\n } else {\n poseidon2_hash_with_separator_slice(args, GENERATOR_INDEX__FUNCTION_ARGS)\n }\n}\n\n#[test]\nunconstrained fn compute_var_args_hash() {\n let mut input = ArgsHasher::new();\n for i in 0..100 {\n input.add(i as Field);\n }\n let hash = input.hash();\n dep::std::println(hash);\n assert(hash == 0x19b0d74feb06ebde19edd85a28986c97063e84b3b351a8b666c7cac963ce655f);\n}\n"
|
|
3870
3870
|
}
|