Skip to content

Commit b43e2f6

Browse files
committed
Use lightning-kmp 1.11.3
Includes: - a fix for uncaught deserialization errors (see ACINQ/lightning-kmp#843) - a update to bitcoin-kmp with a change to taproot tweaks (see ACINQ/bitcoin-kmp#170)
1 parent f3a2276 commit b43e2f6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
2-
lightningkmp = "1.11.2"
3-
secp256k1 = "0.21.0" # keep in check with lightning-kmp secp version
2+
lightningkmp = "1.11.3"
3+
secp256k1 = "0.22.0" # keep in check with lightning-kmp secp version
44

55
kotlin = "2.2.10"
66
ktor = "3.1.0"
@@ -49,4 +49,4 @@ sqldelight-plugin = { group = "app.cash.sqldelight", name = "gradle-plugin", ver
4949
fcm-plugin = { module = "com.google.gms:google-services", version = "4.4.4" }
5050

5151
[plugins]
52-
compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
52+
compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }

phoenix-shared/src/commonMain/kotlin/fr.acinq.phoenix/utils/channels/SpendChannelAddressHelper.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package fr.acinq.phoenix.utils.channels
1919
import fr.acinq.bitcoin.ByteVector
2020
import fr.acinq.bitcoin.ByteVector32
2121
import fr.acinq.bitcoin.ByteVector64
22+
import fr.acinq.bitcoin.Crypto
2223
import fr.acinq.bitcoin.PublicKey
2324
import fr.acinq.bitcoin.Satoshi
2425
import fr.acinq.bitcoin.Script
@@ -128,7 +129,7 @@ object SpendChannelAddressHelper {
128129
try {
129130
val localFundingKey = channelKeys.fundingKey(fundingTxIndex)
130131

131-
val outputScript = Script.pay2tr(internalKey = Scripts.Taproot.musig2Aggregate(localFundingKey.publicKey(), remoteFundingPubKey), scripts = null)
132+
val outputScript = Script.pay2tr(internalKey = Scripts.Taproot.musig2Aggregate(localFundingKey.publicKey(), remoteFundingPubKey), Crypto.TaprootTweak.KeyPathTweak)
132133
val inputInfo = Transactions.InputInfo(unsignedTx.txIn.first().outPoint, TxOut(amount, outputScript))
133134

134135
val tx = Transactions.SpliceTx(inputInfo, unsignedTx)

0 commit comments

Comments
 (0)