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

Function attestation_from

libatomic/src/daemon/sandbox_wire.rs:422–424  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

420
421/// The serialized attestation a [`pb::SubmitAttestationRequest`] carries.
422pub fn attestation_from(bytes: Option<&pb::VersionedBytes>) -> Result<Vec<u8>, String> {
423 Ok(payload(bytes, ATTESTATION_SCHEMA)?.to_vec())
424}
425
426#[cfg(test)]
427mod tests {

Calls 1

payloadFunction · 0.85