Updated on 2026-08-14

This commit is contained in:
Tangem 2020-04-01 15:15:08 +03:00
parent 8954738212
commit 2447e71a63

View file

@ -35,7 +35,7 @@ class SignScanConsequence: ItemsChangeConsequence {
val hashedData = when(card.curve) {
EllipticCurve.Secp256k1 -> dataForHashing.calculateSha256()
EllipticCurve.Ed25519 -> dataForHashing.calculateSha512()
else -> throw Exception("Can't calculate hash of a data with unknown card curve")
else -> return null
}
hashItem.setData(hashedData)
}