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

improve Bitmessage key derivation

This commit is contained in:
Justus Ranvier 2015-06-25 11:15:57 -05:00
parent 2616c9abc3
commit e700392b15

View File

@ -214,9 +214,9 @@ A recipient prefers to receive notifications via Bitmessage indiates this prefer
The sender uses this information to construct a valid notification Bitmessage address:
# Use the recipient's 0<sup>th</sup> public key as the Bitmessage signing key: <pre>B</pre>
# Derive a Bitmessage signing key as: <pre>B = payment code / 0 / 0</pre>
# Initialize a counter at 1: <pre>n</pre>
# Derive a candidate encryption key: <pre>B' = B + nG</pre>
# Derive a candidate encryption key as: <pre>B' = payment code / 0 / n</pre>
# If the combination of B and B` do not form a valid Bitmessage address, increment n by one and try again
# Use the address version, signing key, encryption key, and stream number to construct a Bitmessage address per the Bitmessage protocol