Commit 3320eb2
committed
fix: serialize version in RuntimeEvent for attestation roundtrip
The version field must survive serde serialization because the verify
path in AttestationV1 uses RuntimeEvent directly from StackEvidence
(serde-encoded). Without serializing version, all deserialized events
default to V1, causing RTMR3 mismatch for V2 events.
- Change from skip_serializing to always serialize version
- Old data without version field still defaults to V1 via #[serde(default)]
- Scale encoding still skips version via #[codec(skip)] for binary compat1 parent 9e761b8 commit 3320eb2
1 file changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
| 241 | + | |
243 | 242 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
0 commit comments