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

Function attestation_from

libatomic/src/daemon/sandbox_wire.rs:381–383  ·  view source on GitHub ↗

The serialized attestation a [`pb::SubmitAttestationRequest`] carries.

(bytes: Option<&pb::VersionedBytes>)

Source from the content-addressed store, hash-verified

379
380/// The serialized attestation a [`pb::SubmitAttestationRequest`] carries.
381pub fn attestation_from(bytes: Option<&pb::VersionedBytes>) -> Result<Vec<u8>, String> {
382 Ok(payload(bytes, ATTESTATION_SCHEMA)?.to_vec())
383}
384
385#[cfg(test)]
386mod tests {

Calls 1

payloadFunction · 0.85