@@ -498,8 +498,8 @@ where
498498 /// Verifies a [`Bolt12Invoice`] using the provided [`OffersContext`] or the invoice's payer
499499 /// metadata, returning the corresponding [`PaymentId`] if successful.
500500 ///
501- /// - If an [`OffersContext::OutboundPaymentInInvReq `] or
502- /// [`OffersContext::OutboundPaymentInRefund `] with a `nonce` is provided, verification is
501+ /// - If an [`OffersContext::OutboundPaymentForOffer `] or
502+ /// [`OffersContext::OutboundPaymentForRefund `] with a `nonce` is provided, verification is
503503 /// performed using this to form the payer metadata.
504504 /// - If no context is provided and the invoice corresponds to a [`Refund`] without blinded paths,
505505 /// verification is performed using the [`Bolt12Invoice::payer_metadata`].
@@ -514,14 +514,14 @@ where
514514 None if invoice. is_for_refund_without_paths ( ) => {
515515 invoice. verify_using_metadata ( expanded_key, secp_ctx)
516516 } ,
517- Some ( & OffersContext :: OutboundPaymentInInvReq { payment_id, nonce, .. } ) => {
517+ Some ( & OffersContext :: OutboundPaymentForOffer { payment_id, nonce, .. } ) => {
518518 if invoice. is_for_offer ( ) {
519519 invoice. verify_using_payer_data ( payment_id, nonce, expanded_key, secp_ctx)
520520 } else {
521521 Err ( ( ) )
522522 }
523523 } ,
524- Some ( & OffersContext :: OutboundPaymentInRefund { payment_id, nonce, .. } ) => {
524+ Some ( & OffersContext :: OutboundPaymentForRefund { payment_id, nonce, .. } ) => {
525525 if invoice. is_for_refund ( ) {
526526 invoice. verify_using_payer_data ( payment_id, nonce, expanded_key, secp_ctx)
527527 } else {
@@ -693,7 +693,7 @@ where
693693
694694 let nonce = Nonce :: from_entropy_source ( entropy) ;
695695 let context =
696- MessageContext :: Offers ( OffersContext :: OutboundPaymentInRefund { payment_id, nonce } ) ;
696+ MessageContext :: Offers ( OffersContext :: OutboundPaymentForRefund { payment_id, nonce } ) ;
697697
698698 // Create the base builder with common properties
699699 let mut builder = RefundBuilder :: deriving_signing_pubkey (
@@ -1130,7 +1130,7 @@ where
11301130 peers : Vec < MessageForwardNode > ,
11311131 ) -> Result < ( ) , Bolt12SemanticError > {
11321132 let context =
1133- MessageContext :: Offers ( OffersContext :: OutboundPaymentInInvReq { payment_id, nonce } ) ;
1133+ MessageContext :: Offers ( OffersContext :: OutboundPaymentForOffer { payment_id, nonce } ) ;
11341134 let reply_paths = self
11351135 . create_blinded_paths ( peers, context)
11361136 . map_err ( |_| Bolt12SemanticError :: MissingPaths ) ?;
0 commit comments