@aztec/stdlib 3.0.0-nightly.20250925 → 3.0.0-nightly.20250927

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dest/abi/event_metadata_definition.d.ts +8 -0
  2. package/dest/abi/event_metadata_definition.d.ts.map +1 -0
  3. package/dest/abi/event_metadata_definition.js +1 -0
  4. package/dest/abi/index.d.ts +1 -0
  5. package/dest/abi/index.d.ts.map +1 -1
  6. package/dest/abi/index.js +1 -0
  7. package/dest/avm/avm_accumulated_data.d.ts +1 -0
  8. package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
  9. package/dest/avm/avm_accumulated_data.js +4 -0
  10. package/dest/avm/index.d.ts +0 -1
  11. package/dest/avm/index.d.ts.map +1 -1
  12. package/dest/avm/index.js +0 -1
  13. package/dest/block/body.d.ts.map +1 -1
  14. package/dest/block/body.js +0 -5
  15. package/dest/contract/contract_class_metadata.d.ts +8 -0
  16. package/dest/contract/contract_class_metadata.d.ts.map +1 -0
  17. package/dest/contract/contract_class_metadata.js +1 -0
  18. package/dest/contract/contract_metadata.d.ts +7 -0
  19. package/dest/contract/contract_metadata.d.ts.map +1 -0
  20. package/dest/contract/contract_metadata.js +1 -0
  21. package/dest/contract/index.d.ts +2 -0
  22. package/dest/contract/index.d.ts.map +1 -1
  23. package/dest/contract/index.js +2 -0
  24. package/dest/file-store/factory.d.ts.map +1 -1
  25. package/dest/file-store/factory.js +18 -0
  26. package/dest/file-store/s3.d.ts +25 -0
  27. package/dest/file-store/s3.d.ts.map +1 -0
  28. package/dest/file-store/s3.js +187 -0
  29. package/dest/interfaces/aztec-node-admin.d.ts +6 -0
  30. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  31. package/dest/interfaces/client.d.ts +0 -1
  32. package/dest/interfaces/client.d.ts.map +1 -1
  33. package/dest/interfaces/client.js +0 -1
  34. package/dest/interfaces/proving-job.d.ts +5 -5
  35. package/dest/interfaces/proving-job.d.ts.map +1 -1
  36. package/dest/interfaces/proving-job.js +3 -3
  37. package/dest/interfaces/server_circuit_prover.d.ts +2 -2
  38. package/dest/interfaces/server_circuit_prover.d.ts.map +1 -1
  39. package/dest/interfaces/slasher.d.ts +4 -0
  40. package/dest/interfaces/slasher.d.ts.map +1 -1
  41. package/dest/interfaces/slasher.js +1 -0
  42. package/dest/interfaces/validator.d.ts +6 -1
  43. package/dest/interfaces/validator.d.ts.map +1 -1
  44. package/dest/interfaces/validator.js +2 -1
  45. package/dest/logs/contract_class_log.d.ts +1 -1
  46. package/dest/logs/contract_class_log.d.ts.map +1 -1
  47. package/dest/logs/contract_class_log.js +1 -3
  48. package/dest/rollup/avm_proof_data.d.ts +2 -12
  49. package/dest/rollup/avm_proof_data.d.ts.map +1 -1
  50. package/dest/rollup/avm_proof_data.js +0 -24
  51. package/dest/rollup/base_rollup_hints.d.ts +16 -25
  52. package/dest/rollup/base_rollup_hints.d.ts.map +1 -1
  53. package/dest/rollup/base_rollup_hints.js +26 -32
  54. package/dest/rollup/block_root_rollup_private_inputs.d.ts +13 -13
  55. package/dest/rollup/block_root_rollup_private_inputs.d.ts.map +1 -1
  56. package/dest/rollup/block_root_rollup_private_inputs.js +20 -20
  57. package/dest/rollup/index.d.ts +2 -1
  58. package/dest/rollup/index.d.ts.map +1 -1
  59. package/dest/rollup/index.js +2 -1
  60. package/dest/rollup/public_tube_private_inputs.d.ts +4 -2
  61. package/dest/rollup/public_tube_private_inputs.d.ts.map +1 -1
  62. package/dest/rollup/public_tube_private_inputs.js +7 -3
  63. package/dest/rollup/public_tube_public_inputs.d.ts +20 -0
  64. package/dest/rollup/public_tube_public_inputs.d.ts.map +1 -0
  65. package/dest/rollup/public_tube_public_inputs.js +41 -0
  66. package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts +5 -5
  67. package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts.map +1 -1
  68. package/dest/rollup/public_tx_base_rollup_private_inputs.js +3 -3
  69. package/dest/rollup/{state_diff_hints.d.ts → tree_snapshot_diff_hints.d.ts} +22 -38
  70. package/dest/rollup/tree_snapshot_diff_hints.d.ts.map +1 -0
  71. package/dest/rollup/tree_snapshot_diff_hints.js +75 -0
  72. package/dest/rollup/tx_rollup_public_inputs.d.ts +4 -4
  73. package/dest/rollup/tx_rollup_public_inputs.d.ts.map +1 -1
  74. package/dest/rollup/tx_rollup_public_inputs.js +7 -7
  75. package/dest/tests/factories.d.ts +6 -4
  76. package/dest/tests/factories.d.ts.map +1 -1
  77. package/dest/tests/factories.js +26 -28
  78. package/dest/tx/tx_effect.d.ts +3 -33
  79. package/dest/tx/tx_effect.d.ts.map +1 -1
  80. package/dest/tx/tx_effect.js +58 -191
  81. package/package.json +9 -8
  82. package/src/abi/event_metadata_definition.ts +8 -0
  83. package/src/abi/index.ts +1 -0
  84. package/src/avm/avm_accumulated_data.ts +10 -0
  85. package/src/avm/index.ts +0 -1
  86. package/src/block/body.ts +1 -7
  87. package/src/contract/contract_class_metadata.ts +8 -0
  88. package/src/contract/contract_metadata.ts +7 -0
  89. package/src/contract/index.ts +2 -0
  90. package/src/file-store/factory.ts +15 -0
  91. package/src/file-store/s3.ts +186 -0
  92. package/src/interfaces/client.ts +0 -1
  93. package/src/interfaces/proving-job.ts +4 -4
  94. package/src/interfaces/server_circuit_prover.ts +2 -7
  95. package/src/interfaces/slasher.ts +2 -0
  96. package/src/interfaces/validator.ts +5 -1
  97. package/src/logs/contract_class_log.ts +2 -3
  98. package/src/rollup/avm_proof_data.ts +2 -31
  99. package/src/rollup/base_rollup_hints.ts +20 -28
  100. package/src/rollup/block_root_rollup_private_inputs.ts +14 -14
  101. package/src/rollup/index.ts +2 -1
  102. package/src/rollup/public_tube_private_inputs.ts +10 -3
  103. package/src/rollup/public_tube_public_inputs.ts +52 -0
  104. package/src/rollup/public_tx_base_rollup_private_inputs.ts +6 -5
  105. package/src/rollup/{state_diff_hints.ts → tree_snapshot_diff_hints.ts} +26 -41
  106. package/src/rollup/tx_rollup_public_inputs.ts +4 -4
  107. package/src/tests/factories.ts +31 -43
  108. package/src/tx/tx_effect.ts +59 -204
  109. package/dest/avm/public_data_hint.d.ts +0 -16
  110. package/dest/avm/public_data_hint.d.ts.map +0 -1
  111. package/dest/avm/public_data_hint.js +0 -27
  112. package/dest/interfaces/pxe.d.ts +0 -235
  113. package/dest/interfaces/pxe.d.ts.map +0 -1
  114. package/dest/interfaces/pxe.js +0 -13
  115. package/dest/rollup/state_diff_hints.d.ts.map +0 -1
  116. package/dest/rollup/state_diff_hints.js +0 -85
  117. package/src/avm/public_data_hint.ts +0 -38
  118. package/src/interfaces/pxe.ts +0 -284
@@ -1 +1 @@
1
- {"version":3,"file":"block_root_rollup_private_inputs.d.ts","sourceRoot":"","sources":["../../src/rollup/block_root_rollup_private_inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,wCAAwC,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,KAAK,KAAK,EAAuC,MAAM,6BAA6B,CAAC;AAC5G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAa,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,qBAAa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,GAAG,YAAY;IAQ/C,MAAM;IAIN,MAAM,KAAK,MAAM,qEAEhB;CACF;AAED,qBAAa,oCAAoC;IAE7C;;OAEG;IACI,cAAc,EAAE,mBAAmB,CAAC,oBAAoB,CAAC;IAChE;;OAEG;IACI,qBAAqB,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,cAAc,CAAC;;IAP9D;;OAEG;IACI,cAAc,EAAE,mBAAmB,CAAC,oBAAoB,CAAC;IAChE;;OAEG;IACI,qBAAqB,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,cAAc,CAAC;IAGhE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,oCAAoC,CAAC;IAIlE,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,oCAAoC,CAAC;IAIvE,QAAQ;IAIR,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAQ/C,MAAM;IAIN,MAAM,KAAK,MAAM,6EAEhB;CACF"}
@@ -1,5 +1,5 @@
1
1
  import { SpongeBlob } from '@aztec/blob-lib/types';
2
- import { ARCHIVE_HEIGHT, L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH } from '@aztec/constants';
2
+ import { ARCHIVE_HEIGHT, L1_TO_L2_MSG_SUBTREE_ROOT_SIBLING_PATH_LENGTH } from '@aztec/constants';
3
3
  import { Fr } from '@aztec/foundation/fields';
4
4
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
5
5
  import { BufferReader, bigintToUInt64BE, serializeToBuffer } from '@aztec/foundation/serialize';
@@ -13,7 +13,7 @@ export class BlockRootFirstRollupPrivateInputs {
13
13
  l1ToL2Roots;
14
14
  previousRollups;
15
15
  previousL1ToL2;
16
- newL1ToL2MessageSubtreeSiblingPath;
16
+ newL1ToL2MessageSubtreeRootSiblingPath;
17
17
  newArchiveSiblingPath;
18
18
  constructor(/**
19
19
  * The original and converted roots of the L1 to L2 messages subtrees.
@@ -22,14 +22,14 @@ export class BlockRootFirstRollupPrivateInputs {
22
22
  */ previousRollups, /**
23
23
  * The l1 to l2 message tree snapshot immediately before this block.
24
24
  */ previousL1ToL2, /**
25
- * Hint for inserting the new l1 to l2 message subtree into `previousL1ToL2`.
26
- */ newL1ToL2MessageSubtreeSiblingPath, /**
25
+ * Hint for inserting the new l1 to l2 message subtree root into `previousL1ToL2`.
26
+ */ newL1ToL2MessageSubtreeRootSiblingPath, /**
27
27
  * Hint for inserting the new block hash to the last archive.
28
28
  */ newArchiveSiblingPath){
29
29
  this.l1ToL2Roots = l1ToL2Roots;
30
30
  this.previousRollups = previousRollups;
31
31
  this.previousL1ToL2 = previousL1ToL2;
32
- this.newL1ToL2MessageSubtreeSiblingPath = newL1ToL2MessageSubtreeSiblingPath;
32
+ this.newL1ToL2MessageSubtreeRootSiblingPath = newL1ToL2MessageSubtreeRootSiblingPath;
33
33
  this.newArchiveSiblingPath = newArchiveSiblingPath;
34
34
  }
35
35
  static from(fields) {
@@ -40,7 +40,7 @@ export class BlockRootFirstRollupPrivateInputs {
40
40
  fields.l1ToL2Roots,
41
41
  fields.previousRollups,
42
42
  fields.previousL1ToL2,
43
- fields.newL1ToL2MessageSubtreeSiblingPath,
43
+ fields.newL1ToL2MessageSubtreeRootSiblingPath,
44
44
  fields.newArchiveSiblingPath
45
45
  ];
46
46
  }
@@ -52,7 +52,7 @@ export class BlockRootFirstRollupPrivateInputs {
52
52
  return new BlockRootFirstRollupPrivateInputs(ProofData.fromBuffer(reader, ParityPublicInputs), [
53
53
  ProofData.fromBuffer(reader, TxRollupPublicInputs),
54
54
  ProofData.fromBuffer(reader, TxRollupPublicInputs)
55
- ], AppendOnlyTreeSnapshot.fromBuffer(reader), reader.readArray(L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH, Fr), reader.readArray(ARCHIVE_HEIGHT, Fr));
55
+ ], AppendOnlyTreeSnapshot.fromBuffer(reader), reader.readArray(L1_TO_L2_MSG_SUBTREE_ROOT_SIBLING_PATH_LENGTH, Fr), reader.readArray(ARCHIVE_HEIGHT, Fr));
56
56
  }
