(
published: &pb::ProvenancePublished,
)
| 364 | } |
| 365 | |
| 366 | pub fn publication_from( |
| 367 | published: &pb::ProvenancePublished, |
| 368 | ) -> Result<SessionCheckpointPublication, String> { |
| 369 | serde_json::from_slice(payload(published.publication.as_ref(), PUBLICATION_SCHEMA)?) |
| 370 | .map_err(|e| e.to_string()) |
| 371 | } |
| 372 | |
| 373 | /// An attestation's serialized bytes (`Attestation::serialize`) on the wire. |
| 374 | /// What travels is exactly what the sending side saved, so the hash the |