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

Method record_attestation

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

Source from the content-addressed store, hash-verified

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