syntax = "proto3";

package crypter.v1;

import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "crypter/v1/resource.proto";


message BatchSignRequest {
  repeated bytes privk = 1;
  repeated bytes data = 2;
  CryptType crypt_type = 3;
}

message BatchSignResponse {
  repeated bytes signature = 1;
}

message BatchVerifyRequest {
  repeated bytes pubkey = 1;
  repeated bytes signature = 2;
  CryptType crypt_type = 3;
}

message BatchVerifyResponse {
  repeated bool verified = 1;
}


message BatchRecoverRequest {
  repeated bytes data = 1;
  repeated bytes signature = 2;
  CryptType crypt_type = 3;
}

message BatchRecoverResponse {
  repeated bytes pubkey = 1;
}

message BatchRecoverTxRequest {
  repeated EthTx raw_tx = 1;
}

message BatchRecoverTxResponse {
  repeated RethTx recover_tx = 1;
}
