@@ -545,7 +545,7 @@ impl Writeable for PaymentParameters {
545
545
let mut blinded_hints = & vec ! [ ] ;
546
546
match & self . payee {
547
547
Payee :: Clear { route_hints, .. } => clear_hints = route_hints,
548
- Payee :: Blinded ( hints ) => blinded_hints = hints ,
548
+ Payee :: Blinded { route_hints } => blinded_hints = route_hints ,
549
549
}
550
550
write_tlv_fields ! ( writer, {
551
551
( 0 , self . payee. node_id( ) , option) ,
@@ -581,7 +581,7 @@ impl ReadableArgs<u32> for PaymentParameters {
581
581
let blinded_route_hints = blinded_route_hints. unwrap_or ( vec ! [ ] ) ;
582
582
let payee = if blinded_route_hints. len ( ) != 0 {
583
583
if clear_route_hints. len ( ) != 0 || payee_pubkey. is_some ( ) { return Err ( DecodeError :: InvalidValue ) }
584
- Payee :: Blinded ( blinded_route_hints)
584
+ Payee :: Blinded { route_hints : blinded_route_hints }
585
585
} else {
586
586
Payee :: Clear {
587
587
route_hints : clear_route_hints,
@@ -633,7 +633,7 @@ impl PaymentParameters {
633
633
///
634
634
/// This is not exported to bindings users since bindings don't support move semantics
635
635
pub fn with_bolt11_features ( self , features : InvoiceFeatures ) -> Result < Self , ( ) > {
636
- if let Payee :: Blinded ( _ ) = self . payee { return Err ( ( ) ) }
636
+ if let Payee :: Blinded { .. } = self . payee { return Err ( ( ) ) }
637
637
Ok ( Self { features : Some ( features) , ..self } )
638
638
}
639
639
@@ -643,7 +643,7 @@ impl PaymentParameters {
643
643
/// This is not exported to bindings users since bindings don't support move semantics
644
644
pub fn with_route_hints ( self , route_hints : Vec < RouteHint > ) -> Result < Self , ( ) > {
645
645
match self . payee {
646
- Payee :: Blinded ( _ ) => Err ( ( ) ) ,
646
+ Payee :: Blinded { .. } => Err ( ( ) ) ,
647
647
Payee :: Clear { node_id, .. } =>
648
648
Ok ( Self { payee : Payee :: Clear { route_hints, node_id } , ..self } )
649
649
}
@@ -684,7 +684,11 @@ impl PaymentParameters {
684
684
pub enum Payee {
685
685
/// The recipient provided blinded paths and payinfo to reach them. The blinded paths themselves
686
686
/// will be included in the final [`Route`].
687
- Blinded ( Vec < ( BlindedPayInfo , BlindedPath ) > ) ,
687
+ Blinded {
688
+ /// Aggregated routing info and blinded paths, for routing to the payee without knowing their
689
+ /// node id.
690
+ route_hints : Vec < ( BlindedPayInfo , BlindedPath ) > ,
691
+ } ,
688
692
/// The recipient included these route hints in their BOLT11 invoice.
689
693
Clear {
690
694
/// The node id of the payee.
0 commit comments