Skip to content

Commit 0e262c2

Browse files
committed
f - expand verify_signature docs
1 parent 0faeefd commit 0e262c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/offers/merkle.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ tlv_stream!(SignatureTlvStream, SignatureTlvStreamRef, SIGNATURE_TYPES, {
2626

2727
/// Verifies the signature with a pubkey over the given bytes using a tagged hash as the message
2828
/// digest.
29+
///
30+
/// Assumes `bytes` is a well-formed TLV stream containing at least one TLV record.
2931
pub(super) fn verify_signature(
3032
signature: &Signature, tag: &str, bytes: &[u8], pubkey: PublicKey,
3133
) -> Result<(), secp256k1::Error> {

0 commit comments

Comments
 (0)