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
// We can't just use build_local_transaction_keys here as the per_commitment_secret is not
4477
4477
// derived from a commitment_seed, so instead we copy it here and call
4478
4478
// build_commitment_transaction.
4479
-
let delayed_payment_base = PublicKey::from_secret_key(&secp_ctx,chan.local_keys.delayed_payment_base_key());
4479
+
let delayed_payment_base = &chan.local_keys.pubkeys().delayed_payment_basepoint;
4480
4480
let per_commitment_secret = SecretKey::from_slice(&hex::decode("1f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100").unwrap()[..]).unwrap();
4481
4481
let per_commitment_point = PublicKey::from_secret_key(&secp_ctx,&per_commitment_secret);
4482
4482
let htlc_basepoint = PublicKey::from_secret_key(&secp_ctx, chan.local_keys.htlc_base_key());
4483
-
let keys = TxCreationKeys::new(&secp_ctx,&per_commitment_point,&delayed_payment_base,&htlc_basepoint,&their_pubkeys.revocation_basepoint,&their_pubkeys.htlc_basepoint).unwrap();
4483
+
let keys = TxCreationKeys::new(&secp_ctx,&per_commitment_point, delayed_payment_base,&htlc_basepoint,&their_pubkeys.revocation_basepoint,&their_pubkeys.htlc_basepoint).unwrap();
0 commit comments