From: Jeffrey Czyz Date: Wed, 19 Jun 2024 16:29:20 +0000 (-0500) Subject: Change Nonce visibility to pub X-Git-Tag: v0.0.124-beta~37^2~28 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5278d314d500be001b685f3c715c23d44056c9f3;p=rust-lightning Change Nonce visibility to pub A nonce is generated in OfferBuilder::deriving_signing_pubkey from an EntropySource for use in Offer::metadata. The same nonce will need to be included as recipient data in any blinded paths in the Offer. Increase the visibility to allow for this. --- diff --git a/lightning/src/ln/inbound_payment.rs b/lightning/src/ln/inbound_payment.rs index a85d93b71..ba6729290 100644 --- a/lightning/src/ln/inbound_payment.rs +++ b/lightning/src/ln/inbound_payment.rs @@ -104,7 +104,7 @@ impl ExpandedKey { /// [`Offer::metadata`]: crate::offers::offer::Offer::metadata /// [`Offer::signing_pubkey`]: crate::offers::offer::Offer::signing_pubkey #[derive(Clone, Copy, Debug, PartialEq)] -pub(crate) struct Nonce(pub(crate) [u8; Self::LENGTH]); +pub struct Nonce(pub(crate) [u8; Self::LENGTH]); impl Nonce { /// Number of bytes in the nonce.