Commit 5c7f28b
committed
fix: remove redundant to/memo from DecryptionData
The `to` and `memo` fields in `DecryptionData` were redundant: the
on-chain `ZoneInbox` already decrypts the ciphertext via AES-256-GCM
and can derive these values directly from the plaintext. Remove them
from the struct and use the decrypted values on-chain instead of
comparing against sequencer-supplied duplicates.
Saves 52 bytes of calldata per encrypted deposit (20-byte address +
32-byte memo).
Closes #357
Made-with: Cursor1 parent 7750a4b commit 5c7f28b
13 files changed
Lines changed: 577 additions & 122 deletions
File tree
- crates
- primitives/src
- tempo-zone
- src
- tests
- assets
- docs
- pages/protocol/privacy
- specs
- src/zone
- test/zone
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| 381 | + | |
381 | 382 | | |
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
385 | | - | |
386 | | - | |
387 | 386 | | |
388 | 387 | | |
389 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
694 | | - | |
695 | 693 | | |
696 | 694 | | |
697 | 695 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | | - | |
| 1127 | + | |
1128 | 1128 | | |
1129 | 1129 | | |
1130 | 1130 | | |
| |||
1190 | 1190 | | |
1191 | 1191 | | |
1192 | 1192 | | |
1193 | | - | |
| 1193 | + | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
1228 | 1199 | | |
1229 | 1200 | | |
1230 | 1201 | | |
1231 | | - | |
1232 | | - | |
1233 | 1202 | | |
1234 | 1203 | | |
1235 | 1204 | | |
| |||
1257 | 1226 | | |
1258 | 1227 | | |
1259 | 1228 | | |
1260 | | - | |
1261 | | - | |
1262 | 1229 | | |
1263 | 1230 | | |
1264 | 1231 | | |
| |||
1278 | 1245 | | |
1279 | 1246 | | |
1280 | 1247 | | |
1281 | | - | |
1282 | | - | |
1283 | 1248 | | |
1284 | 1249 | | |
1285 | 1250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
Large diffs are not rendered by default.
0 commit comments