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

Method verify_attestation

atomic-cli/src/service/mod.rs:1193–1213  ·  view source on GitHub ↗
(
        &self,
        request: pb::VerifyAttestationRequest,
    )

Source from the content-addressed store, hash-verified

1191 }
1192
1193 pub fn verify_attestation(
1194 &self,
1195 request: pb::VerifyAttestationRequest,
1196 ) -> CliResult<pb::VerifyAttestationResponse> {
1197 self.call(move |backend| async move {
1198 match backend {
1199 Backend::Local(state) => services_agent::AttestationImpl { state }
1200 .verify_attestation(Request::new(request))
1201 .await
1202 .map(|response| response.into_inner()),
1203 Backend::Reactor(channel) => {
1204 let mut attestation =
1205 pb::attestation_service_client::AttestationServiceClient::new(channel);
1206 attestation
1207 .verify_attestation(request)
1208 .await
1209 .map(|response| response.into_inner())
1210 }
1211 }
1212 })
1213 }
1214
1215 pub fn list_attestations(
1216 &self,

Callers 2

intent_verifyFunction · 0.45
memory_verifyFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected