File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -114,12 +114,13 @@ where
114
114
let mut blinded_priv = session_priv. clone ( ) ;
115
115
let mut blinded_pub = PublicKey :: from_secret_key ( secp_ctx, & blinded_priv) ;
116
116
117
- let unblinded_hops_iter = path. hops . iter ( ) . map ( |h| ( h. pubkey , Some ( h) ) ) ;
117
+ let unblinded_hops_iter = path. hops . iter ( ) . map ( |h| ( & h. pubkey , Some ( h) ) ) ;
118
118
let blinded_pks_iter = path. blinded_tail . as_ref ( )
119
- . map ( |t| t. hops . iter ( ) ) . unwrap_or ( [ ] . iter ( ) ) . skip ( 1 ) // Skip the intro node because it's included in the unblinded hops
120
- . map ( |h| ( h. blinded_node_id , None ) ) ;
119
+ . map ( |t| t. hops . iter ( ) ) . unwrap_or ( [ ] . iter ( ) )
120
+ . skip ( 1 ) // Skip the intro node because it's included in the unblinded hops
121
+ . map ( |h| ( & h. blinded_node_id , None ) ) ;
121
122
for ( idx, ( pubkey, route_hop_opt) ) in unblinded_hops_iter. chain ( blinded_pks_iter) . enumerate ( ) {
122
- let shared_secret = SharedSecret :: new ( & pubkey, & blinded_priv) ;
123
+ let shared_secret = SharedSecret :: new ( pubkey, & blinded_priv) ;
123
124
124
125
let mut sha = Sha256 :: engine ( ) ;
125
126
sha. input ( & blinded_pub. serialize ( ) [ ..] ) ;
You can’t perform that action at this time.
0 commit comments