nex-account/grpc.proto
Maple Nebel dcc0d1b2b7
Some checks failed
Build and Test / nex-account (push) Failing after 52s
add ability to get nex keys for staged accounts
2026-07-07 07:46:55 +02:00

34 lines
608 B
Protocol Buffer

syntax = "proto3";
package nex_account;
message ActCreateInfo {
string principal_name = 1;
bytes key = 2;
string email = 3;
int32 pid = 4;
}
message ActStageInfo {
bytes password = 1;
}
message ActStageReturn {
bytes nex_key = 1;
int32 pid = 2;
}
message PID {
int32 pid = 1;
}
message NexKey {
bytes key = 1;
}
service NexAccountService {
rpc CreateNewSequentialOrUpdateAndGetAccount(ActCreateInfo) returns (NexKey);
rpc GetNexKeyByPid(PID) returns (NexKey);
rpc GetNexKeyByPidMaybeStaged(PID) returns (NexKey);
rpc StageNewAccount(ActStageInfo) returns (ActStageReturn);
}