This commit is contained in:
Adam Velebil 2022-05-05 17:21:13 +02:00
parent ab6208f3f5
commit b7ee31c70c
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084

View File

@ -8,7 +8,7 @@ fun ByteArray.asString() = joinToString(
separator = "" separator = ""
) { b -> "%02x".format(b) } ) { b -> "%02x".format(b) }
// covert yubikit types to Model types // convert yubikit types to Model types
fun Credential.model(deviceId: String) = Model.Credential( fun Credential.model(deviceId: String) = Model.Credential(
deviceId = deviceId, deviceId = deviceId,
id = id.asString(), id = id.asString(),