26 lines
302 B
Protocol Buffer
26 lines
302 B
Protocol Buffer
syntax="proto3";
|
|
package messages;
|
|
|
|
message SignRequest {
|
|
bytes vkey = 1;
|
|
bytes body = 2;
|
|
bytes sig = 3;
|
|
}
|
|
|
|
message SignResponse {
|
|
oneof result {
|
|
Okay okay = 1;
|
|
Fail fail = 2;
|
|
}
|
|
}
|
|
|
|
message Okay {
|
|
bytes sig = 1;
|
|
}
|
|
|
|
enum Fail {
|
|
UnrecognisedKey = 1;
|
|
ExpiredKey = 2;
|
|
Other = 3;
|
|
}
|