2022-06-28 11:03:28 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package verify;
|
|
|
|
|
2022-09-22 02:48:30 -04:00
|
|
|
option go_package = "github.com/edgelesssys/constellation/v2/verify/verifyproto";
|
2022-06-28 11:03:28 -04:00
|
|
|
|
|
|
|
service API {
|
2023-03-23 13:08:49 -04:00
|
|
|
// GetAttestation returns an attestation for the given user data and nonce.
|
|
|
|
rpc GetAttestation(GetAttestationRequest) returns (GetAttestationResponse);
|
2022-06-28 11:03:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetAttestationRequest {
|
2023-03-23 13:08:49 -04:00
|
|
|
// bytes user_data = 1; removed
|
|
|
|
// nonce is a random nonce to prevent replay attacks.
|
|
|
|
bytes nonce = 2;
|
2022-06-28 11:03:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetAttestationResponse {
|
2023-03-23 13:08:49 -04:00
|
|
|
// attestation is the attestation for the given user data and nonce.
|
|
|
|
bytes attestation = 1;
|
2022-06-28 11:03:28 -04:00
|
|
|
}
|