Skip to content

Commit

Permalink
Add change metadata to encrypted data
Browse files Browse the repository at this point in the history
Added receiver address. amount and payment id to encrypted data so a view only
wallet will be able to identify the receiver when importing a change output.
  • Loading branch information
hansieodendaal committed Dec 12, 2024
1 parent 37c30be commit 3992e03
Show file tree
Hide file tree
Showing 55 changed files with 1,707 additions and 1,039 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions applications/minotari_app_grpc/proto/wallet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,15 @@ message SendShaAtomicSwapRequest {
message CreateBurnTransactionRequest{
uint64 amount = 1;
uint64 fee_per_gram = 2;
string message = 3;
bytes claim_public_key = 4;
bytes payment_id = 5;
}


message PaymentRecipient {
string address = 1;
uint64 amount = 2;
uint64 fee_per_gram = 3;
string message = 4;
enum PaymentType {
STANDARD_MIMBLEWIMBLE = 0;
ONE_SIDED = 1;
Expand Down Expand Up @@ -191,7 +190,6 @@ message TransactionInfo {
bool is_cancelled = 8;
bytes excess_sig = 9;
uint64 timestamp = 10;
string message = 11;
bytes payment_id = 12;
}

Expand Down Expand Up @@ -257,8 +255,8 @@ message CoinSplitRequest {
uint64 amount_per_split = 1;
uint64 split_count = 2;
uint64 fee_per_gram = 3;
string message = 4;
uint64 lock_height = 5;
bytes payment_id = 6;
}

message CoinSplitResponse {
Expand All @@ -267,6 +265,7 @@ message CoinSplitResponse {

message ImportUtxosRequest {
repeated UnblindedOutput outputs = 1;
bytes payment_id = 2;
}

message ImportUtxosResponse {
Expand Down Expand Up @@ -330,7 +329,6 @@ message TransactionEvent {
string status = 5;
string direction = 6;
uint64 amount = 7;
string message = 8;
bytes payment_id = 9;
}

Expand All @@ -342,7 +340,7 @@ message RegisterValidatorNodeRequest {
bytes validator_node_public_key = 1;
Signature validator_node_signature = 2;
uint64 fee_per_gram = 3;
string message = 4;
bytes payment_id = 5;
}

message RegisterValidatorNodeResponse {
Expand Down
Loading

0 comments on commit 3992e03

Please sign in to comment.