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

Method record_attestation

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

Source from the content-addressed store, hash-verified

1167 }
1168
1169 pub fn record_attestation(
1170 &self,
1171 request: pb::RecordAttestationRequest,
1172 ) -> CliResult<pb::RecordAttestationResponse> {
1173 self.call(move |backend| async move {
1174 match backend {
1175 Backend::Local(state) => services_agent::AttestationImpl { state }
1176 .record_attestation(Request::new(request))
1177 .await
1178 .map(|response| response.into_inner()),
1179 Backend::Reactor(channel) => {
1180 let mut attestation =
1181 pb::attestation_service_client::AttestationServiceClient::new(channel);
1182 attestation
1183 .record_attestation(request)
1184 .await
1185 .map(|response| response.into_inner())
1186 }
1187 }
1188 })
1189 }
1190
1191 pub fn verify_attestation(
1192 &self,

Callers 2

intent_attestFunction · 0.45
memory_attestFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected