We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 362ddab commit 593d2e9Copy full SHA for 593d2e9
lightning/src/ln/onion_utils.rs
@@ -82,11 +82,7 @@ pub(super) fn next_hop_packet_pubkey<T: secp256k1::Signing + secp256k1::Verifica
82
Sha256::from_engine(sha).into_inner()
83
};
84
85
- if let Err(e) = packet_pubkey.mul_assign(secp_ctx, &blinding_factor[..]) {
86
- Err(e)
87
- } else {
88
- Ok(packet_pubkey)
89
- }
+ packet_pubkey.mul_assign(secp_ctx, &blinding_factor[..]).map(|_| packet_pubkey)
90
}
91
92
// can only fail if an intermediary hop has an invalid public key or session_priv is invalid
0 commit comments