The canonical signature input: the attestation's JSON with `signature` cleared. JSON with struct field order is deterministic for this type, so the MAC binds exactly these bytes — every covered field, including `operations_covered`, `changes_covered` and the chain link.
(&self)
| 503 | /// so the MAC binds exactly these bytes — every covered field, including |
| 504 | /// `operations_covered`, `changes_covered` and the chain link. |
| 505 | fn signature_input(&self) -> Vec<u8> { |
| 506 | let mut unsigned = self.clone(); |
| 507 | unsigned.signature = None; |
| 508 | serde_json::to_vec(&unsigned).expect("attestation canonical JSON") |
| 509 | } |
| 510 | |
| 511 | /// Sign this attestation in place with the session MAC key (64 hex chars). |
| 512 | /// |
no test coverage detected