]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Salt inbound payment ExpandedKey
authorValentine Wallace <vwallace@protonmail.com>
Fri, 17 Dec 2021 00:24:24 +0000 (16:24 -0800)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 17 Dec 2021 00:24:24 +0000 (16:24 -0800)
Leftover feedback from #1177

lightning/src/ln/channelmanager.rs

index 1bbd4a1bac755ceb830221f303787d280e1b5aff..612d2df0c99103ed981b52ec2a5fda2a9dd336b8 100644 (file)
@@ -113,7 +113,7 @@ mod inbound_payment {
 
        impl ExpandedKey {
                pub(super) fn new(key_material: &KeyMaterial) -> ExpandedKey {
-                       hkdf_extract_expand(&vec![0], &key_material)
+                       hkdf_extract_expand(b"LDK Inbound Payment Key Expansion", &key_material)
                }
        }