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 StageNewAccount(ActStageInfo) returns (ActStageReturn); }