Skip to content

Commit 7428976

Browse files
committed
f sp
1 parent 4060cde commit 7428976

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lightning/src/blinded_path/message.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ impl Readable for BlindedMessagePath {
5555
impl BlindedMessagePath {
5656
/// Create a one-hop blinded path for a message.
5757
///
58-
/// `compact_padding` selects between space-inefficient padding that better hides contents and
59-
/// a space-constrained padding that does very little to hide the contents, especially for the
58+
/// `compact_padding` selects between space-inefficient padding which better hides contents and
59+
/// a space-constrained padding which does very little to hide the contents, especially for the
6060
/// last hop. It should only be set when the blinded path needs to be as compact as possible.
6161
pub fn one_hop<ES: Deref, T: secp256k1::Signing + secp256k1::Verification>(
6262
recipient_node_id: PublicKey, local_node_receive_key: ReceiveAuthKey,
@@ -79,8 +79,8 @@ impl BlindedMessagePath {
7979

8080
/// Create a path for an onion message, to be forwarded along `node_pks`.
8181
///
82-
/// `compact_padding` selects between space-inefficient padding that better hides contents and
83-
/// a space-constrained padding that does very little to hide the contents, especially for the
82+
/// `compact_padding` selects between space-inefficient padding which better hides contents and
83+
/// a space-constrained padding which does very little to hide the contents, especially for the
8484
/// last hop. It should only be set when the blinded path needs to be as compact as possible.
8585
pub fn new<ES: Deref, T: secp256k1::Signing + secp256k1::Verification>(
8686
intermediate_nodes: &[MessageForwardNode], recipient_node_id: PublicKey,
@@ -104,9 +104,8 @@ impl BlindedMessagePath {
104104

105105
/// Same as [`BlindedMessagePath::new`], but allows specifying a number of dummy hops.
106106
///
107-
///
108-
/// `compact_padding` selects between space-inefficient padding that better hides contents and
109-
/// a space-constrained padding that does very little to hide the contents, especially for the
107+
/// `compact_padding` selects between space-inefficient padding which better hides contents and
108+
/// a space-constrained padding which does very little to hide the contents, especially for the
110109
/// last hop. It should only be set when the blinded path needs to be as compact as possible.
111110
///
112111
/// Note: At most [`MAX_DUMMY_HOPS_COUNT`] dummy hops can be added to the blinded path.

0 commit comments

Comments
 (0)