Skip to content

Commit 0c8256f

Browse files
committed
[bip151] fix typo in HKDF key
1 parent 30a0580 commit 0c8256f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0151.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Encryption initialization must happen before sending any other messages to the r
3939
The symmetric encryption cipher keys will be calculated with ECDH/HKDF by sharing the pubkeys of a ephemeral key. Once the ECDH secret is calculated on each side, the symmetric encryption cipher keys must be derived with HKDF [2] after the following specification:
4040

4141
1. HKDF extraction
42-
<code>PRK = HKDF_EXTRACT(hash=SHA256, salt="bitcoinechd", ikm=ecdh_secret|cipher-type)</code>.
42+
<code>PRK = HKDF_EXTRACT(hash=SHA256, salt="bitcoinecdh", ikm=ecdh_secret|cipher-type)</code>.
4343

4444
2. Derive Key1
4545
<code>K_1 = HKDF_EXPAND(prk=PRK, hash=SHA256, info="BitcoinK1", L=32)</code>

0 commit comments

Comments
 (0)