aboutsummaryrefslogtreecommitdiff
path: root/src/qt/paymentrequest.proto
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2018-01-20 17:42:00 +0000
committerRoss Nicoll <[email protected]>2018-09-19 22:11:47 +0100
commit5618d8497a4cdb7a454e04e8563353bb7db124ce (patch)
treecafa3371b8e155badfd5e525f3315fd9abbcb414 /src/qt/paymentrequest.proto
parentAdd block height to block notification substitution options (#1430) (diff)
downloaddiscoin-5618d8497a4cdb7a454e04e8563353bb7db124ce.tar.xz
discoin-5618d8497a4cdb7a454e04e8563353bb7db124ce.zip
Update payment protocol to match Dogecoin (#1433)
* Revised payment request handling to use genesis block hash instead of network name, enabling support for more networks that just Bitcoin main and test net. * Disable payment protocol certificate unit tests; we don't modify this code, and regenerating the test data is likely to be significantly time consuming. Will re-enable once discussion on spec is concluded.
Diffstat (limited to 'src/qt/paymentrequest.proto')
-rw-r--r--src/qt/paymentrequest.proto17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/qt/paymentrequest.proto b/src/qt/paymentrequest.proto
index d2721a34b..1ff0209cc 100644
--- a/src/qt/paymentrequest.proto
+++ b/src/qt/paymentrequest.proto
@@ -1,24 +1,25 @@
//
-// Simple Bitcoin Payment Protocol messages
+// Simple Dogecoin Payment Protocol messages
+// Derived from the Bitcoin Payment Protocol
//
// Use fields 100+ for extensions;
-// to avoid conflicts, register extensions at:
-// https://en.bitcoin.it/wiki/Payment_Request
+// to avoid conflicts, register extensions via pull-req at:
+// https://github.com/dogecoin/dips
//
syntax = "proto2";
package payments;
-option java_package = "org.bitcoin.protocols.payments";
+option java_package = "com.dogecoin.protocols.payments";
option java_outer_classname = "Protos";
-// Generalized form of "send payment to this/these bitcoin addresses"
+// Generalized form of "send payment to this/these dogecoin addresses"
message Output {
- optional uint64 amount = 1 [default = 0]; // amount is integer-number-of-satoshis
- required bytes script = 2; // usually one of the standard Script forms
+ optional uint64 amount = 1 [default = 0]; // amount is integer-number-of-satoshis
+ required bytes script = 2; // usually one of the standard Script forms
}
message PaymentDetails {
- optional string network = 1 [default = "main"]; // "main" or "test"
+ optional string genesis = 1 [default = "1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691"]; // Hash of the network genesis block
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