Commit 7750a4b
authored
fix: align overview.md encrypted deposit snippets with ZoneInbox.sol spec (#358)
The overview document had three discrepancies with the Solidity reference
implementation in ZoneInbox.sol:
1. DecryptionData struct, IChaumPedersenVerify interface, and both
verifyProof call snippets were missing the sharedSecretYParity
parameter added in the Solidity spec.
2. Both HKDF-SHA256 calls showed an empty info parameter ("") instead
of the correct domain-separating info binding:
abi.encodePacked(tempoPortal, ed.keyIndex, ed.encrypted.ephemeralPubkeyX)
The info binding is security-relevant -- it ties the derived AES key to
a specific portal, encryption key index, and ephemeral public key.
Made-with: Cursor1 parent 2714d4d commit 7750a4b
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1234 | 1234 | | |
1235 | 1235 | | |
1236 | 1236 | | |
1237 | | - | |
| 1237 | + | |
| 1238 | + | |
1238 | 1239 | | |
1239 | 1240 | | |
1240 | 1241 | | |
| |||
1268 | 1269 | | |
1269 | 1270 | | |
1270 | 1271 | | |
| 1272 | + | |
1271 | 1273 | | |
1272 | 1274 | | |
1273 | 1275 | | |
| |||
1276 | 1278 | | |
1277 | 1279 | | |
1278 | 1280 | | |
1279 | | - | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
1280 | 1286 | | |
1281 | 1287 | | |
1282 | 1288 | | |
| |||
1314 | 1320 | | |
1315 | 1321 | | |
1316 | 1322 | | |
| 1323 | + | |
1317 | 1324 | | |
1318 | 1325 | | |
1319 | 1326 | | |
| |||
1357 | 1364 | | |
1358 | 1365 | | |
1359 | 1366 | | |
| 1367 | + | |
1360 | 1368 | | |
1361 | 1369 | | |
1362 | 1370 | | |
| |||
1366 | 1374 | | |
1367 | 1375 | | |
1368 | 1376 | | |
1369 | | - | |
1370 | | - | |
| 1377 | + | |
| 1378 | + | |
1371 | 1379 | | |
1372 | 1380 | | |
1373 | 1381 | | |
| |||
0 commit comments