projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1666 from TheBlueMatt/2022-08-fix-script-check
[rust-lightning]
/
fuzz
/
src
/
full_stack.rs
diff --git
a/fuzz/src/full_stack.rs
b/fuzz/src/full_stack.rs
index b65d2a34a95e373190e0ef5ac52ee292b1728bb3..c1d797ea57914cc4e40fb184ccc0a97568bd99df 100644
(file)
--- a/
fuzz/src/full_stack.rs
+++ b/
fuzz/src/full_stack.rs
@@
-272,10
+272,10
@@
impl KeysInterface for KeyProvider {
Ok(self.node_secret.clone())
}
Ok(self.node_secret.clone())
}
- fn ecdh(&self, recipient: Recipient, other_key: &PublicKey, tweak: Option<&
[u8; 32]
>) -> Result<SharedSecret, ()> {
+ fn ecdh(&self, recipient: Recipient, other_key: &PublicKey, tweak: Option<&
Scalar
>) -> Result<SharedSecret, ()> {
let mut node_secret = self.get_node_secret(recipient)?;
if let Some(tweak) = tweak {
let mut node_secret = self.get_node_secret(recipient)?;
if let Some(tweak) = tweak {
- node_secret = node_secret.mul_tweak(
&Scalar::from_be_bytes(*tweak).unwrap()
).unwrap();
+ node_secret = node_secret.mul_tweak(
tweak
).unwrap();
}
Ok(SharedSecret::new(other_key, &node_secret))
}
}
Ok(SharedSecret::new(other_key, &node_secret))
}