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
let per_commitment_key = ignore_error!(SecretKey::from_slice(&secret));
1448
1446
let per_commitment_point = PublicKey::from_secret_key(&self.secp_ctx,&per_commitment_key);
1449
1447
let revocation_pubkey = ignore_error!(chan_utils::derive_public_revocation_key(&self.secp_ctx,&per_commitment_point,&self.keys.pubkeys().revocation_basepoint));
1450
-
let local_payment_key = ignore_error!(chan_utils::derive_private_key(&self.secp_ctx,&per_commitment_point,&self.keys.payment_base_key()));
1451
1448
let delayed_key = ignore_error!(chan_utils::derive_public_key(&self.secp_ctx,&PublicKey::from_secret_key(&self.secp_ctx,&per_commitment_key),&self.their_delayed_payment_base_key));
1452
1449
1453
1450
let revokeable_redeemscript = chan_utils::get_revokeable_redeemscript(&revocation_pubkey,self.our_to_self_delay,&delayed_key);
1454
1451
let revokeable_p2wsh = revokeable_redeemscript.to_v0_p2wsh();
1455
1452
1456
-
self.broadcasted_remote_payment_script = {
1457
-
// Note that the Network here is ignored as we immediately drop the address for the
1458
-
// script_pubkey version
1459
-
let payment_hash160 = Hash160::hash(&PublicKey::from_secret_key(&self.secp_ctx,&local_payment_key).serialize());
let remotepubkey = PublicKey::from_secret_key(&secp_ctx,&key);
4118
-
let witness_script = Address::p2pkh(&::bitcoin::PublicKey{compressed:true, key: remotepubkey},Network::Testnet).script_pubkey();
4119
-
let sighash = Message::from_slice(&bip143::SighashComponents::new(&spend_tx).sighash_all(&spend_tx.input[0],&witness_script, output.value)[..]).unwrap();
0 commit comments