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));
1442
1440
let per_commitment_point = PublicKey::from_secret_key(&self.secp_ctx,&per_commitment_key);
1443
1441
let revocation_pubkey = ignore_error!(chan_utils::derive_public_revocation_key(&self.secp_ctx,&per_commitment_point,&self.onchain_detection.keys.pubkeys().revocation_basepoint));
1444
-
let local_payment_key = ignore_error!(chan_utils::derive_private_key(&self.secp_ctx,&per_commitment_point,&self.onchain_detection.keys.payment_base_key()));
1445
1442
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.unwrap()));
1446
1443
1447
1444
let revokeable_redeemscript = chan_utils::get_revokeable_redeemscript(&revocation_pubkey,self.our_to_self_delay,&delayed_key);
1448
1445
let revokeable_p2wsh = revokeable_redeemscript.to_v0_p2wsh();
1449
1446
1450
-
self.broadcasted_remote_payment_script = {
1451
-
// Note that the Network here is ignored as we immediately drop the address for the
1452
-
// script_pubkey version
1453
-
let payment_hash160 = Hash160::hash(&PublicKey::from_secret_key(&self.secp_ctx,&local_payment_key).serialize());
let local_payment_key = ignore_error!(chan_utils::derive_private_key(&self.secp_ctx, revocation_point,&self.onchain_detection.keys.payment_base_key()));
1592
1588
1593
-
self.broadcasted_remote_payment_script = {
1594
-
// Note that the Network here is ignored as we immediately drop the address for the
1595
-
// script_pubkey version
1596
-
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);
3965
-
let witness_script = Address::p2pkh(&::bitcoin::PublicKey{compressed:true, key: remotepubkey},Network::Testnet).script_pubkey();
3966
-
let sighash = Message::from_slice(&bip143::SighashComponents::new(&spend_tx).sighash_all(&spend_tx.input[0],&witness_script, output.value)[..]).unwrap();
0 commit comments