Compare commits

...

6 Commits

Author SHA1 Message Date
nfel f23d1251b5 v2: redeem added to tfa code state
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-12-14 17:35:52 +03:30
nfel 5eb260df3a v2: changed tfa check
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-12-14 17:09:24 +03:30
nfel 72cb1d8117 v2: changed tfa check
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-12-14 16:55:50 +03:30
nfel 0cd6107abe v2: changed TFAReq Msg to accept trx id and state
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-12-14 16:45:12 +03:30
nfel 4b1ff1c31d v2: user_id added to recepient msg
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-12-10 15:09:54 +03:30
nfel 5df728fd9c Merge pull request 'improve recipient' (#6) from recipient into v2
Reviewed-on: https://git.kahrobatoken.com/Kahroba/proto/pulls/6
2024-12-10 08:22:22 +00:00
2 changed files with 13 additions and 4 deletions
+12 -4
View File
@@ -194,6 +194,8 @@ message TFAReq {
optional string mobile = 2;
optional string email = 3;
optional string reason = 4; // issued jwt reason -> can be login, redeem, withdrawal
optional string transaction_id = 5;
optional TfaStateEnum state = 6;
}
// Two Factor Authentication Exchange Response
@@ -205,8 +207,11 @@ message TFAExRes {
message CheckTFAReq {
InternalIAM iam = 1;
string code = 2;
optional string algorithm = 3;
optional string reason = 4; // Can be later used as a lookup
TFAReq req = 3;
// optional string algorithm = 3;
// optional string reason = 4; // Can be later used as a lookup
// optional string transaction_id = 5;
// optional TfaStateEnum state = 6;
}
message TFA {
@@ -220,13 +225,16 @@ enum TfaStateEnum {
LOGIN = 1;
INTERNAL_TRANSFER = 2;
EXTERNAL_TRANSFER = 3;
REDEEM_TOKEN = 4;
}
message Recipient {
string key = 1;
optional string first_name = 2;
optional string last_name = 3;
optional string public_key = 4;
optional int64 user_id = 4;
optional string public_key = 5;
}
message LookUpNameReq {
@@ -235,4 +243,4 @@ message LookUpNameReq {
message LookUpNameRes {
Recipient recipient = 1;
}
}
+1
View File
@@ -302,6 +302,7 @@ message InternalTransferAssetReq {
message InternalTransferAssetRes {
auth.v1.Recipient recipient = 1;
double amount = 2;
// TODO: Change to Asset
string transaction_id = 3;
string transaction_hash = 4;
}