From 4cb063988a38c84b28475d83699856cc3f8b0b45 Mon Sep 17 00:00:00 2001 From: ForteScarlet Date: Thu, 7 Nov 2024 23:01:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20ed25519=20?= =?UTF-8?q?=E9=AA=8C=E7=AD=BE=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildSrc/src/main/kotlin/P.kt | 2 +- .../kotlin/love/forte/simbot/qguild/stdlib/internal/BotImpl.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/P.kt b/buildSrc/src/main/kotlin/P.kt index 251c8071..766f6c6a 100644 --- a/buildSrc/src/main/kotlin/P.kt +++ b/buildSrc/src/main/kotlin/P.kt @@ -56,7 +56,7 @@ object P { override val homepage: String get() = HOMEPAGE - const val VERSION = "4.1.1" + const val VERSION = "4.1.2" const val NEXT_VERSION = "4.1.2" override val snapshotVersion = "$NEXT_VERSION-SNAPSHOT" diff --git a/simbot-component-qq-guild-stdlib/src/commonMain/kotlin/love/forte/simbot/qguild/stdlib/internal/BotImpl.kt b/simbot-component-qq-guild-stdlib/src/commonMain/kotlin/love/forte/simbot/qguild/stdlib/internal/BotImpl.kt index c278dcb3..5f3a8c57 100644 --- a/simbot-component-qq-guild-stdlib/src/commonMain/kotlin/love/forte/simbot/qguild/stdlib/internal/BotImpl.kt +++ b/simbot-component-qq-guild-stdlib/src/commonMain/kotlin/love/forte/simbot/qguild/stdlib/internal/BotImpl.kt @@ -443,7 +443,7 @@ internal class BotImpl( val msg = "$signatureTimestamp$payload" - check(ed25519PublicKey.verify(msg.toByteArray(), signatureBytes)) { + check(ed25519PublicKey.verify(signature = signatureBytes, message = msg.toByteArray())) { "Ed25519 verify failed" } } From 4ae4ae26cd2a53f7fe1642d9bfa6c6614f2e1ac8 Mon Sep 17 00:00:00 2001 From: ForteScarlet Date: Fri, 8 Nov 2024 00:17:05 +0800 Subject: [PATCH 2/2] release: v4.1.2 --- buildSrc/src/main/kotlin/P.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/P.kt b/buildSrc/src/main/kotlin/P.kt index 766f6c6a..35d73a53 100644 --- a/buildSrc/src/main/kotlin/P.kt +++ b/buildSrc/src/main/kotlin/P.kt @@ -57,7 +57,7 @@ object P { const val VERSION = "4.1.2" - const val NEXT_VERSION = "4.1.2" + const val NEXT_VERSION = "4.1.3" override val snapshotVersion = "$NEXT_VERSION-SNAPSHOT" override val version = if (isSnapshot()) snapshotVersion else VERSION