summaryrefslogtreecommitdiff
path: root/bip-0075/paymentrequest.proto
diff options
context:
space:
mode:
authorMatt David <matt@netki.com>2016-03-09 18:57:48 -0800
committerMatt David <matt@netki.com>2016-03-09 18:57:48 -0800
commita8c02462951ebbe0c52248aa64a63c7ed547778e (patch)
treed6aad665e3f0276e412789f9d38043d362468396 /bip-0075/paymentrequest.proto
parentde42024b1a56ff98de2db3e000f928032c5e55b4 (diff)
downloadbips-a8c02462951ebbe0c52248aa64a63c7ed547778e.tar.xz
- Update optional flags to PaymentDetails definition in paymentrequest.proto
- Add DER encoding requirement for EC public keys and ECC signatures - Add SHA-256 hashing requirement for ECC signatures - Add FIPS 180-4 SHS link
Diffstat (limited to 'bip-0075/paymentrequest.proto')
-rw-r--r--bip-0075/paymentrequest.proto17
1 files changed, 9 insertions, 8 deletions
diff --git a/bip-0075/paymentrequest.proto b/bip-0075/paymentrequest.proto
index 149dc97..d1c9e4f 100644
--- a/bip-0075/paymentrequest.proto
+++ b/bip-0075/paymentrequest.proto
@@ -17,14 +17,15 @@ message Output {
}
message PaymentDetails {
optional string network = 1 [default = "main"]; // "main" or "test"
- repeated Output outputs = 2; // Where payment should be sent
- required uint64 time = 3; // Timestamp; when payment request created
- optional uint64 expires = 4; // Timestamp; when this request should be considered invalid
- optional string memo = 5; // Human-readable description of request for the customer
- optional string payment_url = 6; // URL to send Payment and get PaymentACK
- optional bytes merchant_data = 7; // Arbitrary data to include in the Payment message
- optional bool subtract_fee = 1000; // Allow SubtractableFee
- //optional bool replace_by_fee = 1001; // Force RBF true or false (version: 2)
+ repeated Output outputs = 2; // Where payment should be sent
+ required uint64 time = 3; // Timestamp; when payment request created
+ optional uint64 expires = 4; // Timestamp; when this request should be considered invalid
+ optional string memo = 5; // Human-readable description of request for the customer
+ optional string payment_url = 6; // URL to send Payment and get PaymentACK
+ optional bytes merchant_data = 7; // Arbitrary data to include in the Payment message
+ optional uint64 subtractable_fee = 1000; // How many Satoshis can be subtracted from the requested amount and instead applied towards the fee
+ optional uint64 fee_per_kb = 1001; // Minimum transaction fee that must be included with the transaction in order for it to be accepted with zero confirmations.
+ optional bool replace_by_fee = 1002; // 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.
}
message PaymentRequest {
optional uint32 payment_details_version = 1 [default = 1];