MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / publication_from

Function publication_from

libatomic/src/daemon/sandbox_wire.rs:407–412  ·  view source on GitHub ↗
(
    published: &pb::ProvenancePublished,
)

Source from the content-addressed store, hash-verified

405}
406
407pub fn publication_from(
408 published: &pb::ProvenancePublished,
409) -> Result<SessionCheckpointPublication, String> {
410 serde_json::from_slice(payload(published.publication.as_ref(), PUBLICATION_SCHEMA)?)
411 .map_err(|e| e.to_string())
412}
413
414/// An attestation's serialized bytes (`Attestation::serialize`) on the wire.
415/// What travels is exactly what the sending side saved, so the hash the

Callers 2

publish_provenanceMethod · 0.85
publish_provenanceMethod · 0.85

Calls 2

payloadFunction · 0.85
as_refMethod · 0.80

Tested by 1

publish_provenanceMethod · 0.68