You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 1000 || [[https://github.com/bitcoin/bips/blob/master/bip-0075.mediawiki|BIP0075]] || subtract_fee || 1 || If "true," indicates the sender can subtract the transaction fee from the requested amount. Otherwise, the transaction fee must be included separately from the requested amount.
9
+
|-
10
+
| 1001 || [[https://github.com/bitcoin/bips/blob/master/bip-0075.mediawiki|BIP0075]] || replace_by_fee || 2 || If "true," indicates the sender can enable the Replace By Fee flag for this transaction and the receiver will still consider it accepted with zero confirmations. Otherwise, RBF transactions will not be accepted by the receiver until they are confirmed.
@@ -82,7 +82,7 @@ service. In this case, a successful attack against a Store & Forward service wou
82
82
or payment information, only delete encrypted messages.
83
83
84
84
==New Messages==
85
-
Updated [/bip-ir/paymentrequest.proto paymentrequest.proto] contains the existing PaymentRequest Protocol Buffer messages as well as
85
+
Updated [/bip-0075/paymentrequest.proto paymentrequest.proto] contains the existing PaymentRequest Protocol Buffer messages as well as
86
86
the messages newly defined in this BIP.
87
87
88
88
Note: Public keys from both parties must be known to each other in order to facilitate encrypted communication. Although including both public keys in every message may get redundant, it provides the most flexibility as each message is completely self-contained.
@@ -273,7 +273,7 @@ Optionally, the Sender MAY choose to encrypt the InvoiceRequest message and ther
273
273
# The PaymentRequest is processed according to BIP70, including optional Payment and PaymentACK messages
# Sender retrieves Receiver InvoiceRequest Public Key
@@ -293,7 +293,7 @@ Optionally, the Sender MAY choose to encrypt the InvoiceRequest message and ther
293
293
294
294
<b>NOTE:</b> See section <b>Initial Public Key Retrieval for InvoiceRequest Encryption</b> below for possible options to retrieve Receiver InvoiceRequest public keys.
To keep up with recent advancements in transaction type, two optional fields will be added to the BIP 70 PaymentDetails message. subtract_fee will be added to the current version 1 fields, making the complete list look like the following:
468
+
469
+
470
+
<pre>
471
+
message PaymentDetails {
472
+
optional string network [default = "main"];
473
+
repeated Output outputs;
474
+
required uint64 time;
475
+
optional uint64 expires;
476
+
optional string memo;
477
+
optional string payment_url;
478
+
optional bytes merchant_data;
479
+
optional bool subtract_fee = 1;
480
+
}
481
+
</pre>
482
+
483
+
replace_by_fee will be added as a version 2 field, meaning it is only available if payment_details_version is set to 2 or higher in the PaymentRequest message:
484
+
485
+
<pre>
486
+
message PaymentDetails {
487
+
...
488
+
optional bool replace_by_fee = 2;
489
+
}
490
+
</pre>
491
+
492
+
{| class="wikitable"
493
+
! Field Name !! Field Number || Payment Details Version !! Description
494
+
|-
495
+
| subtract_fee || 1000 || 1 || If "true," indicates the sender can subtract the transaction fee from the requested amount. Otherwise, the transaction fee must be included separately from the requested amount.
496
+
|-
497
+
| replace_by_fee || 1001 || 2 || If "true," indicates the sender can enable the Replace By Fee flag for this transaction and the receiver will still consider it accepted with zero confirmations. Otherwise, RBF transactions will not be accepted by the receiver until they are confirmed.
0 commit comments