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

Method verify_attestation

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

Source from the content-addressed store, hash-verified

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