From 4cdae11adc480c178bf52e584a9cd9bba9893f87 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 6 Dec 2024 12:26:11 +0600 Subject: [PATCH] support of Ed25519TelegramKeys --- tgbotapi.core/api/tgbotapi.core.api | 6 ++++++ .../dev/inmo/tgbotapi/utils/crypto/Ed25519TelegramKeys.kt | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/crypto/Ed25519TelegramKeys.kt diff --git a/tgbotapi.core/api/tgbotapi.core.api b/tgbotapi.core/api/tgbotapi.core.api index e75e7ac42b..d301732aac 100644 --- a/tgbotapi.core/api/tgbotapi.core.api +++ b/tgbotapi.core/api/tgbotapi.core.api @@ -27649,6 +27649,12 @@ public final class dev/inmo/tgbotapi/utils/TimeSpanAsSecondsSerializer : kotlinx public fun serialize-HG0u8IE (Lkotlinx/serialization/encoding/Encoder;J)V } +public final class dev/inmo/tgbotapi/utils/crypto/Ed25519TelegramKeys { + public static final field INSTANCE Ldev/inmo/tgbotapi/utils/crypto/Ed25519TelegramKeys; + public static final field Production Ljava/lang/String; + public static final field TestEnvironment Ljava/lang/String; +} + public final class dev/inmo/tgbotapi/utils/extensions/AsReferenceKt { public static final fun asReference (Ljava/lang/Object;)Ljava/lang/ref/WeakReference; } diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/crypto/Ed25519TelegramKeys.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/crypto/Ed25519TelegramKeys.kt new file mode 100644 index 0000000000..34c5c63ece --- /dev/null +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/crypto/Ed25519TelegramKeys.kt @@ -0,0 +1,6 @@ +package dev.inmo.tgbotapi.utils.crypto + +object Ed25519TelegramKeys { + const val TestEnvironment = "40055058a4ee38156a06562e52eece92a771bcd8346a8c4615cb7376eddf72ec" // hex + const val Production = "e7bf03a2fa4602af4580703d88dda5bb59f32ed8b02a56c187fe7d34caed242d" // hex +} \ No newline at end of file