summaryrefslogtreecommitdiff
path: root/bip-0070.mediawiki
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2014-05-20 13:50:32 -0400
committerGavin Andresen <gavinandresen@gmail.com>2014-05-20 13:50:32 -0400
commitb7e5b7d2dbae3a9f2978235e74debc7b54c0b941 (patch)
tree008a8bcfc36e9f3d4e4c259403e8d1f46614dc6d /bip-0070.mediawiki
parentb537a2b82c6aa14a64ce29a5a3d575d6c0a17047 (diff)
parent917838608c08b80ac1a6a9f2ba9e40453aa0bc6c (diff)
downloadbips-b7e5b7d2dbae3a9f2978235e74debc7b54c0b941.tar.xz
Merge pull request #41 from harding/master
Clarification of how to construct the PaymentRequest signature
Diffstat (limited to 'bip-0070.mediawiki')
-rw-r--r--bip-0070.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0070.mediawiki b/bip-0070.mediawiki
index 692d7f0..ca83f66 100644
--- a/bip-0070.mediawiki
+++ b/bip-0070.mediawiki
@@ -118,7 +118,7 @@ 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, where signature is a zero-byte array and fields are serialized in numerical order (all current protocol buffer implementations serialize fields in numerical order), using the public key in pki_data.
+| 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.
|}
When a Bitcoin wallet application receives a PaymentRequest, it must authorize payment by doing the following: