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

Function publication_from

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

Source from the content-addressed store, hash-verified

364}
365
366pub 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

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