summaryrefslogtreecommitdiff
path: root/bip-0070.mediawiki
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2014-06-04 19:11:04 -0400
committerGavin Andresen <gavinandresen@gmail.com>2014-06-04 19:11:04 -0400
commitb2c0b87a9c5eac3fe7af3c7eb1655004fde19817 (patch)
tree9f281ff55fcc0b321b52565aa98d834b334e418e /bip-0070.mediawiki
parent153448282713cb056849dfcfe1ca43bbfe6dea06 (diff)
downloadbips-b2c0b87a9c5eac3fe7af3c7eb1655004fde19817.tar.xz
Clarify handling of default fields for signing.
Diffstat (limited to 'bip-0070.mediawiki')
-rw-r--r--bip-0070.mediawiki6
1 files changed, 5 insertions, 1 deletions
diff --git a/bip-0070.mediawiki b/bip-0070.mediawiki
index a23ef7e..433eb13 100644
--- a/bip-0070.mediawiki
+++ b/bip-0070.mediawiki
@@ -124,7 +124,11 @@ A PaymentRequest is PaymentDetails optionally tied to a merchant's identity:
|-
| serialized_payment_details || A protocol-buffer serialized PaymentDetails message.
|-
-| signature || digital signature over a hash of the protocol buffer serialized variation of the PaymentRequest message, with all fields serialized in numerical order (all current protocol buffer implementations serialize fields in numerical order) and signed using the public key in pki_data. Before serialization, the signature field must be set to an empty value so that the field is included in the signed PaymentRequest hash but contains no data.
+| signature || digital signature over a hash of the protocol buffer serialized variation of the PaymentRequest message,
+with all serialized fields serialized in numerical order (all current protocol buffer implementations serialize
+fields in numerical order) and signed using the public key in pki_data. Optional fields that are not set
+are not serialized (however, setting a field to its default value will cause it to be serialized and will affect
+the signature). Before serialization, the signature field must be set to an empty value so that the field is included in the signed PaymentRequest hash but contains no data.
|}
When a Bitcoin wallet application receives a PaymentRequest, it must authorize payment by doing the following: