nex-account/grpc.proto

34 lines
608 B
Protocol Buffer
Raw Normal View History

2026-06-16 13:47:49 +02:00
syntax = "proto3";
package nex_account;
2026-06-22 22:55:55 +02:00
message ActCreateInfo {
2026-06-16 13:47:49 +02:00
string principal_name = 1;
2026-06-16 14:32:32 +02:00
bytes key = 2;
2026-06-16 13:47:49 +02:00
string email = 3;
2026-06-22 22:55:55 +02:00
int32 pid = 4;
}
message ActStageInfo {
bytes password = 1;
}
message ActStageReturn {
2026-06-22 22:55:55 +02:00
bytes nex_key = 1;
int32 pid = 2;
2026-06-16 13:47:49 +02:00
}
message PID {
int32 pid = 1;
}
message NexKey {
2026-06-16 14:32:32 +02:00
bytes key = 1;
2026-06-16 13:47:49 +02:00
}
service NexAccountService {
2026-06-22 22:55:55 +02:00
rpc CreateNewSequentialOrUpdateAndGetAccount(ActCreateInfo) returns (NexKey);
2026-06-16 13:47:49 +02:00
rpc GetNexKeyByPid(PID) returns (NexKey);
rpc GetNexKeyByPidMaybeStaged(PID) returns (NexKey);
rpc StageNewAccount(ActStageInfo) returns (ActStageReturn);
2026-06-16 13:47:49 +02:00
}