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

Function attestation_bytes

libatomic/src/daemon/sandbox_wire.rs:376–378  ·  view source on GitHub ↗

An attestation's serialized bytes (`Attestation::serialize`) on the wire. What travels is exactly what the sending side saved, so the hash the owner computes over it is the hash the sender did.

(attestation: Vec<u8>)

Source from the content-addressed store, hash-verified

374/// What travels is exactly what the sending side saved, so the hash the
375/// owner computes over it is the hash the sender did.
376pub fn attestation_bytes(attestation: Vec<u8>) -> pb::VersionedBytes {
377 versioned(ATTESTATION_SCHEMA, attestation)
378}
379
380/// The serialized attestation a [`pb::SubmitAttestationRequest`] carries.
381pub fn attestation_from(bytes: Option<&pb::VersionedBytes>) -> Result<Vec<u8>, String> {

Callers 3

submit_attestationMethod · 0.85
submit_attestationMethod · 0.85

Calls 1

versionedFunction · 0.85

Tested by 2

submit_attestationMethod · 0.68