mirror of
https://github.com/bitcoin/bips.git
synced 2025-02-23 07:15:30 +01:00
commit
ae993c4e9b
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ Note: this procedure is used if Bob uses a version 1 payment code (regardless of
|
|||
## Bob selects the designated pubkey: <pre>A, where A = aG</pre>
|
||||
## Bob selects the private key associated with his notification address: <pre>b</pre>
|
||||
## Bob calculates a secret point: <pre>S = bA</pre>
|
||||
## Bob calculates the binding factor: <pre>s = HMAC-SHA512(x, o)</pre>
|
||||
## Bob calculates the blinding factor: <pre>s = HMAC-SHA512(x, o)</pre>
|
||||
### "x" is the x value of the secret point
|
||||
### "o" is the outpoint being spent by the designated input.
|
||||
## Bob interprets the 80 byte payload as a payment code, except:
|
||||
|
@ -218,7 +218,7 @@ The following actions are recommended to reduce this risk:
|
|||
|
||||
====Sending====
|
||||
|
||||
# Each time Alice wants to initiate a transaction to Bob, Alice derives a unique P2PKH address for the transaction using ECDH follows:
|
||||
# Each time Alice wants to initiate a transaction to Bob, Alice derives a unique P2PKH address for the transaction using ECDH as follows:
|
||||
## Alice selects the 0th private key derived from her payment code: <pre>a</pre>
|
||||
## Alice selects the next unused public key derived from Bob's payment code, starting from zero: <pre>B, where B = bG</pre>
|
||||
### The "next unused" public key is based on an index specific to the Alice-Bob context, not global to either Alice or Bob
|
||||
|
|
Loading…
Add table
Reference in a new issue