1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-05-12 12:03:29 +00:00

Remove anchor template and use spans for anchors instead

This commit is contained in:
Matt David 2015-12-04 11:29:44 -08:00
parent 543409c7f7
commit 61cfbaefa7

View File

@ -111,7 +111,7 @@ The new ReturnPaymentRequest message is an encapsulating message that allows the
# Sender validates ReturnPaymentRequest # Sender validates ReturnPaymentRequest
# Sender [[#rpr-validation-pr-decryption|decrypts and validates]] encrypted PaymentRequest # Sender [[#rpr-validation-pr-decryption|decrypts and validates]] encrypted PaymentRequest
{{anchor|ir-creation}} <span id="ir-creation"></span>
===InvoiceRequest Message Creation=== ===InvoiceRequest Message Creation===
* Create an InvoiceRequest message * Create an InvoiceRequest message
@ -124,7 +124,7 @@ The new ReturnPaymentRequest message is an encapsulating message that allows the
** Set pki_data as it would be set in BIP-0070 (see [Certificates](https://github.com/bitcoin/bips/blob/master/bip-0070.mediawiki#Certificates) section) ** Set pki_data as it would be set in BIP-0070 (see [Certificates](https://github.com/bitcoin/bips/blob/master/bip-0070.mediawiki#Certificates) section)
** Sign InvoiceRequest with signature == "" using the X509 Certificate's private key ** Sign InvoiceRequest with signature == "" using the X509 Certificate's private key
{{anchor|ir-validation}} <span id="ir-validation"></span>
===InvoiceRequest Validation=== ===InvoiceRequest Validation===
* Validate sender_public_key is a valid EC public key * Validate sender_public_key is a valid EC public key
@ -132,7 +132,7 @@ The new ReturnPaymentRequest message is an encapsulating message that allows the
* If pki_type is None, InvoiceRequest is VALID * If pki_type is None, InvoiceRequest is VALID
* If pki_type is x509+sha256 and signature is valid for the serialized InvoiceRequest where signature is set to "", InvoiceRequest is VALID * If pki_type is x509+sha256 and signature is valid for the serialized InvoiceRequest where signature is set to "", InvoiceRequest is VALID
{{anchor|rpr-creation-encryption}} <span id="rpr-creation-encryption"></span>
===ReturnPaymentRequest Message Creation and PaymentRequest Encryption=== ===ReturnPaymentRequest Message Creation and PaymentRequest Encryption===
* Encrypt the serialized PaymentRequest using AES-256-CBC setup as described in [[#ECDH-AES-Setup ECDH Point Generation and AES-256 (CBC Mode) Setup]] * Encrypt the serialized PaymentRequest using AES-256-CBC setup as described in [[#ECDH-AES-Setup ECDH Point Generation and AES-256 (CBC Mode) Setup]]
@ -142,7 +142,7 @@ The new ReturnPaymentRequest message is an encapsulating message that allows the
* Set ephemeral_public_key to the public key of an EC keypair created using the secret point's X value. * Set ephemeral_public_key to the public key of an EC keypair created using the secret point's X value.
* Set payment_request_hash to generated SHA256 hash of the serialized PaymentRequest (without encryption) * Set payment_request_hash to generated SHA256 hash of the serialized PaymentRequest (without encryption)
{{anchor|rpr-validation-pr-decryption}} <span id="rpr-validation-pr-decryption"></span>
===ReturnPaymentRequest Validation and Decryption=== ===ReturnPaymentRequest Validation and Decryption===
* Validate ephemeral_public_key matches public key of an EC keypair created using the secret point's X value. * Validate ephemeral_public_key matches public key of an EC keypair created using the secret point's X value.