jvmMain.dev.datlag.kast.proto.AuthorityKeys.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kast-jvm Show documentation
Show all versions of kast-jvm Show documentation
Kotlin multiplatform casting library.
@file:OptIn(ExperimentalSerializationApi::class)
package dev.datlag.kast.proto
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.protobuf.ProtoNumber
@Serializable
internal data class AuthorityKeys(
@ProtoNumber(1) @SerialName("keys") val keys: List
) {
@Serializable
class Key(
@ProtoNumber(1) @SerialName("fingerprint") val fingerprint: ByteArray,
@ProtoNumber(2) @SerialName("public_key") val publicKey: ByteArray
)
}