@@ -330,16 +330,16 @@ impl<'a, S: SigningPubkeyStrategy> InvoiceBuilder<'a, S> {
330330
331331impl < ' a > InvoiceBuilder < ' a , ExplicitSigningPubkey > {
332332 /// Builds an unsigned [`Bolt12Invoice`] after checking for valid semantics. It can be signed by
333- /// [`UnsignedInvoice ::sign`].
334- pub fn build ( self ) -> Result < UnsignedInvoice < ' a > , SemanticError > {
333+ /// [`UnsignedBolt12Invoice ::sign`].
334+ pub fn build ( self ) -> Result < UnsignedBolt12Invoice < ' a > , SemanticError > {
335335 #[ cfg( feature = "std" ) ] {
336336 if self . invoice . is_offer_or_refund_expired ( ) {
337337 return Err ( SemanticError :: AlreadyExpired ) ;
338338 }
339339 }
340340
341341 let InvoiceBuilder { invreq_bytes, invoice, .. } = self ;
342- Ok ( UnsignedInvoice { invreq_bytes, invoice } )
342+ Ok ( UnsignedBolt12Invoice { invreq_bytes, invoice } )
343343 }
344344}
345345
@@ -355,7 +355,7 @@ impl<'a> InvoiceBuilder<'a, DerivedSigningPubkey> {
355355 }
356356
357357 let InvoiceBuilder { invreq_bytes, invoice, keys, .. } = self ;
358- let unsigned_invoice = UnsignedInvoice { invreq_bytes, invoice } ;
358+ let unsigned_invoice = UnsignedBolt12Invoice { invreq_bytes, invoice } ;
359359
360360 let keys = keys. unwrap ( ) ;
361361 let invoice = unsigned_invoice
@@ -366,12 +366,12 @@ impl<'a> InvoiceBuilder<'a, DerivedSigningPubkey> {
366366}
367367
368368/// A semantically valid [`Bolt12Invoice`] that hasn't been signed.
369- pub struct UnsignedInvoice < ' a > {
369+ pub struct UnsignedBolt12Invoice < ' a > {
370370 invreq_bytes : & ' a Vec < u8 > ,
371371 invoice : InvoiceContents ,
372372}
373373
374- impl < ' a > UnsignedInvoice < ' a > {
374+ impl < ' a > UnsignedBolt12Invoice < ' a > {
375375 /// The public key corresponding to the key needed to sign the invoice.
376376 pub fn signing_pubkey ( & self ) -> PublicKey {
377377 self . invoice . fields ( ) . signing_pubkey
0 commit comments