47 lines
864 B
Protocol Buffer
47 lines
864 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package arbiter.client;
|
|
|
|
import "evm.proto";
|
|
|
|
message AuthChallengeRequest {
|
|
bytes pubkey = 1;
|
|
}
|
|
|
|
message AuthChallenge {
|
|
bytes pubkey = 1;
|
|
int32 nonce = 2;
|
|
}
|
|
|
|
message AuthChallengeSolution {
|
|
bytes signature = 1;
|
|
}
|
|
|
|
message AuthOk {}
|
|
|
|
message ClientRequest {
|
|
oneof payload {
|
|
AuthChallengeRequest auth_challenge_request = 1;
|
|
AuthChallengeSolution auth_challenge_solution = 2;
|
|
}
|
|
}
|
|
|
|
message ClientConnectError {
|
|
enum Code {
|
|
UNKNOWN = 0;
|
|
APPROVAL_DENIED = 1;
|
|
NO_USER_AGENTS_ONLINE = 2;
|
|
}
|
|
Code code = 1;
|
|
}
|
|
|
|
message ClientResponse {
|
|
oneof payload {
|
|
AuthChallenge auth_challenge = 1;
|
|
AuthOk auth_ok = 2;
|
|
ClientConnectError client_connect_error = 5;
|
|
arbiter.evm.EvmSignTransactionResponse evm_sign_transaction = 3;
|
|
arbiter.evm.EvmAnalyzeTransactionResponse evm_analyze_transaction = 4;
|
|
}
|
|
}
|