From 74980ee97b31ac2e20b46f558c2ad56523726d81 Mon Sep 17 00:00:00 2001 From: t-bast Date: Thu, 1 Feb 2024 12:31:05 +0100 Subject: [PATCH] Make functions JvmStatic --- src/commonMain/kotlin/fr/acinq/bitcoin/crypto/musig2/Musig2.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commonMain/kotlin/fr/acinq/bitcoin/crypto/musig2/Musig2.kt b/src/commonMain/kotlin/fr/acinq/bitcoin/crypto/musig2/Musig2.kt index b8cea78..9b99c6a 100644 --- a/src/commonMain/kotlin/fr/acinq/bitcoin/crypto/musig2/Musig2.kt +++ b/src/commonMain/kotlin/fr/acinq/bitcoin/crypto/musig2/Musig2.kt @@ -214,6 +214,7 @@ public object Musig2 { * * @param publicKeys public keys of all participants: callers must verify that all public keys are valid. */ + @JvmStatic public fun aggregateKeys(publicKeys: List): XonlyPublicKey = KeyAggCache.create(publicKeys).first /** @@ -221,6 +222,7 @@ public object Musig2 { * @param privateKey signer's private key. * @param publicKeys public keys of all participants: callers must verify that all public keys are valid. */ + @JvmStatic public fun generateNonce(sessionId: ByteVector32, privateKey: PrivateKey, publicKeys: List): Pair { val (_, keyAggCache) = KeyAggCache.create(publicKeys) return SecretNonce.generate(sessionId, privateKey, privateKey.publicKey(), message = null, keyAggCache, extraInput = null) @@ -252,6 +254,7 @@ public object Musig2 { * @param publicNonces public nonces of all participants of the musig2 session. * @param scriptTree tapscript tree of the taproot input, if it has script paths. */ + @JvmStatic public fun signTaprootInput( privateKey: PrivateKey, tx: Transaction,