Skip to content

Commit 7429b6a

Browse files
fixup! offer: make the merkle tree signature public
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 66a8006 commit 7429b6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/offers/merkle.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl TaggedHash {
4141
/// Creates a tagged hash with the given parameters.
4242
///
4343
/// Panics if `bytes` is not a well-formed TLV stream containing at least one TLV record.
44-
pub fn from_valid_tlv_stream_bytes(tag: &'static str, bytes: &[u8]) -> Self {
44+
pub(super) fn from_valid_tlv_stream_bytes(tag: &'static str, bytes: &[u8]) -> Self {
4545
let tlv_stream = TlvStream::new(bytes);
4646
Self::from_tlv_stream(tag, tlv_stream)
4747
}
@@ -94,7 +94,7 @@ pub enum SignError {
9494
}
9595

9696
/// A function for signing a [`TaggedHash`].
97-
pub(super) trait SignFn<T: AsRef<TaggedHash>> {
97+
pub trait SignFn<T: AsRef<TaggedHash>> {
9898
/// Signs a [`TaggedHash`] computed over the merkle root of `message`'s TLV stream.
9999
fn sign(&self, message: &T) -> Result<Signature, ()>;
100100
}

0 commit comments

Comments
 (0)