Skip to content

Commit

Permalink
fix: 修复 ed25519 验签参数错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Nov 7, 2024
1 parent 2206f8f commit 4cb0639
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/P.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down

0 comments on commit 4cb0639

Please sign in to comment.