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 {
|
2026-06-23 11:43:21 +02:00
|
|
|
bytes password = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ActStageReturn {
|
2026-06-22 22:55:55 +02:00
|
|
|
bytes nex_key = 1;
|
2026-06-23 11:43:21 +02:00
|
|
|
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);
|
2026-07-07 07:46:55 +02:00
|
|
|
rpc GetNexKeyByPidMaybeStaged(PID) returns (NexKey);
|
2026-06-23 11:43:21 +02:00
|
|
|
rpc StageNewAccount(ActStageInfo) returns (ActStageReturn);
|
2026-06-16 13:47:49 +02:00
|
|
|
}
|