Skip to content

Commit 8e865b2

Browse files
committed
f - add clarifying comments about AsRef<TaggedHash>
1 parent c8d0a90 commit 8e865b2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lightning/src/offers/invoice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ impl UnsignedBolt12Invoice {
425425
}
426426
}
427427

428+
// Allows passing a function that takes `UnsignedBolt12Invoice` to `merkle::sign_message`.
428429
impl AsRef<TaggedHash> for UnsignedBolt12Invoice {
429430
fn as_ref(&self) -> &TaggedHash {
430431
&self.tagged_hash

lightning/src/offers/invoice_request.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ impl UnsignedInvoiceRequest {
391391
}
392392
}
393393

394+
// Allows passing a function that takes `UnsignedInvoiceRequest` to `merkle::sign_message`.
394395
impl AsRef<TaggedHash> for UnsignedInvoiceRequest {
395396
fn as_ref(&self) -> &TaggedHash {
396397
&self.tagged_hash

0 commit comments

Comments
 (0)