X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fblinded_path%2Fmod.rs;h=1415836c01fee6cacaa8d2808f28d6d9ecfba37a;hb=d7a6d0d10db17f8c737bf3ad40e7b9f4343e60d8;hp=896999799fbebed4456f8c53768881698d4e581f;hpb=6dc42235baaa22320ad78d3e05fab31edad99328;p=rust-lightning diff --git a/lightning/src/blinded_path/mod.rs b/lightning/src/blinded_path/mod.rs index 89699979..1415836c 100644 --- a/lightning/src/blinded_path/mod.rs +++ b/lightning/src/blinded_path/mod.rs @@ -57,7 +57,7 @@ pub struct BlindedHop { impl BlindedPath { /// Create a one-hop blinded path for a message. - pub fn one_hop_for_message( + pub fn one_hop_for_message( recipient_node_id: PublicKey, entropy_source: &ES, secp_ctx: &Secp256k1 ) -> Result { Self::new_for_message(&[recipient_node_id], entropy_source, secp_ctx) @@ -68,7 +68,7 @@ impl BlindedPath { /// /// Errors if no hops are provided or if `node_pk`(s) are invalid. // TODO: make all payloads the same size with padding + add dummy hops - pub fn new_for_message( + pub fn new_for_message( node_pks: &[PublicKey], entropy_source: &ES, secp_ctx: &Secp256k1 ) -> Result { if node_pks.is_empty() { return Err(()) }