Skip to content

Commit

Permalink
f: Use public method for hmac creation
Browse files Browse the repository at this point in the history
  • Loading branch information
shaavan committed Sep 10, 2024
1 parent 20d0171 commit a3d3c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10929,7 +10929,7 @@ where
match response {
Ok(invoice) => {
let nonce = nonce.unwrap_or_else(|| Nonce::from_entropy_source(&*self.entropy_source));
let hmac = signer::hmac_for_payment_hash(payment_hash, nonce, expanded_key);
let hmac = payment_hash.hmac_for_offer_payment(nonce, expanded_key);
let context = MessageContext::Offers(OffersContext::InboundPayment { payment_hash, nonce, hmac });
Some((OffersMessage::Invoice(invoice), responder.respond_with_reply_path(context)))
},
Expand Down

0 comments on commit a3d3c8f

Please sign in to comment.