Changeset View
Changeset View
Standalone View
Standalone View
src/qt/paymentrequest.proto
// | // | ||||
// Simple Bitcoin Payment Protocol messages | // Simple Bitcoin Cash Payment Protocol messages | ||||
// based on Simple Bitcoin Payment Protocol | |||||
// | // | ||||
// Use fields 100+ for extensions; | // Use fields 100+ for extensions; | ||||
// to avoid conflicts, register extensions at: | // to avoid conflicts, register extensions at: | ||||
// https://en.bitcoin.it/wiki/Payment_Request | // TODO (was: https://en.bitcoin.it/wiki/Payment_Request) | ||||
// | // | ||||
syntax = "proto2"; | syntax = "proto2"; | ||||
package payments; | package payments; | ||||
option java_package = "org.bitcoin.protocols.payments"; | option java_package = "org.bitcoincash.protocols.payments"; | ||||
option java_outer_classname = "Protos"; | option java_outer_classname = "Protos"; | ||||
// Generalized form of "send payment to this/these bitcoin addresses" | // Generalized form of "send payment to this/these bitcoin cash addresses" | ||||
message Output { | message Output { | ||||
optional uint64 amount = 1 [default = 0]; // amount is integer-number-of-satoshis | optional uint64 amount = 1 [default = 0]; // amount is integer-number-of-satoshis | ||||
required bytes script = 2; // usually one of the standard Script forms | required bytes script = 2; // usually one of the standard Script forms | ||||
} | } | ||||
message PaymentDetails { | message PaymentDetails { | ||||
optional string network = 1 [default = "main"]; // "main" or "test" | optional string network = 1 [default = "main"]; // "main" or "test" | ||||
repeated Output outputs = 2; // Where payment should be sent | repeated Output outputs = 2; // Where payment should be sent | ||||
required uint64 time = 3; // Timestamp; when payment request created | required uint64 time = 3; // Timestamp; when payment request created | ||||
Show All 25 Lines |