Skip to content

Commit a3d3c8f

Browse files
committed
f: Use public method for hmac creation
1 parent 20d0171 commit a3d3c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10929,7 +10929,7 @@ where
1092910929
match response {
1093010930
Ok(invoice) => {
1093110931
let nonce = nonce.unwrap_or_else(|| Nonce::from_entropy_source(&*self.entropy_source));
10932-
let hmac = signer::hmac_for_payment_hash(payment_hash, nonce, expanded_key);
10932+
let hmac = payment_hash.hmac_for_offer_payment(nonce, expanded_key);
1093310933
let context = MessageContext::Offers(OffersContext::InboundPayment { payment_hash, nonce, hmac });
1093410934
Some((OffersMessage::Invoice(invoice), responder.respond_with_reply_path(context)))
1093510935
},

0 commit comments

Comments
 (0)