57
57
  toJSON() {
58
58
  return this.toBuffer();
@@ -65,7 +65,7 @@ export class BlockRootSingleTxFirstRollupPrivateInputs {
65
65
  l1ToL2Roots;
66
66
  previousRollup;
67
67
  previousL1ToL2;
68
- newL1ToL2MessageSubtreeSiblingPath;
68
+ newL1ToL2MessageSubtreeRootSiblingPath;
69
69
  newArchiveSiblingPath;
70
70
  constructor(/**
71
71
  * The original and converted roots of the L1 to L2 messages subtrees.
@@ -74,14 +74,14 @@ export class BlockRootSingleTxFirstRollupPrivateInputs {
74
74
  */ previousRollup, /**
75
75
  * The l1 to l2 message tree snapshot immediately before this block.
76
76
  */ previousL1ToL2, /**
77
- * Hint for inserting the new l1 to l2 message subtree.
78
- */ newL1ToL2MessageSubtreeSiblingPath, /**
77
+ * Hint for inserting the new l1 to l2 message subtree root.
78
+ */ newL1ToL2MessageSubtreeRootSiblingPath, /**
79
79
  * Hint for inserting the new block hash to the last archive.
80
80
  */ newArchiveSiblingPath){
81
81
  this.l1ToL2Roots = l1ToL2Roots;
82
82
  this.previousRollup = previousRollup;
83
83
  this.previousL1ToL2 = previousL1ToL2;
84
- this.newL1ToL2MessageSubtreeSiblingPath = newL1ToL2MessageSubtreeSiblingPath;
84
+ this.newL1ToL2MessageSubtreeRootSiblingPath = newL1ToL2MessageSubtreeRootSiblingPath;
85
85
  this.newArchiveSiblingPath = newArchiveSiblingPath;
86
86
  }
87
87
  static from(fields) {
@@ -92,7 +92,7 @@ export class BlockRootSingleTxFirstRollupPrivateInputs {
92
92
  fields.l1ToL2Roots,
93
93
  fields.previousRollup,
94
94
  fields.previousL1ToL2,
95
- fields.newL1ToL2MessageSubtreeSiblingPath,
95
+ fields.newL1ToL2MessageSubtreeRootSiblingPath,
96
96
  fields.newArchiveSiblingPath
97
97
  ];
98
98
  }
@@ -101,7 +101,7 @@ export class BlockRootSingleTxFirstRollupPrivateInputs {
101
101
  }
102
102
  static fromBuffer(buffer) {
103
103
  const reader = BufferReader.asReader(buffer);
104
- return new BlockRootSingleTxFirstRollupPrivateInputs(ProofData.fromBuffer(reader, ParityPublicInputs), ProofData.fromBuffer(reader, TxRollupPublicInputs), AppendOnlyTreeSnapshot.fromBuffer(reader), reader.readArray(L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH, Fr), reader.readArray(ARCHIVE_HEIGHT, Fr));
104
+ return new BlockRootSingleTxFirstRollupPrivateInputs(ProofData.fromBuffer(reader, ParityPublicInputs), ProofData.fromBuffer(reader, TxRollupPublicInputs), AppendOnlyTreeSnapshot.fromBuffer(reader), reader.readArray(L1_TO_L2_MSG_SUBTREE_ROOT_SIBLING_PATH_LENGTH, Fr), reader.readArray(ARCHIVE_HEIGHT, Fr));
105
105
  }
106
106
  toJSON() {
107
107
  return this.toBuffer();
@@ -117,7 +117,7 @@ export class BlockRootEmptyTxFirstRollupPrivateInputs {
117
117
  constants;
118
118
  startSpongeBlob;
119
119
  timestamp;
120
- newL1ToL2MessageSubtreeSiblingPath;
120
+ newL1ToL2MessageSubtreeRootSiblingPath;
121
121
  newArchiveSiblingPath;
122
122
  constructor(/**
123
123
  * The original and converted roots of the L1 to L2 messages subtrees.
@@ -133,8 +133,8 @@ export class BlockRootEmptyTxFirstRollupPrivateInputs {
133
133
  */ startSpongeBlob, /**
134
134
  * The timestamp of this block.
135
135
  */ timestamp, /**
136
- * Hint for inserting the new l1 to l2 message subtree.
137
- */ newL1ToL2MessageSubtreeSiblingPath, /**
136
+ * Hint for inserting the new l1 to l2 message subtree root.
137
+ */ newL1ToL2MessageSubtreeRootSiblingPath, /**
138
138
  * Hint for inserting the new block hash to the last archive.
139
139
  */ newArchiveSiblingPath){
140
140
  this.l1ToL2Roots = l1ToL2Roots;
@@ -143,7 +143,7 @@ export class BlockRootEmptyTxFirstRollupPrivateInputs {
143
143
  this.constants = constants;
144
144
  this.startSpongeBlob = startSpongeBlob;
145
145
  this.timestamp = timestamp;
146
- this.newL1ToL2MessageSubtreeSiblingPath = newL1ToL2MessageSubtreeSiblingPath;
146
+ this.newL1ToL2MessageSubtreeRootSiblingPath = newL1ToL2MessageSubtreeRootSiblingPath;
147
147
  this.newArchiveSiblingPath = newArchiveSiblingPath;
148
148
  }
149
149
  static from(fields) {
@@ -157,7 +157,7 @@ export class BlockRootEmptyTxFirstRollupPrivateInputs {
157
157
  fields.constants,
158
158
  fields.startSpongeBlob,
159
159
  fields.timestamp,
160
- fields.newL1ToL2MessageSubtreeSiblingPath,
160
+ fields.newL1ToL2MessageSubtreeRootSiblingPath,
161
161
  fields.newArchiveSiblingPath
162
162
  ];
163
163
  }
@@ -169,13 +169,13 @@ export class BlockRootEmptyTxFirstRollupPrivateInputs {
169
169
  this.constants,
170
170
  this.startSpongeBlob,
171
171
  bigintToUInt64BE(this.timestamp),
172
- this.newL1ToL2MessageSubtreeSiblingPath,
172
+ this.newL1ToL2MessageSubtreeRootSiblingPath,
173
173
  this.newArchiveSiblingPath
174
174
  ]);
175
175
  }
176
176
  static fromBuffer(buffer) {
177
177
  const reader = BufferReader.asReader(buffer);
178
- return new BlockRootEmptyTxFirstRollupPrivateInputs(ProofData.fromBuffer(reader, ParityPublicInputs), AppendOnlyTreeSnapshot.fromBuffer(reader), StateReference.fromBuffer(reader), CheckpointConstantData.fromBuffer(reader), SpongeBlob.fromBuffer(reader), reader.readUInt64(), reader.readArray(L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH, Fr), reader.readArray(ARCHIVE_HEIGHT, Fr));
178
+ return new BlockRootEmptyTxFirstRollupPrivateInputs(ProofData.fromBuffer(reader, ParityPublicInputs), AppendOnlyTreeSnapshot.fromBuffer(reader), StateReference.fromBuffer(reader), CheckpointConstantData.fromBuffer(reader), SpongeBlob.fromBuffer(reader), reader.readUInt64(), reader.readArray(L1_TO_L2_MSG_SUBTREE_ROOT_SIBLING_PATH_LENGTH, Fr), reader.readArray(ARCHIVE_HEIGHT, Fr));
179
179
  }
180
180
  toJSON() {
181
181
  return this.toBuffer();
@@ -13,9 +13,10 @@ export * from './epoch_constant_data.js';
13
13
  export * from './private_tx_base_rollup_private_inputs.js';
14
14
  export * from './public_tx_base_rollup_private_inputs.js';
15
15
  export * from './public_tube_private_inputs.js';
16
+ export * from './public_tube_public_inputs.js';
16
17
  export * from './root_rollup_private_inputs.js';
17
18
  export * from './root_rollup_public_inputs.js';
18
- export * from './state_diff_hints.js';
19
+ export * from './tree_snapshot_diff_hints.js';
19
20
  export * from './tx_merge_rollup_private_inputs.js';
20
21
  export * from './tx_rollup_public_inputs.js';
21
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rollup/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rollup/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC"}
@@ -13,8 +13,9 @@ export * from './epoch_constant_data.js';
13
13
  export * from './private_tx_base_rollup_private_inputs.js';
14
14
  export * from './public_tx_base_rollup_private_inputs.js';
15
15
  export * from './public_tube_private_inputs.js';
16
+ export * from './public_tube_public_inputs.js';
16
17
  export * from './root_rollup_private_inputs.js';
17
18
  export * from './root_rollup_public_inputs.js';
18
- export * from './state_diff_hints.js';
19
+ export * from './tree_snapshot_diff_hints.js';
19
20
  export * from './tx_merge_rollup_private_inputs.js';
20
21
  export * from './tx_rollup_public_inputs.js';
@@ -1,12 +1,14 @@
1
+ import { Fr } from '@aztec/foundation/fields';
1
2
  import { BufferReader } from '@aztec/foundation/serialize';
2
3
  import type { FieldsOf } from '@aztec/foundation/types';
3
4
  import { PrivateToPublicKernelCircuitPublicInputs } from '../kernel/private_to_public_kernel_circuit_public_inputs.js';
4
5
  import { type CivcProofData } from '../proofs/proof_data.js';
5
6
  export declare class PublicTubePrivateInputs {
6
7
  hidingKernelProofData: CivcProofData<PrivateToPublicKernelCircuitPublicInputs>;
7
- constructor(hidingKernelProofData: CivcProofData<PrivateToPublicKernelCircuitPublicInputs>);
8
+ proverId: Fr;
9
+ constructor(hidingKernelProofData: CivcProofData<PrivateToPublicKernelCircuitPublicInputs>, proverId: Fr);
8
10
  static from(fields: FieldsOf<PublicTubePrivateInputs>): PublicTubePrivateInputs;
9
- static getFields(fields: FieldsOf<PublicTubePrivateInputs>): readonly [CivcProofData<PrivateToPublicKernelCircuitPublicInputs>];
11
+ static getFields(fields: FieldsOf<PublicTubePrivateInputs>): readonly [CivcProofData<PrivateToPublicKernelCircuitPublicInputs>, Fr];
10
12
  static fromBuffer(buffer: Buffer | BufferReader): PublicTubePrivateInputs;
11
13
  toBuffer(): Buffer<ArrayBufferLike>;
12
14
  static fromString(str: string): PublicTubePrivateInputs;
@@ -1 +1 @@
1
- {"version":3,"file":"public_tube_private_inputs.d.ts","sourceRoot":"","sources":["../../src/rollup/public_tube_private_inputs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,wCAAwC,EAAE,MAAM,6DAA6D,CAAC;AACvH,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,yBAAyB,CAAC;AAExE,qBAAa,uBAAuB;IACf,qBAAqB,EAAE,aAAa,CAAC,wCAAwC,CAAC;gBAA9E,qBAAqB,EAAE,aAAa,CAAC,wCAAwC,CAAC;IAEjG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,uBAAuB,CAAC;IAIrD,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,uBAAuB,CAAC;IAI1D,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAK/C,QAAQ;IAIR,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;IAI7B,QAAQ;IAIR,uDAAuD;IACvD,MAAM;IAIN,yCAAyC;IACzC,MAAM,KAAK,MAAM,gEAEhB;CACF"}
1
+ {"version":3,"file":"public_tube_private_inputs.d.ts","sourceRoot":"","sources":["../../src/rollup/public_tube_private_inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,wCAAwC,EAAE,MAAM,6DAA6D,CAAC;AACvH,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,yBAAyB,CAAC;AAExE,qBAAa,uBAAuB;IAEzB,qBAAqB,EAAE,aAAa,CAAC,wCAAwC,CAAC;IAC9E,QAAQ,EAAE,EAAE;gBADZ,qBAAqB,EAAE,aAAa,CAAC,wCAAwC,CAAC,EAC9E,QAAQ,EAAE,EAAE;IAGrB,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,uBAAuB,CAAC;IAIrD,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,uBAAuB,CAAC;IAI1D,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAQ/C,QAAQ;IAIR,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;IAI7B,QAAQ;IAIR,uDAAuD;IACvD,MAAM;IAIN,yCAAyC;IACzC,MAAM,KAAK,MAAM,gEAEhB;CACF"}
@@ -1,3 +1,4 @@
1
+ import { Fr } from '@aztec/foundation/fields';
1
2
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
2
3
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
3
4
  import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
@@ -5,20 +6,23 @@ import { PrivateToPublicKernelCircuitPublicInputs } from '../kernel/private_to_p
5
6
  import { ProofData } from '../proofs/proof_data.js';
6
7
  export class PublicTubePrivateInputs {
7
8
  hidingKernelProofData;
8
- constructor(hidingKernelProofData){
9
+ proverId;
10
+ constructor(hidingKernelProofData, proverId){
9
11
  this.hidingKernelProofData = hidingKernelProofData;
12
+ this.proverId = proverId;
10
13
  }
11
14
  static from(fields) {
12
15
  return new PublicTubePrivateInputs(...PublicTubePrivateInputs.getFields(fields));
13
16
  }
14
17
  static getFields(fields) {
15
18
  return [
16
- fields.hidingKernelProofData
19
+ fields.hidingKernelProofData,
20
+ fields.proverId
17
21
  ];
18
22
  }
19
23
  static fromBuffer(buffer) {
20
24
  const reader = BufferReader.asReader(buffer);
21
- return new PublicTubePrivateInputs(ProofData.fromBuffer(reader, PrivateToPublicKernelCircuitPublicInputs));
25
+ return new PublicTubePrivateInputs(ProofData.fromBuffer(reader, PrivateToPublicKernelCircuitPublicInputs), Fr.fromBuffer(reader));
22
26
  }
23
27
  toBuffer() {
24
28
  return serializeToBuffer(...PublicTubePrivateInputs.getFields(this));
@@ -0,0 +1,20 @@
1
+ import { Fr } from '@aztec/foundation/fields';
2
+ import { BufferReader } from '@aztec/foundation/serialize';
3
+ import type { FieldsOf } from '@aztec/foundation/types';
4
+ import { PrivateToPublicKernelCircuitPublicInputs } from '../kernel/private_to_public_kernel_circuit_public_inputs.js';
5
+ export declare class PublicTubePublicInputs {
6
+ privateTail: PrivateToPublicKernelCircuitPublicInputs;
7
+ proverId: Fr;
8
+ constructor(privateTail: PrivateToPublicKernelCircuitPublicInputs, proverId: Fr);
9
+ static from(fields: FieldsOf<PublicTubePublicInputs>): PublicTubePublicInputs;
10
+ static getFields(fields: FieldsOf<PublicTubePublicInputs>): readonly [PrivateToPublicKernelCircuitPublicInputs, Fr];
11
+ static fromBuffer(buffer: Buffer | BufferReader): PublicTubePublicInputs;
12
+ toBuffer(): Buffer<ArrayBufferLike>;
13
+ static fromString(str: string): PublicTubePublicInputs;
14
+ toString(): `0x${string}`;
15
+ /** Returns a representation for JSON serialization. */
16
+ toJSON(): Buffer<ArrayBufferLike>;
17
+ /** Creates an instance from a string. */
18
+ static get schema(): import("zod").ZodType<PublicTubePublicInputs, any, string>;
19
+ }
20
+ //# sourceMappingURL=public_tube_public_inputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_tube_public_inputs.d.ts","sourceRoot":"","sources":["../../src/rollup/public_tube_public_inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,wCAAwC,EAAE,MAAM,6DAA6D,CAAC;AAEvH,qBAAa,sBAAsB;IAExB,WAAW,EAAE,wCAAwC;IACrD,QAAQ,EAAE,EAAE;gBADZ,WAAW,EAAE,wCAAwC,EACrD,QAAQ,EAAE,EAAE;IAGrB,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC;IAIpD,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC;IAIzD,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAQ/C,QAAQ;IAIR,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;IAI7B,QAAQ;IAIR,uDAAuD;IACvD,MAAM;IAIN,yCAAyC;IACzC,MAAM,KAAK,MAAM,+DAEhB;CACF"}
@@ -0,0 +1,41 @@
1
+ import { Fr } from '@aztec/foundation/fields';
2
+ import { bufferSchemaFor } from '@aztec/foundation/schemas';
3
+ import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
4
+ import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
5
+ import { PrivateToPublicKernelCircuitPublicInputs } from '../kernel/private_to_public_kernel_circuit_public_inputs.js';
6
+ export class PublicTubePublicInputs {
7
+ privateTail;
8
+ proverId;
9
+ constructor(privateTail, proverId){
10
+ this.privateTail = privateTail;
11
+ this.proverId = proverId;
12
+ }
13
+ static from(fields) {
14
+ return new PublicTubePublicInputs(...PublicTubePublicInputs.getFields(fields));
15
+ }
16
+ static getFields(fields) {
17
+ return [
18
+ fields.privateTail,
19
+ fields.proverId
20
+ ];
21
+ }
22
+ static fromBuffer(buffer) {
23
+ const reader = BufferReader.asReader(buffer);
24
+ return new PublicTubePublicInputs(reader.readObject(PrivateToPublicKernelCircuitPublicInputs), reader.readObject(Fr));
25
+ }
26
+ toBuffer() {
27
+ return serializeToBuffer(...PublicTubePublicInputs.getFields(this));
28
+ }
29
+ static fromString(str) {
30
+ return PublicTubePublicInputs.fromBuffer(hexToBuffer(str));
31
+ }
32
+ toString() {
33
+ return bufferToHex(this.toBuffer());
34
+ }
35
+ /** Returns a representation for JSON serialization. */ toJSON() {
36
+ return this.toBuffer();
37
+ }
38
+ /** Creates an instance from a string. */ static get schema() {
39
+ return bufferSchemaFor(PublicTubePublicInputs);
40
+ }
41
+ }
@@ -1,16 +1,16 @@
1
1
  import { BufferReader } from '@aztec/foundation/serialize';
2
2
  import type { FieldsOf } from '@aztec/foundation/types';
3
- import { PrivateToPublicKernelCircuitPublicInputs } from '../kernel/private_to_public_kernel_circuit_public_inputs.js';
4
3
  import { type RollupHonkProofData } from '../proofs/proof_data.js';
5
- import { AvmProofData } from './avm_proof_data.js';
4
+ import type { AvmProofData } from './avm_proof_data.js';
6
5
  import { PublicBaseRollupHints } from './base_rollup_hints.js';
6
+ import { PublicTubePublicInputs } from './public_tube_public_inputs.js';
7
7
  export declare class PublicTxBaseRollupPrivateInputs {
8
- publicTubeProofData: RollupHonkProofData<PrivateToPublicKernelCircuitPublicInputs>;
8
+ publicTubeProofData: RollupHonkProofData<PublicTubePublicInputs>;
9
9
  avmProofData: AvmProofData;
10
10
  hints: PublicBaseRollupHints;
11
- constructor(publicTubeProofData: RollupHonkProofData<PrivateToPublicKernelCircuitPublicInputs>, avmProofData: AvmProofData, hints: PublicBaseRollupHints);
11
+ constructor(publicTubeProofData: RollupHonkProofData<PublicTubePublicInputs>, avmProofData: AvmProofData, hints: PublicBaseRollupHints);
12
12
  static from(fields: FieldsOf<PublicTxBaseRollupPrivateInputs>): PublicTxBaseRollupPrivateInputs;
13
- static getFields(fields: FieldsOf<PublicTxBaseRollupPrivateInputs>): readonly [RollupHonkProofData<PrivateToPublicKernelCircuitPublicInputs>, AvmProofData, PublicBaseRollupHints];
13
+ static getFields(fields: FieldsOf<PublicTxBaseRollupPrivateInputs>): readonly [RollupHonkProofData<PublicTubePublicInputs>, AvmProofData, PublicBaseRollupHints];
14
14
  static fromBuffer(buffer: Buffer | BufferReader): PublicTxBaseRollupPrivateInputs;
15
15
  toBuffer(): Buffer<ArrayBufferLike>;
16
16
  static fromString(str: string): PublicTxBaseRollupPrivateInputs;
@@ -1 +1 @@
1
- {"version":3,"file":"public_tx_base_rollup_private_inputs.d.ts","sourceRoot":"","sources":["../../src/rollup/public_tx_base_rollup_private_inputs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,wCAAwC,EAAE,MAAM,6DAA6D,CAAC;AACvH,OAAO,EAAa,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,qBAAa,+BAA+B;IAEjC,mBAAmB,EAAE,mBAAmB,CAAC,wCAAwC,CAAC;IAClF,YAAY,EAAE,YAAY;IAC1B,KAAK,EAAE,qBAAqB;gBAF5B,mBAAmB,EAAE,mBAAmB,CAAC,wCAAwC,CAAC,EAClF,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,qBAAqB;IAGrC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,+BAA+B;IAI/F,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,+BAA+B,CAAC;IAIlE,MAAM,CAAC,UAAU,CAAC,MAAM,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AAM,wEAEhB;CACF"}
@@ -1,10 +1,10 @@
1
1
  import { bufferSchemaFor } from '@aztec/foundation/schemas';
2
2
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
3
3
  import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
4
- import { PrivateToPublicKernelCircuitPublicInputs } from '../kernel/private_to_public_kernel_circuit_public_inputs.js';
4
+ import { AvmCircuitPublicInputs } from '../avm/avm_circuit_public_inputs.js';
5
5
  import { ProofData } from '../proofs/proof_data.js';
6
- import { AvmProofData } from './avm_proof_data.js';
7
6
  import { PublicBaseRollupHints } from './base_rollup_hints.js';
7
+ import { PublicTubePublicInputs } from './public_tube_public_inputs.js';
8
8
  export class PublicTxBaseRollupPrivateInputs {
9
9
  publicTubeProofData;
10
10
  avmProofData;
@@ -26,7 +26,7 @@ export class PublicTxBaseRollupPrivateInputs {
26
26
  }
27
27
  static fromBuffer(buffer) {
28
28
  const reader = BufferReader.asReader(buffer);
29
- return new PublicTxBaseRollupPrivateInputs(ProofData.fromBuffer(reader, PrivateToPublicKernelCircuitPublicInputs), reader.readObject(AvmProofData), reader.readObject(PublicBaseRollupHints));
29
+ return new PublicTxBaseRollupPrivateInputs(ProofData.fromBuffer(reader, PublicTubePublicInputs), ProofData.fromBuffer(reader, AvmCircuitPublicInputs), reader.readObject(PublicBaseRollupHints));
30
30
  }
31
31
  toBuffer() {
32
32
  return serializeToBuffer(...PublicTxBaseRollupPrivateInputs.getFields(this));
@@ -1,13 +1,17 @@
1
- import { MAX_NULLIFIERS_PER_TX, NOTE_HASH_SUBTREE_SIBLING_PATH_LENGTH, NULLIFIER_SUBTREE_SIBLING_PATH_LENGTH, NULLIFIER_TREE_HEIGHT, PUBLIC_DATA_TREE_HEIGHT } from '@aztec/constants';
1
+ import { MAX_NULLIFIERS_PER_TX, NOTE_HASH_SUBTREE_ROOT_SIBLING_PATH_LENGTH, NULLIFIER_SUBTREE_ROOT_SIBLING_PATH_LENGTH, NULLIFIER_TREE_HEIGHT, PUBLIC_DATA_TREE_HEIGHT } from '@aztec/constants';
2
2
  import { Fr } from '@aztec/foundation/fields';
3
3
  import { BufferReader, type Tuple } from '@aztec/foundation/serialize';
4
4
  import { MembershipWitness } from '@aztec/foundation/trees';
5
5
  import type { FieldsOf } from '@aztec/foundation/types';
6
- import { NullifierLeafPreimage, PublicDataTreeLeafPreimage } from '../trees/index.js';
6
+ import { NullifierLeafPreimage } from '../trees/index.js';
7
7
  /**
8
8
  * Hints used while proving state diff validity for the private base rollup.
9
9
  */
10
- export declare class PrivateBaseStateDiffHints {
10
+ export declare class TreeSnapshotDiffHints {
11
+ /**
12
+ * Sibling path "pointing to" where the new note hash subtree should be inserted into the note hash tree.
13
+ */
14
+ noteHashSubtreeRootSiblingPath: Tuple<Fr, typeof NOTE_HASH_SUBTREE_ROOT_SIBLING_PATH_LENGTH>;
11
15
  /**
12
16
  * The nullifiers which need to be updated to perform the batch insertion of the new nullifiers.
13
17
  * See `StandardIndexedTree.batchInsert` function for more details.
@@ -26,27 +30,19 @@ export declare class PrivateBaseStateDiffHints {
26
30
  * The indexes of the sorted nullifiers to the original ones.
27
31
  */
28
32
  sortedNullifierIndexes: Tuple<number, typeof MAX_NULLIFIERS_PER_TX>;
29
- /**
30
- * Sibling path "pointing to" where the new note hash subtree should be inserted into the note hash tree.
31
- */
32
- noteHashSubtreeSiblingPath: Tuple<Fr, typeof NOTE_HASH_SUBTREE_SIBLING_PATH_LENGTH>;
33
33
  /**
34
34
  * Sibling path "pointing to" where the new nullifiers subtree should be inserted into the nullifier tree.
35
35
  */
36
- nullifierSubtreeSiblingPath: Tuple<Fr, typeof NULLIFIER_SUBTREE_SIBLING_PATH_LENGTH>;
37
- /**
38
- * Low leaf for the fee write in the public data tree.
39
- */
40
- feeWriteLowLeafPreimage: PublicDataTreeLeafPreimage;
36
+ nullifierSubtreeRootSiblingPath: Tuple<Fr, typeof NULLIFIER_SUBTREE_ROOT_SIBLING_PATH_LENGTH>;
41
37
  /**
42
- * Membership witness for the low leaf for the fee write in the public data tree.
38
+ * Membership witness for the fee payer's balance leaf in the public data tree.
43
39
  */
44
- feeWriteLowLeafMembershipWitness: MembershipWitness<typeof PUBLIC_DATA_TREE_HEIGHT>;
40
+ feePayerBalanceMembershipWitness: MembershipWitness<typeof PUBLIC_DATA_TREE_HEIGHT>;
41
+ constructor(
45
42
  /**
46
- * Sibling path "pointing to" where the fee write should be inserted into the public data tree.
43
+ * Sibling path "pointing to" where the new note hash subtree should be inserted into the note hash tree.
47
44
  */
48
- feeWriteSiblingPath: Tuple<Fr, typeof PUBLIC_DATA_TREE_HEIGHT>;
49
- constructor(
45
+ noteHashSubtreeRootSiblingPath: Tuple<Fr, typeof NOTE_HASH_SUBTREE_ROOT_SIBLING_PATH_LENGTH>,
50
46
  /**
51
47
  * The nullifiers which need to be updated to perform the batch insertion of the new nullifiers.
52
48
  * See `StandardIndexedTree.batchInsert` function for more details.
@@ -65,28 +61,16 @@ export declare class PrivateBaseStateDiffHints {
65
61
  * The indexes of the sorted nullifiers to the original ones.
66
62
  */
67
63
  sortedNullifierIndexes: Tuple<number, typeof MAX_NULLIFIERS_PER_TX>,
68
- /**
69
- * Sibling path "pointing to" where the new note hash subtree should be inserted into the note hash tree.
70
- */
71
- noteHashSubtreeSiblingPath: Tuple<Fr, typeof NOTE_HASH_SUBTREE_SIBLING_PATH_LENGTH>,
72
64
  /**
73
65
  * Sibling path "pointing to" where the new nullifiers subtree should be inserted into the nullifier tree.
74
66
  */
75
- nullifierSubtreeSiblingPath: Tuple<Fr, typeof NULLIFIER_SUBTREE_SIBLING_PATH_LENGTH>,
76
- /**
77
- * Low leaf for the fee write in the public data tree.
78
- */
79
- feeWriteLowLeafPreimage: PublicDataTreeLeafPreimage,
80
- /**
81
- * Membership witness for the low leaf for the fee write in the public data tree.
82
- */
83
- feeWriteLowLeafMembershipWitness: MembershipWitness<typeof PUBLIC_DATA_TREE_HEIGHT>,
67
+ nullifierSubtreeRootSiblingPath: Tuple<Fr, typeof NULLIFIER_SUBTREE_ROOT_SIBLING_PATH_LENGTH>,
84
68
  /**
85
- * Sibling path "pointing to" where the fee write should be inserted into the public data tree.
69
+ * Membership witness for the fee payer's balance leaf in the public data tree.
86
70
  */
87
- feeWriteSiblingPath: Tuple<Fr, typeof PUBLIC_DATA_TREE_HEIGHT>);
88
- static from(fields: FieldsOf<PrivateBaseStateDiffHints>): PrivateBaseStateDiffHints;
89
- static getFields(fields: FieldsOf<PrivateBaseStateDiffHints>): readonly [[NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage], [MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], PublicDataTreeLeafPreimage, MembershipWitness<40>, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
71
+ feePayerBalanceMembershipWitness: MembershipWitness<typeof PUBLIC_DATA_TREE_HEIGHT>);
72
+ static from(fields: FieldsOf<TreeSnapshotDiffHints>): TreeSnapshotDiffHints;
73
+ static getFields(fields: FieldsOf<TreeSnapshotDiffHints>): readonly [[Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage], [MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>, MembershipWitness<40>], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], MembershipWitness<40>];
90
74
  /**
91
75
  * Serializes the state diff hints to a buffer.
92
76
  * @returns A buffer of the serialized state diff hints.
@@ -95,9 +79,9 @@ export declare class PrivateBaseStateDiffHints {
95
79
  /**
96
80
  * Deserializes the state diff hints from a buffer.
97
81
  * @param buffer - A buffer to deserialize from.
98
- * @returns A new PrivateBaseStateDiffHints instance.
82
+ * @returns A new TreeSnapshotDiffHints instance.
99
83
  */
100
- static fromBuffer(buffer: Buffer | BufferReader): PrivateBaseStateDiffHints;
101
- static empty(): PrivateBaseStateDiffHints;
84
+ static fromBuffer(buffer: Buffer | BufferReader): TreeSnapshotDiffHints;
85
+ static empty(): TreeSnapshotDiffHints;
102
86
  }
103
- //# sourceMappingURL=state_diff_hints.d.ts.map
87
+ //# sourceMappingURL=tree_snapshot_diff_hints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree_snapshot_diff_hints.d.ts","sourceRoot":"","sources":["../../src/rollup/tree_snapshot_diff_hints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,0CAA0C,EAC1C,0CAA0C,EAC1C,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,KAAK,KAAK,EAAqB,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;GAEG;AACH,qBAAa,qBAAqB;IAE9B;;OAEG;IACI,8BAA8B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,0CAA0C,CAAC;IACnG;;;OAGG;IACI,6BAA6B,EAAE,KAAK,CAAC,qBAAqB,EAAE,OAAO,qBAAqB,CAAC;IAChG;;;OAGG;IACI,uCAAuC,EAAE,KAAK,CACnD,iBAAiB,CAAC,OAAO,qBAAqB,CAAC,EAC/C,OAAO,qBAAqB,CAC7B;IACD;;OAEG;IACI,gBAAgB,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,qBAAqB,CAAC;IAChE;;OAEG;IACI,sBAAsB,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,qBAAqB,CAAC;IAC1E;;OAEG;IACI,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,0CAA0C,CAAC;IACpG;;OAEG;IACI,gCAAgC,EAAE,iBAAiB,CAAC,OAAO,uBAAuB,CAAC;;IAhC1F;;OAEG;IACI,8BAA8B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,0CAA0C,CAAC;IACnG;;;OAGG;IACI,6BAA6B,EAAE,KAAK,CAAC,qBAAqB,EAAE,OAAO,qBAAqB,CAAC;IAChG;;;OAGG;IACI,uCAAuC,EAAE,KAAK,CACnD,iBAAiB,CAAC,OAAO,qBAAqB,CAAC,EAC/C,OAAO,qBAAqB,CAC7B;IACD;;OAEG;IACI,gBAAgB,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,qBAAqB,CAAC;IAChE;;OAEG;IACI,sBAAsB,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,qBAAqB,CAAC;IAC1E;;OAEG;IACI,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,0CAA0C,CAAC;IACpG;;OAEG;IACI,gCAAgC,EAAE,iBAAiB,CAAC,OAAO,uBAAuB,CAAC;IAG5F,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAAG,qBAAqB;IAI3E,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,qBAAqB,CAAC;IAYxD;;;OAGG;IACH,QAAQ,IAAI,MAAM;IAIlB;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,qBAAqB;IAevE,MAAM,CAAC,KAAK;CAWb"}
@@ -0,0 +1,75 @@
1
+ import { MAX_NULLIFIERS_PER_TX, NOTE_HASH_SUBTREE_ROOT_SIBLING_PATH_LENGTH, NULLIFIER_SUBTREE_ROOT_SIBLING_PATH_LENGTH, NULLIFIER_TREE_HEIGHT, PUBLIC_DATA_TREE_HEIGHT } from '@aztec/constants';
2
+ import { makeTuple } from '@aztec/foundation/array';
3
+ import { Fr } from '@aztec/foundation/fields';
4
+ import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
5
+ import { MembershipWitness } from '@aztec/foundation/trees';
6
+ import { NullifierLeafPreimage } from '../trees/index.js';
7
+ /**
8
+ * Hints used while proving state diff validity for the private base rollup.
9
+ */ export class TreeSnapshotDiffHints {
10
+ noteHashSubtreeRootSiblingPath;
11
+ nullifierPredecessorPreimages;
12
+ nullifierPredecessorMembershipWitnesses;
13
+ sortedNullifiers;
14
+ sortedNullifierIndexes;
15
+ nullifierSubtreeRootSiblingPath;
16
+ feePayerBalanceMembershipWitness;
17
+ constructor(/**
18
+ * Sibling path "pointing to" where the new note hash subtree should be inserted into the note hash tree.
19
+ */ noteHashSubtreeRootSiblingPath, /**
20
+ * The nullifiers which need to be updated to perform the batch insertion of the new nullifiers.
21
+ * See `StandardIndexedTree.batchInsert` function for more details.
22
+ */ nullifierPredecessorPreimages, /**
23
+ * Membership witnesses for the nullifiers which need to be updated to perform the batch insertion of the new
24
+ * nullifiers.
25
+ */ nullifierPredecessorMembershipWitnesses, /**
26
+ * The nullifiers to be inserted in the tree, sorted high to low.
27
+ */ sortedNullifiers, /**
28
+ * The indexes of the sorted nullifiers to the original ones.
29
+ */ sortedNullifierIndexes, /**
30
+ * Sibling path "pointing to" where the new nullifiers subtree should be inserted into the nullifier tree.
31
+ */ nullifierSubtreeRootSiblingPath, /**
32
+ * Membership witness for the fee payer's balance leaf in the public data tree.
33
+ */ feePayerBalanceMembershipWitness){
34
+ this.noteHashSubtreeRootSiblingPath = noteHashSubtreeRootSiblingPath;
35
+ this.nullifierPredecessorPreimages = nullifierPredecessorPreimages;
36
+ this.nullifierPredecessorMembershipWitnesses = nullifierPredecessorMembershipWitnesses;
37
+ this.sortedNullifiers = sortedNullifiers;
38
+ this.sortedNullifierIndexes = sortedNullifierIndexes;
39
+ this.nullifierSubtreeRootSiblingPath = nullifierSubtreeRootSiblingPath;
40
+ this.feePayerBalanceMembershipWitness = feePayerBalanceMembershipWitness;
41
+ }
42
+ static from(fields) {
43
+ return new TreeSnapshotDiffHints(...TreeSnapshotDiffHints.getFields(fields));
44
+ }
45
+ static getFields(fields) {
46
+ return [
47
+ fields.noteHashSubtreeRootSiblingPath,
48
+ fields.nullifierPredecessorPreimages,
49
+ fields.nullifierPredecessorMembershipWitnesses,
50
+ fields.sortedNullifiers,
51
+ fields.sortedNullifierIndexes,
52
+ fields.nullifierSubtreeRootSiblingPath,
53
+ fields.feePayerBalanceMembershipWitness
54
+ ];
55
+ }
56
+ /**
57
+ * Serializes the state diff hints to a buffer.
58
+ * @returns A buffer of the serialized state diff hints.
59
+ */ toBuffer() {
60
+ return serializeToBuffer(...TreeSnapshotDiffHints.getFields(this));
61
+ }
62
+ /**
63
+ * Deserializes the state diff hints from a buffer.
64
+ * @param buffer - A buffer to deserialize from.
65
+ * @returns A new TreeSnapshotDiffHints instance.
66
+ */ static fromBuffer(buffer) {
67
+ const reader = BufferReader.asReader(buffer);
68
+ return new TreeSnapshotDiffHints(reader.readArray(NOTE_HASH_SUBTREE_ROOT_SIBLING_PATH_LENGTH, Fr), reader.readArray(MAX_NULLIFIERS_PER_TX, NullifierLeafPreimage), reader.readArray(MAX_NULLIFIERS_PER_TX, {
69
+ fromBuffer: (buffer)=>MembershipWitness.fromBuffer(buffer, NULLIFIER_TREE_HEIGHT)
70
+ }), reader.readArray(MAX_NULLIFIERS_PER_TX, Fr), reader.readNumbers(MAX_NULLIFIERS_PER_TX), reader.readArray(NULLIFIER_SUBTREE_ROOT_SIBLING_PATH_LENGTH, Fr), MembershipWitness.fromBuffer(reader, PUBLIC_DATA_TREE_HEIGHT));
71
+ }
72
+ static empty() {
73
+ return new TreeSnapshotDiffHints(makeTuple(NOTE_HASH_SUBTREE_ROOT_SIBLING_PATH_LENGTH, Fr.zero), makeTuple(MAX_NULLIFIERS_PER_TX, NullifierLeafPreimage.empty), makeTuple(MAX_NULLIFIERS_PER_TX, ()=>MembershipWitness.empty(NULLIFIER_TREE_HEIGHT)), makeTuple(MAX_NULLIFIERS_PER_TX, Fr.zero), makeTuple(MAX_NULLIFIERS_PER_TX, ()=>0), makeTuple(NULLIFIER_SUBTREE_ROOT_SIBLING_PATH_LENGTH, Fr.zero), MembershipWitness.empty(PUBLIC_DATA_TREE_HEIGHT));
74
+ }
75
+ }
@@ -18,11 +18,11 @@ export declare class TxRollupPublicInputs {
18
18
  /**
19
19
  * Partial state reference at the start of the rollup circuit.
20
20
  */
21
- startPartialState: PartialStateReference;
21
+ startTreeSnapshots: PartialStateReference;
22
22
  /**
23
23
  * Partial state reference at the end of the rollup circuit.
24
24
  */
25
- endPartialState: PartialStateReference;
25
+ endTreeSnapshots: PartialStateReference;
26
26
  /**
27
27
  * Sponge state to absorb blob inputs at the start of the rollup circuit.
28
28
  */
@@ -56,11 +56,11 @@ export declare class TxRollupPublicInputs {
56
56
  /**
57
57
  * Partial state reference at the start of the rollup circuit.
58
58
  */
59
- startPartialState: PartialStateReference,
59
+ startTreeSnapshots: PartialStateReference,
60
60
  /**
61
61
  * Partial state reference at the end of the rollup circuit.
62
62
  */
63
- endPartialState: PartialStateReference,
63
+ endTreeSnapshots: PartialStateReference,
64
64
  /**
65
65
  * Sponge state to absorb blob inputs at the start of the rollup circuit.
66
66
  */
@@ -1 +1 @@
1
- {"version":3,"file":"tx_rollup_public_inputs.d.ts","sourceRoot":"","sources":["../../src/rollup/tx_rollup_public_inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAG9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;GAEG;AACH,qBAAa,oBAAoB;IAE7B;;OAEG;IACI,MAAM,EAAE,MAAM;IACrB;;OAEG;IACI,SAAS,EAAE,iB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