Skip to content

Commit 1742784

Browse files
committed
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.
1 parent 2498864 commit 1742784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/inbound_payment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl ExpandedKey {
104104
/// [`Offer::metadata`]: crate::offers::offer::Offer::metadata
105105
/// [`Offer::signing_pubkey`]: crate::offers::offer::Offer::signing_pubkey
106106
#[derive(Clone, Copy, Debug, PartialEq)]
107-
pub(crate) struct Nonce(pub(crate) [u8; Self::LENGTH]);
107+
pub struct Nonce(pub(crate) [u8; Self::LENGTH]);
108108

109109
impl Nonce {
110110
/// Number of bytes in the nonce.

0 commit comments

Comments
 (0)