summaryrefslogtreecommitdiff
path: root/bip-0070.mediawiki
diff options
context:
space:
mode:
authorDavid A. Harding <dave@dtrt.org>2014-03-31 21:34:07 -0400
committerDavid A. Harding <dave@dtrt.org>2014-03-31 21:34:07 -0400
commit4081d3c57f999bf80fd2fdb6b76235997d611cbe (patch)
tree34f998d4727506bc68e13db4282432c62b9bf914 /bip-0070.mediawiki
parent85b537777708b0fc9419b658cd5d23e2838d166e (diff)
downloadbips-4081d3c57f999bf80fd2fdb6b76235997d611cbe.tar.xz
Update bip-0070.mediawiki
Slightly re-worded description of the signature field in PaymentRequest The previous phrasing confused me and I had to check the Bitcoin Core source code to see what it was expecting for a 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 4461118..3988839 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 a zero-byte placeholder.
|}
When a Bitcoin wallet application receives a PaymentRequest, it must authorize payment by doing the following: