You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fuzz/fuzz_targets/full_stack_target.rs
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,12 @@ use bitcoin::blockdata::script::{Builder, Script};
18
18
use bitcoin::blockdata::opcodes;
19
19
use bitcoin::consensus::encode::deserialize;
20
20
use bitcoin::network::constants::Network;
21
-
use bitcoin::util::hash::{BitcoinHash,Sha256dHash,Hash160};
21
+
use bitcoin::util::hash::{BitcoinHash,Sha256dHash};
22
22
23
23
use bitcoin_hashes::HashasTraitImport;
24
24
use bitcoin_hashes::HashEngineasTraitImportEngine;
25
25
use bitcoin_hashes::sha256::HashasSha256;
26
+
use bitcoin_hashes::hash160::HashasHash160;
26
27
27
28
use lightning::chain::chaininterface::{BroadcasterInterface,ConfirmationTarget,ChainListener,FeeEstimator,ChainWatchInterfaceUtil};
28
29
use lightning::chain::transaction::OutPoint;
@@ -244,7 +245,7 @@ impl KeysInterface for KeyProvider {
244
245
fnget_destination_script(&self) -> Script{
245
246
let secp_ctx = Secp256k1::signing_only();
246
247
let channel_monitor_claim_key = SecretKey::from_slice(&secp_ctx,&hex::decode("0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff").unwrap()[..]).unwrap();
247
-
let our_channel_monitor_claim_key_hash = Hash160::from_data(&PublicKey::from_secret_key(&secp_ctx,&channel_monitor_claim_key).serialize());
248
+
let our_channel_monitor_claim_key_hash = Hash160::hash(&PublicKey::from_secret_key(&secp_ctx,&channel_monitor_claim_key).serialize());
0 commit comments